What it looks like
Levels are set with three levers: size, weight, color. On this site:
| Level | What | Size and weight | Color and contrast with the background |
|---|---|---|---|
| Primary | headings | h2 — 27 px, bold |
--ink #1a1816, 15.8:1 |
| Normal | text | 17 px, regular | the same --ink: it differs from the heading by size and weight |
| Secondary | captions, dates, list markers | 11–15 px | --ink-3 #66605a, 5.6:1 |
Neighbouring levels differ clearly in at least one lever: an h2 is 1.6 times larger than the text, a caption smaller
and paler. The in-between --ink-2 (#4a4540, 8.5:1) goes to the lead and explanations — a shade of the normal level,
not a fourth one. An 18 px heading over 17 px text isn’t a level: a 6% difference doesn’t show while scanning.
Why three
- People can’t hold more. Five shades of gray and four heading sizes merge into two or three at a glance; the reader doesn’t remember the difference between them, and neither does the author.
- Importance is a comparison. A highlight becomes primary only against the normal. When there are many primary spots, none of them is primary (Bold: one or two spots).
- The secondary level is needed. Without a third level, a date, a version and a caption compete with the text for attention. Paler — but not paler than 4.5:1, or it won’t be readable (Text contrast).
The squint test
Step back from the screen or squint until the text blurs. If you see three blobs of different strength — headings, text, captions — there’s a hierarchy. If it’s all one gray, the levels don’t differ. If something other than the primary jumps out, it’s a stray anchor. Without squinting, a blur in the browser console does the same:
document.body.style.filter = 'blur(3px)'
Put it back with document.body.style.filter = ''. The other checks — Checking presentation.