Build a modular type scale from Major Third, Perfect Fourth, Golden Ratio and more. Export CSS variables, Tailwind fontSize config or SCSS variables instantly.
Modular type scales solve a recurring headache in design systems: choosing font sizes that feel harmonious rather than arbitrary. Instead of picking numbers by feel (13px, 15px, 18px, 24px), a modular scale multiplies a single base size by a fixed ratio at each step. The result is a set of sizes that share a geometric relationship, so small text, body copy, subheadings and display headings all belong to the same family rather than drifting apart.
The generator opens pre-loaded with a Major Third scale: ratio x1.250, 16 px base, five steps above and two below. This produces 10.24 px, 12.80 px, 16.00 px, 20.00 px, 25.00 px, 31.25 px and 39.06 px. That is the scale behind Tailwind's default font-size table and Material Design's body-through-headline stack. Adjusting the ratio chip, the base slider, or the step counts regenerates every row and every output block instantly.
rem for browser-zoom accessibility (recommended), em for component-scoped scaling, px for design files or Figma tokens.fontSize config, SCSS variables, or a Markdown table), then press Copy to paste into your project.Every size is base x ration where n is the step number relative to zero (the base). Step +1 multiplies once; step -1 divides once; step +3 multiplies three times. At Major Third (x1.250), step +5 above 16 px is 16 x 1.250&sup5; = 48.828 px and step -2 is 16 / 1.250² = 10.240 px. The rem values divide the px result by 16. If your root font size differs from 16 px, adjust the base slider before copying the output.
The Custom chip accepts any decimal between 1.001 and 3.0. Values at or below 1.0 are rejected with the message “Ratio must be greater than 1.0”; the Apply button stays disabled until the value is valid. Values above 3.0 trigger a warning: “Ratio above 3.0 produces extreme size jumps”. At that multiplier, step +3 is already 27x the base, making the upper end of the scale unprintable on most screens. Each row in the scale table has its own copy button for patching a single token in an existing design system without regenerating the whole file.
Build a modular type scale and export CSS variables, Tailwind config or SCSS
Scale Ratio
Base Size & Output Unit
Output unit
Scale Steps
:root {
--font-size-base: 0.64rem;
--font-size-lg: 0.8rem;
--font-size-xl: 1rem;
--font-size-2xl: 1.25rem;
--font-size-3xl: 1.563rem;
--font-size-4xl: 1.953rem;
--font-size-5xl: 2.441rem;
--font-size-6xl: 3.052rem;
}Base Step (step 0)