[CSS-CLAMP-CALCULATOR]
LOCALCSS clamp()
[LIMITS]
MIN-VW
MAX-VW
MIN-VAL
MAX-VAL
[CLAMP]
font-size: clamp(1rem, 0.3785rem + 2.6519vw, 2.5rem);text-[clamp(1rem,0.3785rem+2.6519vw,2.5rem)]
[SIMULATOR]768PX → 26.4PX
ANIMKIT
[STEPS]
- 01Enter the smallest and largest size you want.
- 02Enter the viewport widths where it should stop shrinking and stop growing.
- 03Drag the preview width to check the result, then copy the clamp() value.
[FAQ]
How is the clamp() value calculated?
The preferred value is a straight line between your two sizes: a rem offset plus a vw slope. clamp() caps it at your min and max.
Should I use rem or px?
Use rem so the size still respects the user’s browser font-size setting.
Is clamp() supported everywhere?
Yes, every current browser supports clamp().