DEV Community

Discussion on: How do you review CSS?

Collapse
 
robie577 profile image
Robin Philip Thomas

For us, first round of reivew is done by stylelint. What I usually check for in the next round are: are they

  • reusing existing styles and design tokens,
  • semantics of the html
  • css specificity probmems (seeing !importatnt is an easy sign of bad css)
  • improper usage of %, vh,vw, rem or em
  • adding unwanted css properties (usually when copying from stackoverflow without knowing what it does)