Boss-CSS is a polymorphic "CSS-in-JS" library supporting multiple different ways of applying CSS to your codebase, with or without runtime.

It's my own work, that I stopped working on a few years ago in the finish-line, and few weeks ago I decided to finish it using AI.

The article gives some history, some introduction to the lib, and highlights some of it's features.

I do not intend to actively maintain it, unless there's interest, but I just wanted to put it out there, because it was bothering for so long that so much work I've put in it could go to waste.

I hope it can show something new.

DISCLAIMER: Articles is polished using AI without sentence changes, only inlcudes grammar fixes and custom changes based on its suggestions.


• aziis98 22 minutes ago

I also did some experiments in this space as I have the same complaints about Tailwind

https://github.com/aziis98/preact-css-extract

I made this as I couldn't stand writing another 2K lines css file and wanted to try the atomic css wagon without having to switch from preact or having to learn tailwind

• sibeliuss an hour ago

Happy to see a new CSS-in-JS lib. All of this madness about runtime performance costs does not apply to 99.9% of the population. But good abstractions do. And then there's latency, and machines are getting faster, and browsers getting better, etc etc. This whole argument and the related FUD was all a non-issue to begin with, at the great cost to DX.

• fabrice_d 28 minutes ago

I encourage you to read the short paragraph at https://www.w3.org/TR/html-design-principles/#priority-of-co...