Skip to main content
Redmoon Converters
🎨 Design & Creative

Typography Scale Generator (Modular Type Scale)

Generate a modular typography scale from any base size and ratio (1.125 to 1.618) and copy it as CSS custom properties or Tailwind config.

Browser default is 16 px.
Scale preview
Base 16 px · Ratio 1.2
SteppxrememLine-heightPreview
How the math works

A modular scale multiplies the base by the ratio for each step up, and divides for each step down. Step 0 is the base, step 1 = base × ratio, step −1 = base ÷ ratio, etc.

Suggested line-height drops as size grows: 1.6 for body, 1.4 for headings, 1.1 for display sizes — calculated as `1.7 − 0.1 × stepAbove` clamped to [1.05, 1.7].

Also known as

typography scale calculatormodular type scalerem font size scalecss type scale

Related tools