DEV Community

Discussion on: Utility-first CSS - You have to try it first!

Collapse
 
michi profile image
Michael Z

You can still create vue/react/... components for each thing you want to represent. That way, modifiers (size, color etc.) simply become props.

Collapse
 
danderson profile image
Dale Anderson

Yeh, true, components do give you another way of encapsulating styling - the whole "CSS in JS" thing. There isn't a right or a wrong way, or even better or worse, just pros and cons. I'm one of these strange people who actually kinda likes CSS despite its quirks and thinks it's fit for purpose, so I'll always advocate using it semantically, but each to their own! Good food for thought anyway.