The list you should be able to write down
A small set of named text sizes gives each recurring role a consistent starting point. Four or five can be enough for this example. Keep other sizes when they solve a clear problem for the content.
A typical honest set:
12px captions, legal, metadata
16px body
20px lead paragraph, card titles
28px section headings
40px page titleThese five values are examples of roles in one layout. Test labels, captions and body text at the actual viewing distance and enlarged settings. A size list helps people make consistent choices, while the content and use determine which choices work.
Building the scale
Choose a base and ratio. The example uses 16 CSS pixels to make the arithmetic easy. A reader can change their browser settings, and a site can use a different base. For step n, calculate base × ratio to the power n.
1.2 (minor third) 16 → 19 → 23 → 28 → 33 → 40
1.25 (major third) 16 → 20 → 25 → 31 → 39 → 49
1.333 (perfect fourth) 16 → 21 → 28 → 38 → 51 → 67
1.5 (perfect fifth) 16 → 24 → 36 → 54 → 81 → 122Round to whole numbers for this exercise. The perfect fourth is approximately 1.333. The musical names are convenient labels. Each ratio gives predictable numeric steps, while visible hierarchy depends on the font, spacing, weight, colour and where the sizes are used.
For a step below the 16px base at ratio 1.25, divide by 1.25 to get 12.8px, or 13px rounded. Compare a 13px and 14px caption with nearby body text on the real device. Keep the value that reads clearly and carries the intended role.
The scale has to change size with the screen
A ratio that suits a wide screen can produce a large heading on a narrow phone. At a 390px viewport, a 51px size describes the scale of the font, while the width of each glyph depends on its shape and font. Try a smaller step, compare actual wraps and leave room for a user’s larger text setting.
CSS does this in one declaration per size:
h1 { font-size: clamp(1.75rem, 1.2rem + 2.5vw, 3rem); }With a 16px root font size, the two rem limits are 28px and 48px. Between them, the preferred value combines a root-relative term and a viewport term. The relative term can help the text respond to the reader’s settings. Check that text can resize to 200% without loss and test reflow and long headings at narrow widths. W3C Resize Text.
Why fewer sizes is better
Three reasons, in order of how much they matter:
- Give each size a role. Keep a heading at a consistent level so readers can recognise a new section.
- Compare nearby sizes in context. One or two pixels of difference may be hard to distinguish. Weight and space can make the hierarchy clearer.
- Make revisions predictable. Update a named value in one place, then check the pages that use it.
The audit is the same as for spacing: list every distinct size on a page and count. More than six on a single screen is a finding.
Size is not the only rank
The commonest misuse of a type scale is trying to express every level of hierarchy through size alone, which ends with six heading sizes and a page that looks like a ransom note.
Weight, colour and space are all available. A subheading can be the same size as the body text, set in semibold, with 32px above it and 8px below. That is three channels doing the work of one size step, and it reads more clearly than a 17px heading ever will.
In long-form text this is the normal solution: two or three sizes for the whole document, with weight and space carrying the structure beneath the top level.
The limitation
A modular scale is a convenience, not a law. Real typographic settings break it constantly: a price that has to be exactly as wide as a card, a logotype that was drawn at a fixed size, a legal notice a regulator specifies in points.
The workable position is that the scale is the default and departures are deliberate and documented, which is the same rule as for spacing. What you are avoiding is not the existence of an off-scale value; it is a page with nine of them and no memory of why.
Check your understanding
A 5vw heading looks good at several widths. What should the designer verify before shipping?
Pick the one you would defend. Your answer stays private.
Your place and first choices stay on this browser. Classroom credit is recorded separately.
Stuck on something?Ask Meher, your AI tutor