Studio in Iligan City, Philippines

Design · · 5 min read · by Lord Arcamo

Typography in Web Design: The Rules That Actually Matter

Type is 95% of web design, yet it's the most overlooked element. The principles that separate good typography from great — and from unreadable.

Good web typography comes down to a few rules that matter: a clear size scale, comfortable line length, generous spacing, strong contrast and no more than two fonts. Get those right and your site reads as professional, even with a simple layout. Get them wrong and no colour or imagery will save it.

Oliver Reichenstein famously wrote that web design is 95% typography. After years of design work, we think he had a point. Most of what people do on a website is read, so the type is the product. Here is what to check on your own site, with numbers you can hand straight to your designer.

The scale problem

Most websites use too small a type scale. If your body copy is 14px and your headings are 22px, you do not have a hierarchy. You have noise. A clear scale creates visual order without any extra effort.

Start with 16px body text, then multiply by a fixed ratio of at least 1.25 for each step up. That gives you roughly 16, 20, 25, 31 and 39 pixels. Use a larger ratio for a bolder look, and let your largest headings shrink on phones so a long word does not break the layout. Limit yourself to four or five sizes across the whole site, and write them down so that new pages stay consistent. For more on how size directs attention, see our guide to visual hierarchy.

Line length is non-negotiable

Robert Bringhurst's The Elements of Typographic Style gives 45 to 75 characters as the comfortable range for a line of text. Count yours. If your text column spans the full width of a desktop screen, you are making reading hard work, because the eye loses its place on the way back to the start of the next line.

The fix is one line of CSS. Set a max-width on your text column, and a value of around 65ch is a good starting point. On a phone, the screen width keeps lines short for you, so check the opposite problem there: large headings that break into one or two words per line.

Pairing fonts: the one rule

Pair a serif with a sans-serif, or use two sans-serifs with clearly different weights and personalities. The mistake is pairing fonts that are too similar, because they compete rather than complement each other. Contrast is the entire point.

If you are not sure, use one good family in two or three weights. Plenty of strong brands do exactly that. Two fonts is the sensible limit for most small business sites. Each extra one adds download weight and makes the design look less considered.

When choosing, test real sentences from your site, not the sample text on the font page. Check that the numbers look right if you show prices, and that the font includes every character you need, such as the peso sign. Some typefaces leave it out.

Whitespace is type's best friend

Give your text more space between lines, more space between paragraphs and more padding around blocks. For body text, a line height of 1.5 to 1.7 is a good range. Headings need less, usually about 1.1 to 1.3, because large type with loose lines falls apart.

Whitespace is not waste. It is the room type needs to breathe. Keep space above a heading larger than the space below it, so the heading clearly belongs to the text it introduces. Compressed text communicates cheapness, whether you intend it or not.

Contrast and readability on real screens

A beautiful font in pale grey is still unreadable. The Web Content Accessibility Guidelines (WCAG) ask for a contrast ratio of at least 4.5:1 for normal body text and 3:1 for large text. Free contrast checkers will test your colours in seconds.

Then look at your site on a phone outdoors, because that is where many of your customers will read it. Thin font weights and light grey text fail first in bright light. If you have to squint, change the weight or the colour.

Variable fonts are worth using

Modern variable fonts give you any weight and width from a single file, which can replace several separate downloads and allows smooth changes in weight. Browsers support them well. They pay off most when you use three or more weights. If you only need regular and bold, two small static files may be lighter.

Whatever you choose, host your fonts sensibly. Load only the weights you use, use the WOFF2 format, and set font-display so text appears straight away rather than staying invisible. Also check the licence. Google Fonts are free for commercial use, but many others charge separately for web use.

Frequently asked questions

What is the best font size for a website? Use at least 16px for body text on all screens. Go higher if your typeface looks small or your readers are older. Do not drop below it for main content on mobile.

How many fonts should a website use? One or two. If you add a third, it should have a specific job, such as code or prices. Record your choices in a brand style guide so everyone uses them the same way.

Do fonts affect website speed? Yes. Every font file is a download. Fewer weights, WOFF2 files and sensible loading settings keep the cost small.

Wondering how your site reads on a phone? Book a free 15-minute website check and we will look at it with you on Google Meet.

Where this fits in our work

Put this guide to work