Typography
Choosing and setting type so text is readable and the hierarchy is clear.
Typography covers font choice, sizes, line length, line height and weight. Most interfaces need only a few sizes used consistently. Good defaults make an interface look deliberate even before any other styling.
Why it matters for a product engineer
Most of an interface is text. Font, size, line spacing and line length decide whether it is easy to read. These are a handful of CSS values, and good defaults make an interface look deliberate before any other styling.
How to do it
- Set body text first. Matthew Butterick names four choices that matter most: size, line spacing, line length and font.
- Use 15 to 25 pixels for body text on the web, and line spacing of 120 to 145% of the size.
- Keep lines between 45 and 90 characters, with a maximum width in
chorrem. - Choose one well-made font family, and use few sizes: body, a small size, and two or three for headings.
- Use bold and italic rarely, and not together. Never underline anything except links.
- Check the text on a phone and on a large screen, in light and dark themes.
Common mistakes
- Body text below 15 px to fit more on the screen.
- Lines that run across a wide monitor.
- Many sizes that differ only a little, so the hierarchy is unclear.
- Light grey text on white, which looks elegant and reads badly.
Example
This page sets body text in IBM Plex Sans at 16 px, with line spacing of 155%, a little above Butterick’s range. A line holds about 88 characters on a laptop and about 49 on a phone, both inside the range. We measured it in Chrome while writing this.
Butterick's rules for body text, and this page
| Butterick's range | This page | |
|---|---|---|
| Size on the web | 15–25 px | 16 px |
| Line spacing | 120–145% of the size | 155% |
| Line length | 45–90 characters | About 88 on a laptop, 49 on a phone |
Three numbers decide most of how body text reads. This page is inside the range for two of them, and a little loose on the third.
MeasuredButterick's Practical Typography; this page in Chrome at 390 and 1280 px, 23 Nov 2026
Sources: Butterick's practical typography: summary of key rules (Matthew Butterick) ↗
Resources
1- bookStart here
Butterick's practical typography ↗
Matthew Butterick · free online bookStart with the ten-minute summary; it covers most of what an engineer needs to set type well.