Guide · 11 min read

Typography for UI designers.

Product typography is not editorial typography scaled down. It is a different craft: legibility at 12px, weight ramps that survive dark mode, numerals that hold their shape in a live data table, and a scale that thirty engineers can apply without drifting. This guide covers the decisions that matter and the defaults worth starting from.

Key takeaways

  • Design a modular scale of six to eight steps instead of picking sizes screen by screen.
  • Line-height scales inversely with size: ~1.5 for body, ~1.2 for headings, ~1.0 for buttons.
  • Use weight and colour to build hierarchy before reaching for a larger size.
  • Tabular figures are non-negotiable anywhere numbers are compared or updated.
  • Dark mode needs a lighter optical weight — the same font-weight value reads heavier on dark backgrounds.
  • Pick interface fonts for open apertures, tall x-height, distinct 1/I/l and a full numerals set.

On this page

  1. 1. Build the scale before you build a screen
  2. 2. Line-height, measure and vertical rhythm
  3. 3. Weight, colour and hierarchy
  4. 4. Numerals: the detail that separates good UI type
  5. 5. Choosing an interface family
  6. 6. Performance, fallbacks and accessibility

Type scale, not sizes

Define a modular scale (12/14/16/20/24/32/48) once and reference tokens, instead of picking one-off sizes per screen.

Line-height is architecture

1.5x for body, 1.2x for headings, 1.0x for buttons. These are not opinions — they are the constants that let interfaces breathe.

Ramp weight, not just size

A regular-medium-bold ramp does more hierarchy work than jumping to a larger size, and costs less vertical space.

Tabular numerals for data

Any font rendering a table, price, dashboard figure or countdown needs tabular figures. This one is non-negotiable.

Build the scale before you build a screen

The most common typographic failure in product design is not an ugly font — it is fourteen font sizes across nine screens, none of them documented. A scale fixes it, and the scale is worth defining before the first component.

A practical starting set: 12 / 14 / 16 / 20 / 24 / 32 / 48. That is roughly a 1.2–1.25 ratio in the small range, where precision matters, opening up at the display end where jumps need to be obvious. Name the steps by role rather than size — body, body-sm, title, display — so a later change to a value does not require renaming tokens everywhere.

Two rules keep the scale intact under pressure: no size outside the scale ships, and if a designer needs a step that does not exist, the scale gets amended deliberately rather than bypassed locally.

Line-height, measure and vertical rhythm

Line-height is the single largest lever on how readable an interface feels, and it is size-dependent rather than fixed.

  • Body copy (14–16px): 1.5. Long-form reading inside a product benefits from 1.6.
  • Titles (20–32px): 1.25 to 1.3.
  • Display (40px+): 1.05 to 1.15. Large type needs almost no leading and looks slack with body-level values.
  • Single-line UI (buttons, tabs, table cells): 1.0 to 1.1, with padding controlling the height instead.

Constrain measure too. Aim for 60 to 80 characters per line for body text; set a max-width in ch units on paragraph containers so it holds at every breakpoint. A full-width paragraph on a 32-inch monitor is the most common readability bug in dashboard design.

Weight, colour and hierarchy

Size is the most expensive way to signal importance because it consumes vertical space. Weight and colour are cheaper and often clearer.

A three-step weight ramp — regular for body, medium for emphasis and labels, semibold or bold for titles — handles nearly all product hierarchy. Pair it with two or three text colours (primary, muted, and one accent for interactive text) and you can build a legible dense interface at just two or three sizes.

Dark mode changes apparent weight

Light type on a dark background blooms optically: the same font-weight: 400 reads heavier than it does on white. If your product supports both themes, check body copy in dark mode specifically, and consider dropping one weight step or reducing text opacity rather than accepting a muddier read.

Do not use opacity as your only weight control

Faded text at 45 percent opacity looks refined in a mockup and fails contrast audits in production. Aim for a 4.5:1 contrast ratio on body text and 3:1 on large text, and use a defined muted colour token rather than arbitrary alpha values.

Numerals: the detail that separates good UI type

Interfaces are full of numbers, and numbers behave differently from letters. Three properties matter.

  • Tabular versus proportional. Tabular figures share a fixed advance width so columns align and updating values do not jitter. Enable with font-variant-numeric: tabular-nums in tables, dashboards, timers and price displays.
  • Lining versus old-style. Lining figures sit at cap height and belong in UI. Old-style figures with descenders belong in running editorial text.
  • Slashed or dotted zero. Essential in anything showing IDs, codes, hashes or serials, where a zero mistaken for a capital O costs a support ticket.

Verify all three in the actual font file before selection. FontViewer.app renders numerals, tabular behaviour and the ambiguous 1 I l 0 O set directly from the families installed on your machine, so you can rule out candidates in seconds instead of discovering the gap in QA.

Choosing an interface family

The best UI faces share a short list of structural traits:

  • Open apertures on c, e, s and a so letters stay distinct at small sizes.
  • Generous x-height relative to cap height, which raises apparent size without raising actual size.
  • Unambiguous 1, I, l and 0, O — mandatory for anything with codes or credentials.
  • A complete weight ramp including a real medium, not just regular and bold.
  • Restrained personality. A face you notice on the fifth screen is the wrong face for the twentieth.

Preview candidates in FontViewer's UI mode, which renders headings, body copy and micro-copy in the exact hierarchy a product uses rather than a decorative specimen, then shortlist into a project and compare the finalists side by side.

Performance, fallbacks and accessibility

Typography is a performance budget item. Every weight is a file, and self-hosted variable fonts with a subset character set usually beat four static weights on bytes.

  • Use font-display: swap and preload only the weights used above the fold.
  • Define a metric-compatible fallback so layout does not reflow on font load — see web-safe fallback stacks.
  • Size type in rem so browser text-size preferences are respected.
  • Test at 200 percent zoom; anything that breaks is an accessibility bug, not a stylistic one.
  • Never lock line-height, letter-spacing or word-spacing in a way that blocks user stylesheet overrides.

If you are weighing a variable font against static weights, our guide to variable fonts covers when the single-file approach actually pays off.

Frequently asked questions

What is the best font size for body text in a web app?

16px is the safe default for primary body copy, with 14px acceptable for dense secondary UI and 12px reserved for metadata and labels. Anything below 12px should carry no information the user needs to act on. If a design forces 11px body text to fit, the layout is the problem, not the type size.

How many font sizes should a design system have?

Six to eight steps covers almost every product. A workable scale is 12, 14, 16, 20, 24, 32 and 48. Fewer steps forces weight and colour to carry hierarchy, which is usually a good constraint; more steps produces near-duplicate values that drift apart across teams.

What line-height should I use for UI text?

Roughly 1.5 for body copy, 1.2 to 1.3 for headings, and 1.0 to 1.1 for single-line elements such as buttons and table cells. Line-height scales inversely with type size: the larger the text, the tighter it should be, because the eye needs less help finding the next line.

Do I need tabular figures for a dashboard?

Yes. Any interface that shows a column of numbers, a price that updates, a countdown, or values the user compares needs tabular figures, or digits will visibly shift width as values change. Check for the feature before selecting a UI family — not every otherwise-excellent font ships it.

Is a system font stack good enough for a product UI?

Often yes. The system-ui stack costs nothing to load, renders natively on every platform, and includes tabular figures and full weight ramps. Choose a custom family when the brand voice genuinely needs it or when you require typographic features the system faces lack — not by default.

Related reading

Ready to try FontViewer.app?

Preview every font on your computer in under a minute. Free to start.