Skip to main content

Typography

Make your text look awesome! Change sizes, alignment, and add styles like bold and italic.

Text Sizes

Use ts-* (Text Size) classes to change font size:

ClassDescription
ts-1Huge (Title) - ideal for main page titles or hero sections
ts-2Big (Article) - perfect for article headings
ts-3Medium-large (Section) - suitable for subsection headings
ts-4Medium (Topic) - good for smaller section headings
ts-5Normal (Detail) - for body content and paragraphs
ts-6Small (Unit) - ideal for captions, labels, or fine print
<p class="ts-1">Size 1 - Huge!</p>
<p class="ts-2">Size 2 - Big</p>
<p class="ts-3">Size 3 - Medium-large</p>
<p class="ts-4">Size 4 - Medium</p>
<p class="ts-5">Size 5 - Normal</p>
<p class="ts-6">Size 6 - Small</p>

Text Alignment

Use ta-* (Text Align) classes:

ClassDescription
ta-lText Align Left
ta-cText Align Center
ta-rText Align Right
<p class="ta-l">Left aligned text</p>
<p class="ta-c">Center aligned text</p>
<p class="ta-r">Right aligned text</p>

Text Decoration

Add style to your text with td-* (Text Decoration) classes:

ClassDescription
td-bBold text
td-iItalic text
td-uUnderlined text
td-sStrikethrough text
<p class="td-b">Bold text</p>
<p class="td-i">Italic text</p>
<p class="td-u">Underlined text</p>
<p class="td-s">Strikethrough text</p>

Combine Decorations

You can use multiple at once!

<p class="td-b td-i">Bold AND italic!</p>
<p class="td-b td-u">Bold AND underlined!</p>

Text Transform

Change letter case with tt-* (Text Transform) classes:

ClassDescription
tt-uUPPERCASE - all caps
tt-llowercase - all small
tt-tTitle Case - capitalize first letters
<p class="tt-u">this becomes uppercase</p>
<p class="tt-l">THIS BECOMES LOWERCASE</p>
<p class="tt-t">this becomes title case</p>

Text Truncate

When text is too long, show "..." instead of wrapping to the next line:

ClassDescription
tt-cTruncate text with ellipsis (...)
<div style="width: 200px;">
<p class="tt-c">This is a very long text that will be truncated</p>
</div>
Note

The container needs a fixed width for truncation to work!

Common Patterns

Page Title

<h1 class="ts-1 ta-c td-b">Welcome to My Site!</h1>
<p class="ts-5 ta-c">A subtitle goes here</p>

Card Title + Description

<div class="pa-4">
<h3 class="ts-4 td-b mb-1">Card Title</h3>
<p class="ts-6">Some description text here...</p>
</div>

Badge / Label

<span class="ts-6 tt-u td-b px-2 py-1">New</span>

Quick Reference

CategoryPrefixValuesNotes
Sizets-*1 - 61 = biggest, 6 = smallest
Alignta-*l, c, rLeft, Center, Right
Decorationstd-*b, i, u, sBold, Italic, Underline, Strike
Transformtt-*u, l, t, cUpper, Lower, Title, Clip