2026-11-08·par Sijie Wang

modular-scale-typography

A modular scale arranges type sizes by a fixed ratio, with line-heights on a shared baseline, so hierarchy is deliberate and text stays readable.

Modular scale and typographic rhythm

A modular scale is a set of type sizes arranged by a fixed ratio, instead of sizes picked one by one by feel. Pick a body size and a ratio, and every other size follows from them.

The mechanism: sizes in proportion

A modular scale is a geometric progression. Each step multiplies the previous size by the same ratio:

sizen=base×rationsize_n = base \times ratio^n

With a base of 16px and a ratio of 1.25, the scale grows as 16, 20, 25, 31, and downward as 16, 13, 10. A commonly used rounded scale on a 1.25 ratio is 12, 14, 16, 20, 25, 31. A ratio of 1.25 is gentle; a ratio of 1.333 is more dramatic, because each step jumps further from the last.

The mechanism is proportion, not decoration. Because every size stands in the same mathematical relationship to every other size, the hierarchy looks deliberate rather than arbitrary. The eye can tell at a glance which text is a heading, which is body, and which is a note, because the gaps between levels are consistent. When sizes are picked independently, the gaps are inconsistent, and the reader has to work out the hierarchy from context instead of seeing it.

Line-height and the baseline

Size is only half of typographic rhythm. Line-height is the other half: the vertical distance from one line of text to the next. When line-heights are rounded to a shared baseline, usually 4px or 8px, lines of different sizes still land on the same vertical grid. The eye moves down the page without jumping, because the spacing between lines is predictable.

The mechanism is the same as for size: a shared unit makes unlike elements line up. A heading with a 25px size and a 32px line-height, and body text with a 16px size and a 24px line-height, both sit on an 8px baseline, so a heading followed by body text does not break the vertical rhythm.

Letter-spacing and micro-labels

Small text needs different treatment from body text, not just a smaller size. Micro-labels — short UI labels, tags, section eyebrows — are often set in uppercase with added letter-spacing. Uppercase letters are wider and more uniform, so a little extra tracking keeps them from merging into a solid block, and the spacing itself signals "this is a label, not a sentence."

Practice: building a scale

  1. Pick a body size, for example 16px.
  2. Pick a ratio: 1.25 for a gentle scale, 1.333 for a more dramatic one.
  3. Generate the scale from the ratio, rounding to whole pixels.
  4. Round every line-height to a 4px or 8px baseline.
  5. Stop at 4–6 size steps. That is enough for body, headings, captions, and labels; more steps add levels the reader cannot distinguish.

Lucerna example

On the Lucerna reading page, the type scale covers body text, headings, annotations, and UI labels, all drawn from one ratio, with line-heights on a shared baseline. Body text is the anchor at 16px; headings step up by the ratio; annotations and UI labels step down. The result is that a reader can tell the level of any piece of text from its size and spacing alone, without reading it first.

Good and bad examples

GOOD — 4–6 steps on one ratio: body 16px with headings at 20, 25, and 31px. Each level is visibly larger than the one below it, the gaps are even, and the hierarchy is readable at a glance.

GOOD — line-height on an 8px baseline: body 16px with 24px line-height, heading 25px with 32px line-height. Different sizes, same grid, so the eye moves down without jumping.

GOOD — micro-labels in uppercase with letter-spacing: a small "CHAPTER 3" label set in uppercase with tracking reads as a label, not as a sentence that happens to be small.

BAD — 13 arbitrary sizes picked by feel: 11, 12, 13, 14, 15, 16, 17, 18, 19, 21, 23, 27, 32px. No two gaps are the same, so no level looks deliberately above another, and the page reads as noise.

BAD — line-height so tight that lines collide: body 16px with 16px line-height. Descenders touch the ascenders of the next line, and reading slows because each line interferes with the next.

BAD — a heading only 1px bigger than body text: body 16px, heading 17px. The size difference is below what the eye notices at a glance, so the hierarchy is invisible and the heading looks like a bold body line by mistake.

Why it matters

A modular scale and a shared baseline turn two separate decisions — how big, and how far apart — into one system. Sizes in proportion give the page a visible hierarchy; line-heights on a baseline give it a steady rhythm. Together, text is both layered and readable: the reader knows what matters first, and can keep reading without friction.

à propos de cette entrée

L'une des entrées de wiki de sijie. L'IA sur ce site est fondée sur le même corpus et répond à la voix de sijie, avec citations revenant à des entrées comme celle-ci — répondre coûte argent à sijie, donc cela attend derrière un code : entrer un code d'accès →

modular-scale-typography — Sijie Wang