Dad’s Fonts tools

Size Calculator

base 16px · ratio 1.250 · 7 steps · WCAG ✓

Generate a harmonious type scale with CSS, @theme and clamp() output. Runs 100% in your browser — nothing leaves your device.

Scale preview

  1. 39.06pxDisplaylh 1.18
  2. 31.25pxH1lh 1.26
  3. 25pxH2lh 1.34
  4. 20pxH3lh 1.42
  5. 16pxBodylh 1.5
  6. 12.8pxSmalllh 1.5
  7. 10.24pxCaptionlh 1.5

Output

CSS custom properties
:root {
  --step-up-4: 2.4413rem; /* 39.06px */
  --leading-up-4: 1.18;
  --step-up-3: 1.9531rem; /* 31.25px */
  --leading-up-3: 1.26;
  --step-up-2: 1.5625rem; /* 25px */
  --leading-up-2: 1.34;
  --step-up-1: 1.25rem; /* 20px */
  --leading-up-1: 1.42;
  --step-base: 1rem; /* 16px */
  --leading-base: 1.5;
  --step-down-1: 0.8rem; /* 12.8px */
  --leading-down-1: 1.5;
  --step-down-2: 0.64rem; /* 10.24px */
  --leading-down-2: 1.5;
}

Your files stay on your computer. Dad promised.

Fonts tools

Search the Fonts tools