Foundations
Typography
3 font roles set by the theme. Sizes use Tailwind's default scale.
Font roles
| Role | Theme variable | Utility | Used for |
|---|---|---|---|
| Body | --font-body | font-sans | Everything by default |
| Display | --font-display | font-heading | h1 to h4, automatically |
| Code | --font-code | font-mono | Code, tokens, numbers in tables |
Specimen
font-heading
Design once, theme often
font-sans
Body copy sits at 16px with a 28px line height. It should stay comfortable for long reading on every theme, whatever font the theme picks.
font-mono
--neutral-hue: 270; --radius: 0.5rem;
Size scale
No custom sizes yet. The scale is Tailwind's default, which keeps class names familiar in every product.
text-xs
12px
Labels, captions
text-sm
14px
Secondary text, UI
text-base
16px
Body
text-lg
18px
Lead paragraphs
text-xl
20px
Small headings
text-2xl
24px
Section headings
text-3xl
30px
Page headings
text-4xl
36px
Hero, mobile
text-5xl
48px
Hero