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.333CSS 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
- Enter your base font size in pixels (typically 16px).
- Choose a named ratio or enter a custom ratio value.
- Select how many scale steps to generate above and below the base.
- The tool calculates each step by multiplying the base by the ratio raised to a power.
- 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
Related tools
Last updated: 2026-05-28 ·
Reviewed by Nham Vu