DEV Community

Discussion on: How do you review CSS?

Collapse
 
ben profile image
Ben Halpern

Typically the question for me is... "Does this accurately follow patterns we have established in a healthy way?". Guidelines are great, but it is hard to be absolute about certain things, you sort of need to evaluate whether the current change follows patterns that lead to better overall CSS.

@pp is that okay?

Collapse
 
pp profile image
Paweł Ludwiczak

I think that makes sense.

I'd also add that sometimes devs tend to sneak-in some hacks in CSS more often than in other files :D I usually try to catch these and simplify when reviewing someone's CSS code. It all eventually affects readability but also maintainability of code.