fontFamily) and the CSS variables (--font-sans, --font-mono). The defaults are Inter (sans) and JetBrains Mono (mono).
Changing the font
The fastest path:- Adds the
<link>tag (ornext/fontimport) for the font. - Updates
tailwind.config.tsto use it. - Updates global CSS variables.
Where to add fonts manually
- Google Fonts
- Self-hosted
- Variable fonts
Add to Then
app/layout.tsx:tailwind.config.ts:Type scale
Tailwind’s default type scale is sensible for most apps. The defaults:
Customize in
tailwind.config.ts if you need a tighter or looser scale.
Line height
Tailwind’sleading-* classes control line-height. Defaults:
leading-tight(1.25) — for headings.leading-normal(1.5) — for body.leading-relaxed(1.625) — for long-form content (blog posts, docs).
Font features
For nicer typography on screens that support it:globals.css
Tips
Related
Tailwind config
The font config lives here.
Themes
Color and spacing tokens.
Icons & assets
Adjacent visual primitives.
