Comment by Fidodo on 06/03/2025 at 18:32 UTC

13 upvotes, 2 direct replies (showing 2)

View submission: What's your approach to CSS?

CSS modules. We use scss, but minimally. With the features of modern CSS I'm curious if we can get away with not even using scss.

Maybe I'm just old, but compared to the CSS of the past, modern CSS is great and I don't feel the need for any framework. Just learn flexbox and grid.

Modules are mandatory for me though. It keeps your styles encapsulated and prevents specificity hell and encourages flat classes.

Replies

Comment by aTomzVins at 06/03/2025 at 19:52 UTC

1 upvotes, 1 direct replies

I agree. I'm also old though.

It simplifies the thought process in naming. But I also like having styles co-located in folders along side components.

Main drawback I've encountered is needing to import global variables/mixins.

Comment by thebezet at 08/03/2025 at 09:32 UTC

1 upvotes, 0 direct replies

I agree. I've been trying to get into Tailwind and such but I honestly don't see the point as I can quickly achieve what I need with plain CSS augmented with some SCSS. But soon there will be no reason left to use SCSS as we will even have nesting, mixins and complex colours functions.