Hacker News new | ask | show | jobs
by o_m 1214 days ago
Tailwind (CSS) doesn't need a javascript runtime, the browser can run it natively
2 comments

Tailwind is literally someone else’s PostCSS output.
No, it's your own PostCSS output. At least if you want to only have the definitions you actually use.
OK I mean “someone else wrote the mixins” you mean “you ran the compiler and did tree shaking”.
You can write CSS-in-JS style without a runtime https://vanilla-extract.style/

In my opinion, this gives you all of the supposed benefits of Tailwind without all of the noise and annoying opinions that come with Tailwind

Their Sprinkles API is beautiful for keeping a design system and code in sync, so much that Tailwind users had to copy it with the CVA library.