Tested tool guide
Tested browser tools
Checked August 16, 2026
What Typography Scale Generator does, with a checked example
A modular type scale is one multiplication repeated: pick a body text size and a ratio, and every heading, caption, and label is that product applied step by step. This tool turns those two numbers into a full set of CSS custom properties, with sample text at each size so the rhythm can be judged before pasting. The surprise for most people: the golden ratio is not the right default. At a 16px base, 1.618 sends the second step to about 26px and the third past 42px; for most interfaces 1.25 or 1.333 keeps headings large without stranding body text.
Worked example
A concrete input and expected output from the current implementation.
Input
Base 16px, ratio 1.25 (major third), steps -2 to +6
->
Expected output
-2: 10.24px | -1: 12.8px | 0: 16px | 1: 20px | 2: 25px | 3: 31.25px | 4: 39.06px | 5: 48.83px | 6: 61.04px
Each step multiplies the previous one by the ratio: 16 x 1.25 = 20, 20 x 1.25 = 25, and so on up to 61.035 rounded to 61.04. Below the base, division gives 12.8 and 10.24. Two-decimal rounding is why 39.0625 appears as 39.06.