Before: arbitrary values
A Better Type System
Font sizes chosen separately
These values do not come from one shared ratio. The sizes, line heights, and spacing were selected independently.
Supporting informationWDD 331R Teaching Topic
This demo builds an entire type scale from one base size and one ratio. Changing the ratio updates every step.
Move the slider and watch every scale step update from the same ratio token.
| Step | Calculation | Example | Computed size |
|---|---|---|---|
| -2 | base × ratio⁻² |
Caption text | |
| -1 | base × ratio⁻¹ |
Supporting text | |
| 0 | base |
Body text | |
| 1 | base × ratio¹ |
Lead paragraph | |
| 2 | base × ratio² |
Section heading | |
| 3 | round(base × ratio³, 1px) |
Display heading |
Before: arbitrary values
These values do not come from one shared ratio. The sizes, line heights, and spacing were selected independently.
Supporting informationAfter: computed scale
These values come from the computed scale. The text measure uses ch, and the spacing uses line-height units to create rhythm.
Supporting information