Answer: If you're using emotion js and keen on using Tailwind then have a look at twin.macro
Last active
April 29, 2021 12:53
-
-
Save ben-rogerson/a60015566586ac75f8328bedfbf69df8 to your computer and use it in GitHub Desktop.
Using Emotion Styled Components with Tailwind
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Nice! FWIW, this gist was the second result when I googled, "emotion css tailwind", hoping to find a solution like twin.macro. For some reason, the twin.macro
repo doesn't come up.
I wonder if it'd help to add "emotion" and "styled-components" into the product headline, like:
🦹♂️ Twin blends the magic of Tailwind with the flexibility of css-in-js (emotion or styled-components) at build time.
That's interesting - I'll update the title with those keywords and see how it goes, thanks for the feedback.
You bet! Thanks for building twin, it looks really fantastic and I can't wait to use it. Combined with emotion, it really looks like a pretty ideal styling solution.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You got it :) I've replaced it with some updated info now.