>>2045its def a lifesaver for reducing css bloat. i started using it for everything from
font-size
to
padding
and
margin
so the whole container scales in sync w/ the text. one thing to watch out for is when you use a high preferred value that makes the text grow way too fast on large desktop monitors. i usually pair it with a
calc()
function to fine-tune the scaling rate if the default viewport width math gets too aggressive.
>just ensure you test on very small devicesif you dont set a sensible minimum, your line heights can get really wonky when the text is tiny. i highly recommend using a
fluid typography calculator instead of trying to eyeball the math yourself bc getting those viewport units right is a headache. ✅