🔤

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
Tool
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

RatioNameFeel
1.125Major SecondSubtle, compact (body text)
1.200Minor ThirdBalanced (most UIs)
1.250Major ThirdComfortable contrast
1.333Perfect FourthClassic editorial
1.618Golden RatioBold, 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.

Frequently Asked Questions