Skip to content

Font pairing for Google Fonts

Pick a pairing to see a heading font, a body font and a code font together on a hero, a pricing card and a code sample, then copy the Google Fonts link, CSS, Tailwind 4 @theme, next/font or Astro code. A good pair has close x-heights, so both fonts look the same size, and one clear difference such as width or shape. Every pair here is sans with sans, because our own sites use no serif headings.

32 pairings

Heading / body, with a mono for code.

New in version 4.0

Invoices your clients pay on time

Send a branded invoice in under a minute, take card and bank payments, and get a reminder out before the due date. Every plan includes unlimited clients and exports to your accounting tool.

Start freeSee pricing
TeamPopular

€24 / month

  • Up to 10 people
  • Recurring invoices and reminders
  • Bank sync with 2,000 banks
Create an invoice
const invoice = await api.invoices.create({
  client: 'cl_4821',
  lines: [{ item: 'Design', qty: 12, rate: 95 }],
  due: '2027-01-15',
});
// → { id: 'inv_0193', total: 1140.00 }
Heading
Space Grotesk
x-height 0.489 · width 0.553 em
by Florian Karsten
Body
Inter
x-height 0.546 · width 0.535 em
by Rasmus Andersson
Code
Space Mono
x-height 0.496 · width 0.612 em
by Colophon Foundry

Why it works: Space Grotesk was drawn from Colophon's Space Mono, so heading and code share their odd details. Inter's larger x-height (0.546 vs 0.489) keeps the body text readable at small sizes.

@import "tailwindcss";

@theme {
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-heading: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Body text uses font-sans by default; add font-heading to headings, font-mono to code. */

Load the fonts with the HTML link, or self-host them. Tailwind 4 uses --font-sans for the page's default font.

The pairings, measured

X-height and width in em for each heading and body font, measured on 27 November 2026 in Chrome from the Google Fonts files at weight 400 (x-height of a lowercase x; width as the average advance of a to z). The widest sans in the list is Unbounded at 0.685 em per letter, the narrowest Oswald at 0.400. 54 families in all: 42 sans and 12 mono.

HeadingBodyCodex-heightDifferenceWidth
Inter Tight 600InterJetBrains Mono0.546 / 0.5460.0000.485 / 0.535
Geist 600GeistGeist Mono0.530 / 0.5300.0000.515 / 0.515
Space Grotesk 600InterSpace Mono0.489 / 0.5460.0570.553 / 0.535
IBM Plex Sans 600IBM Plex SansIBM Plex Mono0.516 / 0.5160.0000.504 / 0.504
Red Hat Display 700Red Hat TextRed Hat Mono0.501 / 0.4880.0130.495 / 0.495
Roboto 700RobotoRoboto Mono0.528 / 0.5280.0000.499 / 0.499
Source Sans 3 700Source Sans 3Source Code Pro0.486 / 0.4860.0000.472 / 0.472
Manrope 700InterJetBrains Mono0.540 / 0.5460.0060.521 / 0.535
Poppins 600InterJetBrains Mono0.548 / 0.5460.0020.561 / 0.535
Montserrat 700Open SansRoboto Mono0.525 / 0.5350.0100.571 / 0.522
Sora 600DM SansDM Mono0.534 / 0.5040.0300.577 / 0.519
DM Sans 600DM SansDM Mono0.504 / 0.5040.0000.519 / 0.519
Plus Jakarta Sans 700Public SansIBM Plex Mono0.536 / 0.5170.0190.539 / 0.528
Bricolage Grotesque 700FigtreeJetBrains Mono0.517 / 0.5000.0170.535 / 0.507
Unbounded 600InterMartian Mono0.566 / 0.5460.0200.685 / 0.535
Oswald 600LatoSource Code Pro0.578 / 0.5070.0710.400 / 0.495
Archivo 800Public SansRoboto Mono0.526 / 0.5170.0090.496 / 0.528
Schibsted Grotesk 700Hanken GroteskJetBrains Mono0.527 / 0.4930.0340.525 / 0.501
Lexend 600InterRoboto Mono0.525 / 0.5460.0210.549 / 0.535
Outfit 600Nunito SansDM Mono0.475 / 0.4860.0110.496 / 0.506
Urbanist 700Albert SansGeist Mono0.502 / 0.5000.0020.500 / 0.514
Epilogue 700Be Vietnam ProJetBrains Mono0.531 / 0.5300.0010.549 / 0.559
Work Sans 600KarlaFira Code0.500 / 0.4790.0210.546 / 0.519
Mona Sans 700InterJetBrains Mono0.525 / 0.5460.0210.529 / 0.535
Instrument Sans 600Public SansRed Hat Mono0.510 / 0.5170.0070.523 / 0.528
Rubik 600Open SansUbuntu Mono0.520 / 0.5350.0150.530 / 0.522
Figtree 700FigtreeGeist Mono0.500 / 0.5000.0000.507 / 0.507
Raleway 700LatoSource Code Pro0.521 / 0.5070.0140.525 / 0.495
Syne 700InterSpace Mono0.500 / 0.5460.0460.502 / 0.535
Inter 700InterJetBrains Mono0.546 / 0.5460.0000.535 / 0.535
Onest 600GeistGeist Mono0.527 / 0.5300.0030.528 / 0.515
Chivo 800InterIBM Plex Mono0.511 / 0.5460.0350.537 / 0.535

Your browser and the font's hinting can shift these by a few thousandths. Want a type scale for the pair? The Tailwind font size generator writes one.

The type at work, in finished blocks

12 of 147 free, no account. All of them in UI Pro.

  • Hero (hero-01)01

    Hero

    hero-01 · Free. Journey-planner hero: from/to card with leave-at tabs, a day-out photo card and four quick-task tiles.

    Open hero-01
  • Pricing (pricing-01)02

    Pricing

    pricing-01 · Free. Three plan cards under a monthly/yearly switch, the middle one framed with a tab, beside a photo card for schools.

    Open pricing-01
  • 03

    All free blocks

    Every one with a live preview, filtered to the ones you can use for free first.

    See them all

Questions

How do I pair two fonts?

Start with one family in two weights; that never clashes. If you want two faces, keep the x-heights close, so a heading and a paragraph at the same size look the same size, and make one clear difference: width (a wide heading over a narrower body), or shape (round geometric over a plain grotesque). Two faces that differ a little in everything look like a mistake.

What is x-height, and why does it matter?

The x-height is the height of a lowercase x as a share of the font size. Fonts at the same pixel size can look a size apart when their x-heights differ: among the 42 sans families here it runs from 0.475 to 0.578 em. We measured each one from the Google Fonts files, and 15 of the 32 pairings are within 0.01 em.

How do I use Google Fonts in Tailwind CSS 4?

Load the fonts (a <link> to Google Fonts, next/font, or Astro's fonts API), then name them in @theme: --font-sans for body text, which Tailwind 4 uses as the page default, plus your own --font-heading, which gives you the font-heading class. --font-mono sets font-mono. The Tailwind 4 tab above writes the block for your pair.

Should I load fonts from Google or host them myself?

Both next/font/google and Astro's fonts API download the files when you build and serve them from your own site, so visitors never connect to Google and there is no extra DNS lookup. The plain <link> is the quickest to set up. Whichever you use, keep display=swap (or font-display: swap) so text shows in a fallback font while the file loads.

Why are there no serif pairings?

Our own sites and themes use sans-serif headings only, and we only recommend what we build with. Serif and sans pairs work well elsewhere; you will not find them in this list.

How many fonts should a website use?

Two faces at most, plus a mono if you show code. Each static weight is its own file, while a variable font holds all its weights in one; 45 of the 54 families here are variable.

Is it free?

Yes, and no sign-up. The preview loads the fonts you pick from Google Fonts, so Google sees that request; nothing else leaves your browser. Every family on Google Fonts is free to use, commercial projects included, under an open license.

UI Pro

Build your next site from finished blocks

Every block, page template and website theme from €199, paid once, with every update and everything we add later. Not ready? The free blocks are open to everyone.

blocks
1401
page templates
55
website themes
29
The About page template from UI Pro, built from its blocks.

This card is a UI Pro block: Rooilijn (call-to-action-07).