A modular typography scale enforces visual consistency across every heading and body element without you having to guess sizes. Use it when starting a new design system, refactoring inconsistent type, or scaling a component library. If you only need 2-3 sizes on a landing page, picking them manually is fine — a scale pays off once you have six or more text roles. Alternative: type-scale.com covers the same workflow but lacks the Tailwind-ready export.
:root {
--font-size-xs: 0.750rem;
--font-size-sm: 0.889rem;
--font-size-base: 1rem;
--font-size-lg: 1.125rem;
--font-size-xl: 1.266rem;
--font-size-2xl: 1.424rem;
--font-size-3xl: 1.602rem;
}Major third scale (1.250), 16px base. Drop-in replacement for the default Tailwind `text-*` utilities.
Last updated: 2026-04-22