Sub topic 10
Pairing a Heading Font with a Body Font
This chapter assumes you can write a <link> tag, a CSS font-family rule with a fallback stack, and that you know the basic typeface categories (serif, sans-serif, monospace, display). It also assumes you can open the browser's developer tools to inspect which font a page uses. The chapter builds on the earlier ones about choosing a typeface and embedding fonts from Google Fonts or Adobe Fonts.
Why pairing matters
Most pages use two typefaces: one for headings and one for body text. The heading font sets the tone and draws attention. The body font has to stay readable over long stretches at small sizes. A pairing works when the two fonts look intentionally different, share enough underlying structure to feel related, and each does the job you give it.
Pairing is a design judgment, not a rule you can compute. Still, a few repeatable principles remove most bad choices.
Principles for a working pair
Contrast without conflict
Two fonts that are almost the same look like a mistake. Two fonts that are very different in every way compete. Aim for clear contrast along one or two dimensions, such as category, weight, or width, while keeping the rest in harmony.
Common ways to create contrast:
- Category: a serif heading over a sans-serif body, or the reverse.
- Weight: a bold heading over a regular body.
- Width or proportion: a condensed heading over a normal-width body.
- Personality: an expressive display face for headings over a neutral text face.
Shared structure
Look for fonts with similar proportions. Compare the x-height (the height of lowercase letters such as "x" relative to capitals) and the general stroke contrast (the difference between thick and thin strokes). If one font has a tall x-height and the other a short one, text set at the same size will look mismatched.
Give each font a clear job
Use the display or expressive font only where its character helps: headings, a logo line, a pull quote. Keep the body font plain and well hinted for screens. A decorative font at 16 px in a paragraph is hard to read.
Limit the number of families
Two families are usually enough. A third, often a monospace face for code, is acceptable when the content calls for it. Every additional family adds a network request and visual noise.
Reliable pairing patterns
| Pattern | Heading | Body | Effect |
|---|---|---|---|
| Serif over sans | Serif (for example Playfair Display) | Sans-serif (for example Source Sans 3) | Editorial, traditional |
| Sans over serif | Sans-serif (for example Montserrat) | Serif (for example Merriweather) | Modern headings, comfortable long reading |
| Single superfamily | Same family, bold weight | Same family, regular weight | Clean, consistent, minimal loading |
| Display over neutral sans | Display face | Neutral sans-serif (for example Inter) | Strong brand voice, readable text |
The single-superfamily pattern deserves attention. Using one family in two weights, such as Inter 700 for headings and Inter 400 for body text, is the safest pairing and also the cheapest to load. If you are unsure, start there and only add a second family when the design needs more personality.
The font names above are examples drawn from the Google Fonts catalog. Check that any font you choose supports the languages your site needs and offers the weights you plan to use.
Pairing within one service or across both
You can pair fonts from the same service or mix services. Each choice has consequences.
- Both from Google Fonts: one stylesheet request can load both families, and both are openly licensed, so you can self-host them later.
- Both from Adobe Fonts: both come from one web project, so a single stylesheet loads them all. They are available only while your subscription is active.
- One from each: you pay for two separate connections (Google and Adobe's Typekit host), and you carry the licensing terms of both. This is common when a commercial heading face from Adobe Fonts is paired with a free body face from Google Fonts.
Loading two Google families in one request
The Google Fonts CSS API accepts several family parameters in one URL. This produces a single stylesheet request for both fonts.
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Source+Sans+3:wght@400;700&display=swap" rel="stylesheet">Notice that the heading family is requested at one weight only (700), and the body family at two (400 and 700, the second for bold emphasis within paragraphs). Request only the weights you use. Each extra weight is more data to download.
Spaces in family names become plus signs in the URL, which is why Source Sans 3 appears as Source+Sans+3.
Mixing an Adobe Fonts heading with a Google Fonts body
When you mix services, load each with its own tag and keep the CSS stacks separate.
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://use.typekit.net/your-project-id.css">Replace your-project-id with the ID of your own Adobe Fonts web project. The project must include the heading font you reference in CSS.
Writing the CSS for a pair
Define the two stacks once, as custom properties, and reuse them. This keeps the pairing in one place so you can change it without hunting through the stylesheet.
:root {
--font-heading: "proxima-nova", Helvetica, Arial, sans-serif;
--font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
body {
font-family: var(--font-body);
font-size: 1rem;
line-height: 1.6;
}
h1, h2, h3 {
font-family: var(--font-heading);
font-weight: 700;
line-height: 1.2;
}This example assumes your Adobe Fonts project includes Proxima Nova at weight 700, as in the earlier chapter on web projects. If you use only Google Fonts, change --font-heading to a Google family such as "Playfair Display", Georgia, "Times New Roman", serif.
Two details matter here:
- Fallbacks should match the category. A serif heading font should fall back to a serif stack, not a sans-serif one. If the web font fails, the page should still keep its intended character.
- Line height differs by role. Headings are large and short, so a tighter
line-height(around 1.1 to 1.3) looks right. Body text needs more room (around 1.5 to 1.7).
Tuning the pair
Even well-chosen fonts rarely line up perfectly at default sizes. Adjust three things.
Size relationships
Headings should step down from the largest to the smallest in a consistent ratio. A fluid scale using clamp() keeps headings proportional across screen sizes.
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.5rem); }
h2 { font-size: clamp(1.5rem, 2.5vw + 1rem, 2.25rem); }
h3 { font-size: 1.25rem; }Optical size mismatch
If the body font looks smaller than the heading font even though both are set to the same size, compare their x-heights. One practical fix is to set a slightly larger font-size on the body when its x-height is low. The font-size-adjust property can also keep the x-height consistent between a web font and its fallback, which is useful when the fallback is showing during loading. Browser support for font-size-adjust has improved but you should test in the browsers you target.
Weight and letter spacing
Large display text often benefits from slightly tighter letter spacing, and small text from slightly looser spacing. Use small adjustments.
h1 {
letter-spacing: -0.01em;
}Common errors
- Requesting weights you never use. Loading four weights of two families when the design uses three styles wastes bandwidth. Audit the stylesheet against the CSS and remove what is unused.
- Pairing two similar fonts. Two geometric sans-serifs with slightly different shapes look like an accident. Either use one family or choose a clear contrast.
- Using the heading font for body text. Display faces often have poor spacing or hinting at small sizes. Keep them to headings.
- Forgetting the fallback for one of the two. Both stacks need a generic family at the end. If one is missing, the browser falls back to its default font, usually a serif, and the layout shifts.
- Referencing a font the Adobe project does not include. The CSS family name must match what the project page shows. If the name is wrong or the font is not in the project, the browser silently uses the next entry in the stack.
- Ignoring language support. A pair that looks good in English may lack Cyrillic, Greek, or accented glyphs in one of the two fonts. The fallback then supplies those characters, and the mismatch is visible.
Checking the result in the browser
Open developer tools, select a heading and a paragraph, and look at the Computed tab, then the Fonts pane (in Chrome and Edge it appears in the Elements panel; in Firefox it is the Fonts tab in the Inspector). It lists the font actually rendered for the element. If it names a system font instead of your web font, the web font did not load or the family name in CSS does not match.
Also use the Network panel, filtered by "Font", to confirm how many font files load and how large they are. With the Google example above, you should see roughly three font files, one per family and weight, and in modern browsers they are WOFF2.
A diagram of the decision
The diagram shows a simple way to reach a pair.
Notice that the body font comes first. Body text makes up most of the page, so its readability constrains everything else. The heading font is chosen to complement it.
Summary of the process
- Pick the body font first, for readability at small sizes and for language coverage.
- Decide whether one family in two weights is enough.
- If not, pick a heading font that contrasts in category, weight, or width but has a similar x-height.
- Request only the weights and styles you use, in as few stylesheet requests as practical.
- Define both stacks as custom properties with fallbacks that match the category.
- Verify in developer tools that the intended fonts render.
Exercise
A page loads Playfair Display for headings and Source Sans 3 for body text, but the developer tools show the headings rendering in a system serif font. Name two likely causes and how you would check each.
Show answer
First, the heading font may not have loaded. Check the Network panel filtered by "Font" for a failed or missing request, and check that the weight in the URL matches the weight in CSS (for example wght@700 for font-weight: 700). Second, the family name in CSS may not match the name the service provides, such as a typo or missing quotes around a multi-word name. Compare the CSS value to the family name in the stylesheet that the service returns. A third possibility is that the link tag is missing or placed after a blocking error, which you can see in the Elements panel.
Exercise
Write a Google Fonts link URL that loads Merriweather at weight 400 and Montserrat at weight 700, with font-display set to swap.
Show answer
https://fonts.googleapis.com/css2?family=Merriweather:wght@400&family=Montserrat:wght@700&display=swap