Design system · quantum lattice
The --u-base control
One knob rescales the entire composition. Ratios are quotients of multipliers, so φ cannot break; the display's pixel density bounds how finely the knob steps. Everything on this page — including the controls — re-derives live.
All axioms hold at this tuning.
| token | k | size | lead | box | pair |
|---|---|---|---|---|---|
| text-xs | 2.5 | 10.0px | 16px | 16px | — |
| text-sm | 3.125 | 12.5px | 20px | 20px | — |
| text-base · body | 4 | 16px | 24px | 24px | 2:3 |
| text-lg · lead ¶ | 5 | 20px | 32px | 32px | 5:8 |
| text-xl · title | 6.5 | 26.0px | 36px | 36px | — |
| text-2xl | 8 | 32px | 52px | 52px | 8:13 |
| text-3xl · headline | 10.5 | 42.0px | 52px | 52px | — |
| text-4xl | 13 | 52px | 84px | 84px | 13:21 |
| text-5xl · display | 17 | 68px | 80px | 80px | — |
Specimen
The grid that converges on gold
You cannot build a golden grid: φ is irrational and grids are rational. You can build the grid that converges on it. Every length on this page is an integer multiple of one unit, and every pair that claims proportion takes adjacent Fibonacci multiples: 2:3, 5:8, 8:13, 13:21 — the best rational approximations of φ that can exist.
A lead paragraph takes the 5:8 pair. Drag the knob and watch both columns rescale together; nothing resets, because there is nothing to reset — the composition is one equation with one free variable.
Small print keeps its own pair. The measure law caps every column at twenty-one of its own leadings, which lands each size inside the 45–75 character band without per-size overrides.
Tokens for this tuning
--u-base: 0.25rem; /* 4px */ --text-body: calc(var(--u-base) * 4); --lead-body: calc(var(--u-base) * 6); /* body line-height: 6/4 = 1.500 unitless */