Replies: 3 comments 2 replies
-
Thanks for your question and you are raising some good thoughts there. For me the inspiration to create beamwind was oceanwind and from that collaboration came twind. I didn't know twind.macro then. We will add an "other solutions" section that will include twind.macro, windicss, and others (?), to the readme and the upcoming new docs site. A new tagline is already in the works as well. I think the meaning of "tailwind-in-js" is a little ambiguous. I do not see twin.macro as a tailwind-in-js library. twin.macro uses a build step (babel) to generate/modify code that is then compatible with a CSS-in-JS library like emotion, styled-components, or goober. In that sense, it is more like tailwindcss which uses postcss + purge (purge = tailwind-in-js) in its build step. Twind can work completely within the browser or during rendering without a build step – although you can now use @twind/cli. We have benchmarks in place comparing Twind to the mentioned CSS-in-JS libraries and are planning to expand those – #40 (reply in thread). Our build step library @twind/macro should add a section discussing the differences to twin.macro and acknowledge its inspiration. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
The benchmarks seem to have been deleted? |
Beta Was this translation helpful? Give feedback.
-
I was very suprised not to see twin.macro mentioned in the "Insipration" section of your README.
Twin.macro is the most popular "tailwind-in-js" lib out there, with over 3600 stars, and it's been around for over 2 years. So it's strange that the twind tagline is "The smallest, fastest, most feature complete tailwind-in-js solution in existence" when it doesn't compare itself to -- or even acknowledge the existence of -- the original solution in this space.
Please don't get me wrong; there's room for any number of implementations! Combining tailwind + CIJ is a good idea. Twind might even be superior to twin.macro. But your project will have more credibility if it acknowledges this glaring omission (or changes its tagline).
Thanks in advance for any direct comparisons here you can draw -- and for taking this question + comment in the intended "constructive criticism" spirit. :)
Beta Was this translation helpful? Give feedback.
All reactions