Fluid Type Scale Generator
Compute a real fluid CSS clamp() value from a min and max size across two viewport widths, with the slope and intersection shown step by step and a live resize preview.
Result
This page opens the calculator directly in type-scale mode with a 16px base and a 1.25 (major third) ratio already selected — a solid, widely used starting point for a typographic scale. From those two numbers alone, six sizes are generated: small, base, h4, h3, h2 and h1, each one its own fluid clamp() value rather than a single fixed size.
Every step keeps the base size anchored at the same value on both the mobile and desktop end, while the headings scale up more aggressively on the wider desktop viewport than on the narrow mobile one — the same idea as choosing a gentler ratio for small screens and a bolder one for large screens, derived automatically from the single ratio you pick.
Changing the ratio to 1.125, 1.2, 1.333 or 1.5 regenerates the whole table instantly, and the button underneath copies all six clamp() values as a ready-to-paste block of CSS custom properties for the rest of the stylesheet to reference.