DEV Community

Discussion on: What should production CSS look like? Share your layout-to-web workflow

Collapse
 
jenc profile image
Jen Chan

Truth be told I recently used initializr when I had to do something super quick for a friend and it was PERFECT. I am not sure why people knock on frameworks.

Oh yes, good point about the auto-prefixers. Going to update that part in the bullet points.

Until today I always thought the best thing about CSS was showing how crazy specific by naming as many direct parent and children and classes as possible. Turns out this is not true! (womp womp)

I only became aware of scoped styles through Vue, though I have yet to build something to such a scale with so many views and templates where it becomes vastly important and convenient. One day.

Just to confirm about ids--so if I wanted to style a "unique" element, I create a different class?

And just to clarify, when you said "create reusable components" instead of classes, you meant that I should decide on what is Block, Element and Modifier (or the look of something in different states) instead of just arbitrarily creating classes for different visual elements right?

Collapse
 
phoinixi profile image
Francesco Esposito

About ids yes, I would just create a different class.

Create reusable components instead of reusable classes I mean that it’s more clean and elegant, in my opinion, to reuse a component or custom element that encapsulates its own style instead of using the same class on 2 different elements, that I guess it’s the same of scoped CSS in Vuejs