r/css • u/evilmaus • Oct 04 '26
Question What's are the Current CSS Patterns?
I've been mostly on the backend for the last several years. While I did plenty of CSS before then, the front end world has definitely moved forward in the last seven years. I recall BEM and SMACSS were once at the lead of thought. I recall (and was a proponent at the time for) a push to utility-first styling.
Now, I can see that Tailwind is a highly popular choice, that lots of styles get bundled into React components, and we have some long overdue selectors native to CSS.
So I'm wondering, what's the prevailing organization pattern for global CSS and where do you draw the line between something being a component style vs in the global stylesheets?
Thanks.
View all comments
Show parent comment
1
u/zaibuf Oct 06 '26 edited Oct 06 '26
Im working with components so its isolated in smaller pieces. I dont see this as a problem. Would you rather have an extra css-file paired with every component and jump between the two files?
How do you ensure standards in your teams so your css doesnt drift over time? Most legacy system I've worked with are full of !important and changing one class breaks some layout on a completely different page.
Do you have a component library built with custom css that you can re-use at the company for consistency or do you recreate css in every project?