Skip to main content
>_devtools

CSS clamp() Generator for Fluid Type

Build a clamp() expression that scales a font size or spacing smoothly between two viewport widths, with a live preview slider.

What it does

Set minimum and maximum sizes and viewport widths to generate a fluid CSS clamp() expression. Move the preview width to inspect the interpolated value.

Example

16px at 320px to 24px at 1280px -> clamp(1rem, fluid value, 1.5rem)

Limits and behavior

  • Minimum values must not exceed maximum values, and viewport bounds must be ordered.
  • The generated expression uses rem and vw units.