Re:Modern CSS Code Snippets: Stop writing CSS like it's 2015
by halfcat on Sunday February 15, 2026 @09:40PM
(#47030290)
Cognitive load of looking at 12 open files trying to understand what’s happening. Well, in fairness some of those 12 are the same file because we have one part for the default CSS and then one for the media query that’s 900 lines further down the file.
[ Parent
| on HN ]
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.