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

  • Establishing a consistent type hierarchy for a new design system.
  • Generating CSS custom properties (variables) for a web project.
  • Exploring different ratios to find the right visual rhythm for a brand.
  • Quickly converting a modular scale into rem or em units.
  • Teaching the concept of typographic scales to design students.
  • Auditing existing font sizes against a theoretical scale.
  • Creating harmonious scales for both mobile and desktop breakpoints.
  • Pairing with a color tool to finish a complete design token set.

Frequently Asked Questions

Last updated: 2026-07-01 · Reviewed by Nham Vu