Skip to main content

Tailwind CSS Typography Cheatsheet

Complete Tailwind v4 typography utilities reference.
Click any class to copy it to your clipboard.

Font Family

font-sansThe quick brown fox jumps over the lazy dog
font-serifThe quick brown fox jumps over the lazy dog
font-monoThe quick brown fox jumps over the lazy dog

Font Size

ClassSizePixelsLine HeightPreview
text-xs0.75rem12px1rem (16px)Aa
text-sm0.875rem14px1.25rem (20px)Aa
text-base1rem16px1.5rem (24px)Aa
text-lg1.125rem18px1.75rem (28px)Aa
text-xl1.25rem20px1.75rem (28px)Aa
text-2xl1.5rem24px2rem (32px)Aa
text-3xl1.875rem30px2.25rem (36px)Aa
text-4xl2.25rem36px2.5rem (40px)Aa
text-5xl3rem48px1Aa
text-6xl3.75rem60px1Aa
text-7xl4.5rem72px1Aa
text-8xl6rem96px1Aa
text-9xl8rem128px1Aa

Font Weight

font-thin(100)
Aa
font-extralight(200)
Aa
font-light(300)
Aa
font-normal(400)
Aa
font-medium(500)
Aa
font-semibold(600)
Aa
font-bold(700)
Aa
font-extrabold(800)
Aa
font-black(900)
Aa

Live Preview:

100200300400500600700800900

Font Style

italic

font-style: italic

The quick fox
not-italic

font-style: normal

The quick fox

Letter Spacing

tracking-tighter(-0.05em)
LETTER SPACING PREVIEW
tracking-tight(-0.025em)
LETTER SPACING PREVIEW
tracking-normal(0em)
LETTER SPACING PREVIEW
tracking-wide(0.025em)
LETTER SPACING PREVIEW
tracking-wider(0.05em)
LETTER SPACING PREVIEW
tracking-widest(0.1em)
LETTER SPACING PREVIEW

Line Height

Relative Line Heights

leading-none

line-height: 1

leading-tight

line-height: 1.25

leading-snug

line-height: 1.375

leading-normal

line-height: 1.5

leading-relaxed

line-height: 1.625

leading-loose

line-height: 2

Fixed Line Heights

leading-3

0.75rem (12px)

leading-4

1rem (16px)

leading-5

1.25rem (20px)

leading-6

1.5rem (24px)

leading-7

1.75rem (28px)

leading-8

2rem (32px)

leading-9

2.25rem (36px)

leading-10

2.5rem (40px)

Live Preview:

leading-tight

The quick brown fox jumps over the lazy dog. The quick brown fox.

leading-normal

The quick brown fox jumps over the lazy dog. The quick brown fox.

leading-loose

The quick brown fox jumps over the lazy dog. The quick brown fox.

Text Alignment

text-left

Sample text alignment

text-center

Sample text alignment

text-right

Sample text alignment

text-justify

Sample text alignment

text-start

Sample text alignment

text-end

Sample text alignment

Text Decoration

Decoration Line

Sample
underline
Sample
overline
Sample
line-through
Sample
no-underline

Decoration Style

Sample
decoration-solid
Sample
decoration-double
Sample
decoration-dotted
Sample
decoration-dashed
Sample
decoration-wavy

Decoration Thickness

Sample
decoration-auto
Sample
decoration-from-font
Sample
decoration-0
Sample
decoration-1
Sample
decoration-2
Sample
decoration-4
Sample
decoration-8

Decoration Colors: Use decoration-{color} utilities like decoration-red-500, decoration-blue-600, etc.

Text Transform

uppercaseSample Text
lowercaseSample Text
capitalizeSample Text
normal-caseSample Text

Text Overflow

truncate

overflow: hidden; text-overflow: ellipsis; white-space: nowrap

This is a very long text that will be truncated
text-ellipsis

text-overflow: ellipsis

This is a very long text that will be truncated
text-clip

text-overflow: clip

This is a very long text that will be truncated

Whitespace

whitespace-normal

white-space: normal

whitespace-nowrap

white-space: nowrap

whitespace-pre

white-space: pre

whitespace-pre-line

white-space: pre-line

whitespace-pre-wrap

white-space: pre-wrap

whitespace-break-spaces

white-space: break-spaces

Word Break

break-normal

overflow-wrap: normal; word-break: normal

Supercalifragilisticexpialidocious
break-words

overflow-wrap: break-word

Supercalifragilisticexpialidocious
break-all

word-break: break-all

Supercalifragilisticexpialidocious
break-keep

word-break: keep-all

Supercalifragilisticexpialidocious

Common Patterns

Blog Post Title

<h1 class="text-4xl font-bold
    tracking-tight leading-tight">
  Article Title
</h1>

Body Text

<p class="text-base font-normal
    leading-relaxed text-gray-700">
  Body content here...
</p>

Navigation Link

<a class="text-sm font-medium
    uppercase tracking-wide
    hover:underline">
  Menu Item
</a>

Code Block

<code class="font-mono text-sm
    whitespace-pre-wrap">
  const x = 1;
</code>

Truncated Text

<p class="truncate max-w-xs">
  Long text that overflows...
</p>

Strikethrough Price

<span class="line-through
    text-gray-400 decoration-2">
  $99
</span>

About Tailwind Typography

Tailwind v4 provides a comprehensive set of typography utilities for controlling font family, size, weight, style, spacing, and more.

For custom values, use arbitrary notation: text-[22px], tracking-[0.03em], leading-[1.8]

Combine with responsive prefixes for adaptive typography: text-base md:text-lg lg:text-xl