News for hackers. Stuff that matters.
Re:The tyranny of single page apps by paulddraper on Monday May 18, 2026 @05:02PM (#48185582)
> And of course if you're using React, obviously you want to use Tailwind CSS, right? Ok, you can certainly choose to use SASS or LESS if you seriously want to, but CSS post processors are all the rage these days.

Or CSS Modules [1].

It's supported OOTB by virtually every CSS bundler:

* Webpack (css-loader)

* Rollup (rollup-plugin-postcss)

* Vite

* Parcel

* Rspack

* esbuild

* Turbopack

It's just vanilla CSS -- classes, pseudo-classes, media queries, etc -- with only two tweaks:

1. local scoping (and exporting scoped names to JS)

2. class inheritance

It's very easy to use, and stays very close to vanilla CSS.

[1] https://github.com/css-modules/css-modules

Re:The tyranny of single page apps by throwaway2016a on Tuesday May 19, 2026 @03:51PM (#48198532)
You can also use SCSS with CSS modules, which is what I do.