#How to make Tailwind, Storybook and Next.js V13 to work together

6 messages · Page 1 of 1 (latest)

mossy wedge
#

I installed storybook with: npx storybook@next init

#

Not sure If I need any additional dependencies in this case to make it work?

#

I believe the issue is here "[css] Specified input file ./src/tailwind.css does not exist."

#

From this command:

   "watch:css": "npx tailwindcss -i ./src/tailwind.css -o ./public/tailwind.css --watch",
#

Solved it

#

I had to give the path to my css file which was ./public/styles/styles.css and also add:

staticDirs: ['../public'],

to main.js