DEV Community

Discussion on: How to measure/determine the quality of the CSS code?

Collapse
 
sargalias profile image
Spyros Argalias

As some of the previous answers mention:

  • Low specificity selectors
  • Component-based styles

Basically use BEM (lowest possible specificity selectors and component-based styling) or something like Tailwind CSS (reusable classes without overriding styles everywhere).