How to use it
- Enter the minimum and maximum size in px or rem.
- Enter the preferred viewport-based value in vw.
- Preview and copy the clamp expression into a font-size, gap or spacing property.
Search by tool name or category.
No tools found.
Create a min, viewport-based preferred and max CSS clamp() expression.
Responsive preview text
Create a bounded fluid CSS value that grows with viewport width but never falls below the minimum or exceeds the maximum.
CSS clamp(minimum, preferred, maximum) selects the preferred value while keeping it inside the stated bounds.
clamp(1rem, 2.5vw, 2rem) can scale text between 1rem and 2rem as the viewport changes.
A single vw expression may not match every design system. Check your final design in your own browser.