Method
Set minimum and maximum font sizes, viewport widths and root font size.
Example
16–32 px over 320–1280 px at a 16 px root: clamp(1rem, 0.666667rem + 1.666667vw, 2rem).
Limits
Linear interpolation; rem values assume the entered root size. Test browser zoom and accessibility in your own layout.
How does it work?
Set minimum and maximum font sizes, viewport widths and root font size.
What should I check?
Linear interpolation; rem values assume the entered root size. Test browser zoom and accessibility in your own layout.