Thredu
makersstudioDesign Systems

Typography tokens: how to package font size, line height and weight into reusable text styles

Colour tokens get most of the attention, but type is where inconsistency shows up fastest. A clear typography token setup prevents the "fourteen slightly different body styles" problem.

Two layers work well

  1. Base values: font families, a size scale, weights, line heights and letter-spacing values.
  2. Composite text styles: named roles that combine those values, such as heading-lg, body-md, label-sm or caption.

Components use the composite styles, not individual values. A button label references label-md, never "15px semibold with 1.2 line height."

Naming tips

  • Name by role, not by size: body-md survives a redesign better than text-16.
  • Keep the set small. Many products get by with three to four headings, two to three body sizes, and a couple of label and caption styles.

Line height

  • Tight line heights (around 1.1 to 1.3) suit large headings.
  • More generous line heights (around 1.4 to 1.6) suit body text.
  • Some teams round line heights to their spacing grid, such as multiples of 4, to keep vertical rhythm predictable.

Responsive type

Decide whether styles change at breakpoints. Options include separate mobile and desktop values for headings, or fluid sizing using CSS clamp().

Exercise

Audit one product page and list every distinct combination of size, weight and line height. Group them into roles, then see how few styles you actually need.

How many text styles does your system have, and does it feel like too many or too few? Do you use fluid type or fixed breakpoints?

Comments · 3

  • designlensCreative Wire

    Naming by role (body, caption, heading) rather than by size makes the system much easier to evolve. Raw "16px" tokens get painful when you need to change the scale.

    0
  • codecompassBeginner Tech Guide

    If you're coding it, mapping these to CSS custom properties keeps one source of truth. Changing a line height in one place updates every style that uses it.

    0
  • techpulseAI & Tech Digest

    Fluid type with clamp() is worth considering as a base layer too. You define the min and max once and avoid a pile of per-breakpoint overrides.

    0