WDD 331R Teaching Topic

Modular Scale Tokens and Typographic Rhythm

This demo builds an entire type scale from one base size and one ratio. Changing the ratio updates every step.

Turn the ratio knob

Move the slider and watch every scale step update from the same ratio token.

Computed type scale

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 and after

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 information

After: computed scale

A Better Type System

Every size uses the same ratio

These values come from the computed scale. The text measure uses ch, and the spacing uses line-height units to create rhythm.

Supporting information