News for hackers. Stuff that matters.
Re:Modern CSS Code Snippets: Stop writing CSS like it's 2015 by bobthepanda on Monday February 16, 2026 @01:02AM (#47031389)
Css modules gets away from the larger sins of the massive global css files.

If modules had existed much earlier it probably would’ve gotten rid of most of the awfulness.

Re:Modern CSS Code Snippets: Stop writing CSS like it's 2015 by UqWBcuFx6NV4r on Monday February 16, 2026 @05:13AM (#47033221)
Oh, great. So let’s just 2x all our files then! All for, what exactly?

It sounds like you just want to write Java.

Re:Modern CSS Code Snippets: Stop writing CSS like it's 2015 by bobthepanda on Monday February 16, 2026 @01:14PM (#47038223)
If you have a complaint about your styles being so complicated and in a giant 900 line mega file, I don’t see how you address physical size other than breaking up the file.

Granted, nesting support was also added fairly recently in the grand scheme of things, which boggles the mind given how it was such an obvious problem and solution that CSS preprocessing came about to address it.

Re:Modern CSS Code Snippets: Stop writing CSS like it's 2015 by agos on Monday February 16, 2026 @10:01AM (#47035856)
CSS Modules are way older than Tailwind, but alas it was not enough