Type Scale Generator
Pick a base font size and ratio to instantly generate a modular type scale with copy-ready CSS custom properties.
Scale Settings
Live Preview
Each row uses the scale sizeCSS Custom Properties
Scale Reference
| Step | Variable | px | rem | Preview |
|---|
Copied!
Summary
Pick a base font size and ratio to instantly generate a modular type scale with copy-ready CSS custom properties.
How it works
- Enter your base font size in pixels (default 16px).
- Select a modular ratio such as Perfect Fourth (1.333) or Major Third (1.25).
- Adjust the number of steps above and below the base.
- Review the live preview to see how each scale step looks as real text.
- Click "Copy CSS" to copy the generated CSS custom properties to your clipboard.
Use cases
- Establish consistent heading sizes for a design system.
- Find harmonious font sizes before writing your stylesheet.
- Generate CSS custom properties for Tailwind or vanilla CSS projects.
- Experiment with different ratios to match your brand typography.
- Share a consistent type scale with designers and developers.
- Quickly prototype the visual hierarchy of a landing page.
Frequently Asked Questions
Last updated: 2026-06-11 ·
Reviewed by Nham Vu