Font pairing for websites: practical rules that hold up
Practical font pairing rules for websites: when one family beats two, contrasting serif and sans, matching x-height, monospace for data, and five tested pairs.
- Web typography
- Tailwind CSS 4.3.5
Good font pairing is mostly restraint: one workhorse sans-serif for UI and body text, paired with either the same family in heavier weights or one contrasting display face for headlines. Most broken typography comes from mixing three fonts, pairing two similar sans-serifs that clash, or setting body copy too thin.
Four rules that hold up across real websites
Step 1: Start with one strong family before adding a second
A modern grotesque or neo-grotesque with a full weight range (Geist, Inter, Plus Jakarta Sans, DM Sans) handles headings, body, tables and buttons cleanly. Tight letter-spacing (
-0.02emto-0.03em) and weight contrast (600 headings vs 400 body) create hierarchy without a second font download.Step 2: If you pair two fonts, contrast their category
Pair a serif headline with a clean sans body (editorial, agency, hospitality, legal), or a geometric/display headline with a neutral sans body. Never pair two nearly identical sans-serifs (like Inter + Roboto) — they look like a mistake rather than a choice.
Step 3: Match x-height and proportions
Compare lowercase
xandaside by side at the same pixel size. A tall-x-height sans paired with a tiny-x-height serif feels unbalanced unless you bump the serif's size up by 10–15%.Step 4: Reserve monospace for data, IDs and code
Pair your sans with a matching monospace (Geist Mono, JetBrains Mono, IBM Plex Mono) for prices, tabular stats, keyboard shortcuts and install commands. Add
tabular-numsso numbers align cleanly in tables.
Five tested pairs you can ship today
| Headings | Body | Mono | Best for |
|---|---|---|---|
| Geist | Geist | Geist Mono | SaaS, developer tools, docs |
| Instrument Serif | Inter | JetBrains Mono | Editorial, studios, consultancies |
| Newsreader | Plus Jakarta Sans | IBM Plex Mono | Publishing, legal, finance |
| Space Grotesk | Inter | JetBrains Mono | AI products, technical startups |
| Fraunces | DM Sans | DM Mono | Hospitality, food, consumer brands |
Questions
How do I load two fonts cleanly in Tailwind CSS v4?
Declare --font-sans and --font-display inside @theme (or @theme inline with next/font). See Tailwind v4 custom fonts.
Can I test font pairs on real blocks before choosing?
Yes — open themes.dev Studio or browse our free shadcn/ui theme presets to preview headings, body copy and contrast ratios live across real sections.
Related articles
- UI designHow to choose a colour palette for a websiteOne brand scale, one neutral scale and a few status colours, with steps assigned by measured contrast. Tailwind’s own scales measured in light and dark.
- Tailwind CSS v4Tailwind v4 custom fonts: how to add Google or local fontsAdd @fontsource or next/font in Tailwind CSS v4 with @theme and @theme inline, plus the three reasons a custom font silently falls back to system-ui.
- shadcn/uiAdd a custom colour to a shadcn/ui themeThree places in your CSS: the value in :root, the dark value in .dark, and one line in @theme inline. Plus a brand button variant and a contrast check.
Still stuck? We answer every message ourselves. Write to us