Remix.run Logo
▲ afavour 7 hours ago

I’m part of the seeming minority that really enjoys working with CSS. And the way I use it today is so different than I did a few years back, e.g CSS modules, declaring a palette with variables then changing it for dark mode… it’s genuinely great to work with.

▲paczki 7 hours ago | parent | next [-]

Working with modern CSS is such a joy, and increasingly as time goes on I'm replacing huge chunks of JS with CSS which is a little boon in itself. Honestly, my only complaint is how long I have to actually wait to use new features.

Nesting and @layers make maintaining CSS drastically easier than it once was as well.

▲zelphirkalt 4 hours ago | parent [-]

I agree. And I don't even use layers yet. I keep specificity roughly in mind and narrow my selectors using nesting properly to only affect what I want the rules to style. Do I make mistakes? Sure, but they are easy to fix. Make selectors specific enough and think about whether the rule you are writing is something general or just something for this one component on the page, and it is eeeeasy to not make a mess these days.

▲nine_k 6 hours ago | parent | prev | next [-]

Also, grids and flexbox solve so many previously tricky layout problems. Animations obviate a bunch of small JS.

I sometimes wish that CSS were reduced to the "good parts" and made simpler through it, but I realize that it's infeasible.

▲jamesfinlayson 6 hours ago | parent [-]

Yeah with flexbox and fit-content/max-content is pretty fine now.

▲spragl 2 hours ago | parent | prev | next [-]

I warmed up to CSS this year. Before that it was this cryptic thing with seemingly infinite change-try cycles. What happened was that I discovered some of the new features, and was able to greatly simplify and beautify my CSS. I might end up liking it.

It has this maddening amount of features though, and as it needs to be backwards compatible, this amount can only grow going forward. But if you look at a well chosen subset of the whole thing, it actually is a quite nice language.

▲tvbusy 5 hours ago | parent | prev | next [-]

I love working with CSS as well. It feels like the most optimized approach to me. However, it's really hard to use CSS as much once the project involves other engineers who don't have that level of interest in CSS.

▲techpression 7 hours ago | parent | prev [-]

light-dark() is even better for that :) I also enjoy CSS, using @scope and @layer a lot with the :has() selector, it’s just so different now and I think most people are unaware.