News for hackers. Stuff that matters.
Re:Real-world CSS vs. CSS-in-JS performance comparison by acdha on Tuesday June 08, 2021 @08:38PM (#27442893)
You can specify alternative style sheets and even get some standard browser UI:

https://developer.mozilla.org/en-US/docs/Web/CSS/Alternative...

I’ve implemented that two ways: having JavaScript pop the alternative attribute off for all but the desired style sheet or simply using a top-level class to modify the relatively few things we were customizing. Back in the day, I used SCSS but CSS Variables have matured to the point where you can do an awful lot that way, too.

There are no comments on this comment yet.