Type Scale Generator
Pick a base font size and ratio to instantly generate a modular type scale with copy-ready CSS custom properties.
Use the Type Scale Generator
Scale Settings
Live Preview
Each row uses the scale sizeCSS Custom Properties
Scale Reference
| Step | Variable | px | rem | Preview |
|---|
Copied!
Summary
A type scale generator lets you build a harmonious set of font sizes based on a modular ratio. Enter a base font size in pixels and choose a ratio — the tool computes each step up and down the scale, shows a live text preview, and outputs copy-ready CSS custom properties you can drop straight into your stylesheet.
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-05-28 · Reviewed by Nham Vu