Skip to content
Tools/Typography Scale

Typography Scale Generator

Build a harmonious modular type scale. Pick a base size and ratio — copy as CSS variables, Tailwind config, or raw values.

Base Size

Base (rem)1rem
0.75rem1.5rem
Root font-size16px
12px20px
base = 16px (1rem × 16px)

Scale Ratio

Preview Font

Live Preview

Perfect Fourth · ×1.333
Display / oversized headline
6xl7.478rem·119.66px
Hero headline
5xl5.61rem·89.76px
Hero subheadline
4xl4.209rem·67.34px
Page section title
3xl3.157rem·50.52px
Section heading
2xl2.369rem·37.9px
Subheading or card title
xl1.777rem·28.43px
Lead paragraph or large body
lg1.333rem·21.33px

Scale Values

Steprempx
xs0.56289
sm0.750212
base116
lg1.33321.33
xl1.776928.43
2xl2.368637.9
3xl3.157350.52
4xl4.208767.34
5xl5.610289.76
6xl7.4784119.66

Export

:root {
  --text-xs: 0.5628rem;
  --text-sm: 0.7502rem;
  --text-base: 1rem;
  --text-lg: 1.333rem;
  --text-xl: 1.7769rem;
  --text-2xl: 2.3686rem;
  --text-3xl: 3.1573rem;
  --text-4xl: 4.2087rem;
  --text-5xl: 5.6102rem;
  --text-6xl: 7.4784rem;
}

What is a modular scale? Each step is the previous value × the ratio. A Perfect Fourth (1.333) creates a natural, harmonious progression — the same interval used in music. Smaller ratios like Major Second (1.125) are subtle; larger ones like Golden Ratio (1.618) are dramatic.

Related Tools