03.3.2 · Skill in UI design

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.

Your status · Typography

Saved in this browser. Sign in to keep it on every device.It colours this skill's tile on your map.

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

  1. Set body text first. Matthew Butterick names four choices that matter most: size, line spacing, line length and font.
  2. Use 15 to 25 pixels for body text on the web, and line spacing of 120 to 145% of the size.
  3. Keep lines between 45 and 90 characters, with a maximum width in ch or rem.
  4. Choose one well-made font family, and use few sizes: body, a small size, and two or three for headings.
  5. Use bold and italic rarely, and not together. Never underline anything except links.
  6. 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.

Side by side

Butterick's rules for body text, and this page

Butterick's rangeThis page
Size on the web15–25 px16 px
Line spacing120–145% of the size155%
Line length45–90 charactersAbout 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 book

    Start with the ten-minute summary; it covers most of what an engineer needs to set type well.

Tools

2
Tools for UI design
  • ToolFreemium
    Figma

    Collaborative interface design and prototyping in the browser, the industry default.

  • ToolOpen source
    Penpot

    Open-source design and prototyping tool, self-hostable, built on open web standards.