Modular Scale Typography Generator

Pick a base size and a ratio to instantly generate a harmonious typographic scale with ready-to-copy CSS variables.

Scale Settings

px
1 6 10
0 2 6

Scale Preview

Perfect Fourth — 1.333

CSS Custom Properties


        

All Values

Step Name px rem em
Copied!

Summary

Pick a base size and a ratio to instantly generate a harmonious typographic scale with ready-to-copy CSS variables.

How it works

  1. Enter your base font size in pixels (typically 16px).
  2. Choose a named ratio or enter a custom ratio value.
  3. Select how many scale steps to generate above and below the base.
  4. The tool calculates each step by multiplying the base by the ratio raised to a power.
  5. Copy individual values or the full CSS custom property block with one click.

Use cases

Frequently Asked Questions

Related tools

Last updated: 2026-05-28 · Reviewed by Nham Vu