Pairing two fonts without a clash
Yes, you can use more than one font. Two is plenty, and each one needs a clear job. If you can't say what the second font is for, drop it. Simple as that.
A pairing checklist
- Give each font one job. A common split is one font for headings and one for paragraphs. Don't let both fight for the same job.
- Contrast the styles, don't copy them. Two fonts that look nearly the same can seem like a mistake. A serif with a sans-serif is a plain way to make a difference clear. Serif fonts have small flourishes on the letters.1
- Keep decorative fonts short. The
fantasyfamily is made up of fonts intended to be decorative.1 Use that kind sparingly, such as one short heading, and not for paragraphs. - Code gets its own style. The
monospacefamily has fonts where every character has the same width, typically used in code.1 If your site shows code, that's a third font you may not need to download. - Limit what you load. It's a good idea to provide as few web font files as possible.2 Each weight or style you add can be another file, so think before adding bold italic in both fonts.
- Check the licence for both.2 See Font licences explained.
Write the CSS so the pair survives a failure
Give each font its own list. Name your heading font first, then a generic family such as serif. Do the same for the body font, ending with sans-serif if that suits it.
Every list should include at least one generic family name.3 It belongs at the end of the list.3 That way, a failed download still leaves a sensible style, not the browser's default.1
Match the generic family to the font. If your body font is sans-serif, end its list with sans-serif. Otherwise a failure can leave you with a style that doesn't suit it.1
Testing the pair
- Put a real heading above a real paragraph on a test page.
- Squint, or step back from the screen. Can you tell which is the heading by shape alone?
- Look at them at phone width and desktop width.
- Temporarily turn off the web font, for example by misspelling its name in your test copy, and look at the fallback. It should still look orderly.
- Check the body font against the spacing notes, and test both against the contrast ratios.
Test it. Then test it again after any change. A swapped font or a new weight can move a line break onto a different word, which changes how a heading reads on a narrow phone screen.
Things that tend to clash
- Two fonts that are close but not the same.
- Several decorative fonts on one page.
- A heading font that's much wider or narrower than the body font, so lines wrap oddly.
- Mixing too many weights.
Not sure where to begin? The starting checklist gives an order to work in. Or skip pairing. A single font in regular and bold is a pair of its own. Plain, but calm.
Where the facts come from
- Fundamental text and font styling, MDN Web Docs
- Web fonts, MDN Web Docs
- font-family, MDN Web Docs