Typography Scale Generator
Generate a modular typography scale in rem and px. Choose a base size, scale ratio and preview all steps. Export CSS custom properties instantly. Free.
🎨 Design & Color Tools
Free
Browser-based
NamerempxPreview
What Is a Modular Type Scale?
A modular scale generates font sizes by multiplying a base size by a consistent ratio. This creates visual harmony — each size is mathematically related to the next, producing a natural rhythm throughout the typography of a design.
Popular Scale Ratios
| Ratio | Name | Feel |
|---|---|---|
| 1.125 | Major Second | Subtle, compact (body text) |
| 1.200 | Minor Third | Balanced (most UIs) |
| 1.250 | Major Third | Comfortable contrast |
| 1.333 | Perfect Fourth | Classic editorial |
| 1.618 | Golden Ratio | Bold, dramatic headings |
Using in CSS
Paste the exported :root block into your stylesheet. Reference sizes with font-size: var(--text-xl). The step names (sm, base, lg, xl, 2xl…) follow common Tailwind-inspired naming conventions.