Configure Tailwind with Storybook & Slice machine in Nextjs

Hey @kris thanks again for reaching out!

Indeed because Storybook does not run into the Next.js context adding TailwindCSS to Next.js doesn't make Storybook aware of it, you have to install TailwindCSS on Storybook's end too.

I'm not super familiar with the React ecosystem so I found some links that might help you set up TailwindCSS on Storybook:

Let me know if that helps! Happy to dig more into it~

1 Like