your own.
Black
color="black"Create captions, slideshows, and carousels that feel native to TikTok. Edit, reuse, and automate your content in HTML—with the font, wrapping, and rounded backgrounds already handled.
npm install tiktok-style-wrapped-textYour text. Your colors. Copy the code and keep building.
Font, padding, corners, and snapping included. No extra CSS required.
A small component that fits into what you’re already building.
Copy dist/lib from the repository into your project as roundtext. Keep the font folder with it.
Load the module. TikTok Sans and the custom element are registered for you.
Use <tiktok-text> anywhere on your page. Pick a style, set a color, and make it yours.
<!-- Import once -->
<script type="module"
src="./roundtext/roundtext.js">
</script>
<!-- Make it yours -->
<tiktok-text size="48" color="teal">
Find your<br>happy place.
</tiktok-text>Literal newlines and <br> control line breaks inside one connected bubble. See line-break examples ↗
Pick a color. The matching background, text, and outline colors come with it.
color="black"color="white"color="red"color="orange"color="yellow"color="green"color="teal"color="cyan"color="blue"color="indigo"color="purple"Choose a color to see it across all four styles.
A single shape, with rounded steps.
variant="box"Just the type. No background or stroke.
variant="plain"Filled letters with a contrasting edge.
variant="outline"The background shows through the type.
variant="hollow"If this saves you some CSS, help another builder find it.