Show HN: Compiled, buildtime atomic CSS in JavaScript and all your favorite APIs
1–10 of 51 posts
Re: Show HN: Compiled, buildtime atomic CSS in JavaScript and all your favorite APIs
#2I hate to be a grumpy puss but using this sounds like a step backwards.
Re: Show HN: Compiled, buildtime atomic CSS in JavaScript and all your favorite APIs
#3Re: Show HN: Compiled, buildtime atomic CSS in JavaScript and all your favorite APIs
#4Re: Show HN: Compiled, buildtime atomic CSS in JavaScript and all your favorite APIs
#5Re: Show HN: Compiled, buildtime atomic CSS in JavaScript and all your favorite APIs
#6Re: Show HN: Compiled, buildtime atomic CSS in JavaScript and all your favorite APIs
#7For those interested in build-time CSS in JS, also called Zero-runtime CSS in JS, you might also want to check out:
- Linaria (https://github.com/callstack/linaria) I use on my personal site. I ran into trouble/bugs trying to integrate it with Notion’s build process; the Webpack/babel bits are very brittle.
- Treat requires that you write the JS that computes your styles in esperare xxx.treat.js files which is annoying from my point of view - I want single file components. (https://seek-oss.github.io/treat/)
- No idea about this one, but it’s more recent. Has some other interesting things in the inspiration section of the README https://github.com/CraigCav/css-zero
Re: Show HN: Compiled, buildtime atomic CSS in JavaScript and all your favorite APIs
#8Doesn't @emotion's babel plugin already do this, or am I missing something?
It is closer to https://www.styletron.org/ in that regard.