← Back to the lab

Type Scale Generator

Generate a modular type scale from a base size and ratio, preview it live, and export fluid clamp() CSS or design tokens for your design system.

What it does

  • Classic ratios from minor second to the golden ratio
  • Fluid mode: different base and ratio for mobile and desktop, output as CSS clamp()
  • Live preview with your sample text, font and viewport width
  • Export as CSS custom properties or W3C design tokens

FAQ

What is a modular type scale?

A set of font sizes where each step is the previous one multiplied by a fixed ratio, such as 1.25. It gives headings and body text a consistent, predictable hierarchy.

What is fluid typography?

Font sizes that grow smoothly with the viewport between a minimum and maximum, written with CSS clamp(), instead of jumping at breakpoints.

More free tools