TailwindCSS 2 + Storybook 6 with PostCSS 8 #3773
dfee
started this conversation in
Show and tell
Replies: 2 comments 1 reply
-
Some of the tooling within Storybook relies on PostCSS v7, and Tailwind 2.0 needs PostCSS v8 to work. Because this is currently a recurring problem (a lot of tooling in the front end ecosystem still relies on PostCSS 8), we've created a compat version of Tailwind CSS that will work with PostCSS 8: |
Beta Was this translation helpful? Give feedback.
1 reply
-
I was struggling with this big time, thank you! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This was sort of painful, so to make this experience easier for others, I've added a gist that shows everyone how it's done:
As stated in the title:
I'm using this with NextJS, and while that's not strictly relevant, I hope that keyword improves others' search results. 😄
Here are the files: https://gist.github.com/dfee/d2d3b4a70f80e5050cf452abfca39f87
Beta Was this translation helpful? Give feedback.
All reactions