Modular scale calculator

Calculate a modular type scale right here — no account needed. Pick a base font size and a scale ratio (minor third, perfect fourth, golden ratio, or your own), watch every type size render at its real size, and copy the result as Tailwind v4 @theme typography tokens — --text-xs through --text-4xl — ready to paste into any Tailwind CSS project.

Scale ratio
4xl · 49px · 3.0625rem

The five boxing wizards jump

3xl · 39px · 2.4375rem

The five boxing wizards jump

2xl · 31.5px · 1.9688rem

The five boxing wizards jump

xl · 25px · 1.5625rem

The five boxing wizards jump

lg · 20px · 1.25rem

The five boxing wizards jump

base · 16px · 1rem

The five boxing wizards jump

sm · 13px · 0.8125rem

The five boxing wizards jump

xs · 10px · 0.625rem

The five boxing wizards jump

Tailwind v4 @theme tokens — paste into your globals.css.

@theme {
  --text-xs: 0.625rem;
  --text-sm: 0.8125rem;
  --text-base: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5625rem;
  --text-2xl: 1.9688rem;
  --text-3xl: 2.4375rem;
  --text-4xl: 3.0625rem;
}

/* Generated with Nodlume — https://nodlume.dev/type-scale */

Real modular scale math

Every step is base size × ratio^step, rounded to the half-pixel — the same eight-step scale (xs through 4xl) the Nodlume theme system computes, not an approximation of it.

Classic ratios, one click

The named musical-interval ratios — major second, minor third, perfect fourth, augmented fourth, perfect fifth, golden ratio — plus a free field for any custom font size ratio you want to try.

Tailwind v4 tokens out

The export is a @theme block of --text-* variables in rem — exactly what Tailwind's text utilities read, so your whole typography scale changes in one place.

Make it part of a whole design system

This scale is one knob of the Nodlume theme editor — pair it with curated palettes, font pairings, radius, shadows and spacing in the free theme generator, or design your whole app on a visual canvas and export a real Next.js project with the tokens already wired in.

We'd like to use Google cookies to understand how Nodlume is used and to measure our advertising. Nothing loads until you choose, and declining does not affect anything in the app.