Fluid Type Scale Calculator

Generate CSS clamp() font size variables for a fluid type scale from min and max viewport sizes, free online.

CSStypographydeveloper toolsgeneratordesign tools
Platforms
Web
Pricing Free

Fluid Type Scale Calculator generates CSS variables for fluid typography. Set a minimum and a maximum screen width, and every font size in your scale grows smoothly between them instead of jumping at breakpoints.

For each end you enter a base font size, a screen width and a type scale ratio. Sizes are the base size times a power of the ratio. You then name the steps (the defaults run from sm, base, md, lg, xl to xxl and xxxl), choose the base step, a variable prefix and how many decimals to round to. Options include using container inline size (cqi) instead of viewport width, adding fallback CSS for browsers without clamp(), and using rems with a custom rem value. The output is a block of --fs custom properties with clamp() values that updates as you change inputs, ready to copy into a design system.

It is free and needs no account. The interface is in English.