/Apps/

Type Scale Generator

About Type Scale Generator

Fluid typography scales smoothly between a small and a large screen instead of jumping at breakpoints. Pick a base size and a ratio for each end, check the result with the viewport slider, then copy CSS custom properties, utility classes, a Tailwind v3 or v4 config, or JSON tokens. Everything uses rem, so text still respects the reader's browser font size.

FAQ

How does clamp() make font sizes fluid?

clamp(min, preferred, max) picks the preferred value but never goes below the minimum or above the maximum. The preferred value mixes rem and vw, so the size grows in a straight line from the minimum viewport to the maximum viewport and stays fixed outside that range.

How do I use a fluid type scale in Tailwind CSS?

Copy the Tailwind v3 config into theme.extend, or the Tailwind v4 @theme block into your CSS. Classes like text-xl and text-4xl then use the fluid sizes, with matching line height and letter spacing.

What scale ratio should I choose?

Smaller ratios such as 1.125 to 1.2 suit dense interfaces and dashboards. Larger ratios such as 1.25 to 1.333 give marketing pages more dramatic headings. Using a smaller ratio on phones and a larger one on desktop keeps big headings from overflowing small screens.

Is fluid typography accessible?

Yes, as long as sizes use rem and the minimum body size stays at least 16px. Because the output uses rem plus a small vw part, text still scales when people zoom or change their browser font size.

More apps