tailwindcss + next.js + emotion.js setup #1474
Replies: 2 comments 1 reply
-
https://codesandbox.io/s/youthful-gauss-cjfsf Does this help? |
Beta Was this translation helpful? Give feedback.
-
Hi Dylan, Thanks for the quick reply! This works well. What extra things did you do, after following the next.js example in tailwindcss/setup-examples? I have one more question, how do use tailwind to create components as well? In the codesandbox you shared above, a component is created using CSS -
How can I use tailwind to create a component? Something like the following -
Next.js' Github repo has an example where we use the As an aside, I think tailwind.macro is not actively maintained anymore. twin.macro is a fork which supports tailwind v1.2. Check it out. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
First off, I love the tailwind library!
I love the tailwindcss + nextjs setup given in tailwindcss/setup-examples.
I was wondering if that example can be extended to use emotion.js too (with explanations)?
Let me know your thoughts! :)
Beta Was this translation helpful? Give feedback.
All reactions