Which unit to use?
For typography, use
rem
For box model properties (
margin
/padding
/border
), usepx
For
width
/height
, use%
orpx
For
color
, usehsl
Last updated
For typography, use rem
For box model properties (margin
/padding
/border
), use px
For width
/height
, use %
or px
For color
, use hsl
Last updated