FREE TOOL · NO AI · CSS + TAILWIND

Typography Scale Generator

Pick a base size and ratio. Get a complete type scale with CSS custom properties, Tailwind fontSize config, and a live preview of every step.

FreeNo signupCSS + Tailwind8 standard ratios
Free · No signup

Typography Scale Generator

Harmonious type scales in one click.

Settings
px
Unit
Scale Preview10 steps
2xsThe quick brown fox0.48rem
xsThe quick brown fox0.58rem
smThe quick brown fox0.69rem
baseThe quick brown fox0.83rem
mdThe quick brown fox1.00rem
lgThe quick brown fox1.20rem
xlThe quick brown fox1.44rem
2xlThe quick brown fox1.73rem
3xlThe quick brown fox2.07rem
4xlThe quick brown fox2.49rem
:root {
  --text-2xs: 0.48rem;
  --text-xs: 0.58rem;
  --text-sm: 0.69rem;
  --text-base: 0.83rem;
  --text-md: 1.00rem;
  --text-lg: 1.20rem;
  --text-xl: 1.44rem;
  --text-2xl: 1.73rem;
  --text-3xl: 2.07rem;
  --text-4xl: 2.49rem;
}

What you get

Complete scale

Every step from 3xs to 6xl, calculated from your base size and chosen ratio.

CSS custom properties

`--text-base`, `--text-lg`, `--text-2xl`… ready to paste into your `:root`.

Tailwind fontSize config

Drop-in `fontSize` block for your `tailwind.config.ts` or CSS `@theme` block.

How it works

01

Set your base size

Enter your body text size (default 16px). This is the anchor for your entire scale.

02

Choose a ratio

Pick from 8 standard ratios: Minor Second through Golden Ratio.

03

Copy your scale

Get the full scale as CSS custom properties or Tailwind fontSize config.

Why use this

Math-perfect, not arbitrary

Every step calculated from a single ratio. No eyeballing. No "18px feels about right."

Works for any CSS system

Output works in vanilla CSS, Tailwind v4 CSS-first config, or any design token system.

Frequently asked questions

Related tools