Hacker News new | ask | show | jobs
by tobr 2029 days ago
So. The readme doesn’t mention React. As far as I can tell it’s not because it’s compatible with everything. Looks more like it’s the “Fish don’t know they’re in water” phenomenon. The author just assumes that the reader will assume that everything is for React only. (I might be wrong! The readme really doesn’t make it clear either way)

One of the nice things about Tailwind is that it’s completely portable, because it’s ”just” CSS. You can use the exact same design system regardless of how your markup ends up on the screen, as long as you can set a class attribute.

1 comments

As best I can tell, it’s not React-specific. Check the How It Works [1] section. You can use this anywhere you use styled-components or emotion.

[1] https://github.com/ben-rogerson/twin.macro#how-it-works