Skip to content

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.

Updated 3 December 2026Tested with
  • 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

  1. 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.02em to -0.03em) and weight contrast (600 headings vs 400 body) create hierarchy without a second font download.

  2. 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.

  3. Step 3: Match x-height and proportions

    Compare lowercase x and a side 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%.

  4. 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-nums so numbers align cleanly in tables.

Five tested pairs you can ship today

HeadingsBodyMonoBest for
GeistGeistGeist MonoSaaS, developer tools, docs
Instrument SerifInterJetBrains MonoEditorial, studios, consultancies
NewsreaderPlus Jakarta SansIBM Plex MonoPublishing, legal, finance
Space GroteskInterJetBrains MonoAI products, technical startups
FrauncesDM SansDM MonoHospitality, 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.

Was this page helpful?

Still stuck? We answer every message ourselves. Write to us

Building with shadcn/ui and Tailwind CSS v4?

Install 188 free blocks and components with the shadcn CLI (no account), preview them in your own brand in Studio, or get all 1,570 blocks and every theme in UI Pro (€199 once).

Use it with

This page is built from UI Pro parts: the docs article block (docs-quernly) with the code, terminal, install command, steps, contents and feedback components, included in UI Pro.