Note 2.0: This post has not aged particularly well due to a lot of changes to a number of the tools and frameworks referenced. I had intentions to ...
For further actions, you may consider blocking this person and/or reporting abuse
Hey Luke, I was wondering which would be a good approach to use TW + Emotion together and this helped me a lot, I'm so interested to know how you use Tailwind with the last realease, I would love to read the article soon. Greetings!
Hi there! Great article. I'm interested in how you adapted it to the newer version, maybe could you share how you did it please?
Hey! Thanks for the comment.
I've actually got a new repo up with both the latest nextjs , tailwind and emotion versions!
github.com/lpbayliss/nextjs-starter
I'd like to revisit this article soon with the updated steps but hopefully this can help scratch that itch!
Cool, I'll check that out. Thanks!
I find this hard to create generic components with this approach. For instance, how do I create a generic button class so that I can pass in a theme prop and it generates the corresponding button for that theme? What's the best approach?
Hi,just seconding a few comments below that I'd love to see an updated version of this idea working in isolation. Really like the thought behind it!
I’ve got a new project up, and about half way through an updated post I’m hoping to publish soon!
Already an update? :)
Thanks for the article. The repo link seems dead? Would love to see your starter.
Hey! Sorry about that. I recently deleted it (as a few of the tools have since been updated and it was now out of date). I forgot I had linked it here, oops.
Hi thanks for sharing your approach! Just one question, why didn't you use the nextjs build-in styled-jsx? Just personal taste or you have found something make emotion a better choice?
I just prefer emotion over styled-jsx. I enjoy the styled component approach better.
Just came here to see if anyone had attempted this and the solution looks neat, like the best of both worlds approach. Would be keen to see the update.