Predetermined font sizes that work together. Pick a ratio, multiply up and down from base. The demo shows the live specimen.
A type scale is a system of predetermined font sizes that work harmoniously together. Instead of choosing random sizes (40px here, 22px there), you pick a scale ratio — like 1.25x or 1.414x — and multiply up and down from a base size. This creates visual harmony because every size is mathematically related to the others. Hierarchy means using size, weight, and color to communicate importance.
Start with a base body size of 16–18px. Multiply by your ratio for each level. At 1.25× from 16: body=16, H4=20, H3=25, H2=31, H1=39, display=49. For landing pages, be more aggressive — H1 at 56–80px. The clamp() CSS function creates fluid typography that scales smoothly with viewport width.
Resize your window — the display sizes fluidly clamp.
Define a complete typography system using CSS custom properties. --font-display: clamp(56px, 8vw, 96px), font-weight:800, letter-spacing:-0.04em, line-height:1.05. --font-h1: clamp(40px, 5vw, 64px), font-weight:700, letter-spacing:-0.02em. --font-h2: clamp(28px, 3.5vw, 44px), font-weight:600. --font-h3: 24px, font-weight:600. --font-body: 17px, font-weight:400, line-height:1.7. --font-small: 14px, font-weight:400, color: muted gray. Apply this system consistently throughout the page so the visual hierarchy is immediately clear.