Which unit to use?

  • 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