CSS Modules
Fewer than 5 people recommend it so far, so there's no written verdict. Here is what commenters said.
4recommend
2warn against
Dec 4, 2025first mention
Sep 27, 2026latest mention
Why people recommend it
“when i say css modules i mean something more akin to”
Show 2 more
“CSS Modules are a simpler solution to cascading problems.”
“I prefer vanilla CSS to frameworks but I find a lot of value in CSS modules.”
Caveats and dissent
“Requires setting up, requires learning an additional library.”
Often compared with
Who recommends it in their own words
Threads where it came up
- Moving away from Tailwind, and learning to structure my CSS 3 mentions
- AI is a business model stress test 2 mentions
- Improving site performance by shipping more CSS 1 mention
- The tyranny of single page apps 1 mention
- Ask HN: Freelancer? Seeking freelancer? (January 2026) 1 mention
- Vanilla CSS is all you need 1 mention
Data: css-modules.json. Quotes are verbatim; the verdict and theme labels are written by a model from these comments, and every clause links to its sources.
All comments 9
You could also drop the hash part and gain most of that improvement. Or module and hash and do better on compression (because the hash is high-entropy). Rudimentary experiment on https://github.githubassets.com/assets/te.1288ac5c9584fbf2.module.css on replacing /(?<module>[A-Za-z0-9_-]+)__(?<local>[A-Za-z0-9_-]+)__(?<hash>[A-Za-z0-9_]{5})\b/: ${module}__${local}__${hash} (original): 72967 raw, 10993 br. ${module}__${
“there is a .modules.css file extension that build steps will recognize and automatically namespace”
“It's very easy to use”
“when i say css modules i mean something more akin to”
“CSS Modules are a simpler solution to cascading problems.”
“Other: LLM Orchestration, Selenium/Puppeteer, PWA (Local-First), CSS-Modules”
Well no, none of them ? This is what OP was talking about: https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Nesting/Using
“Requires setting up, requires learning an additional library.”
“I prefer vanilla CSS to frameworks but I find a lot of value in CSS modules.”