navneetsharmaui / sveltekit-starter

Sveltekit starter project created with sveltekit, typescript, tailwindcss, postcss, husky, and storybook. The project has the structure set up for the scaleable web application.
https://sveltekit-starter-one.vercel.app
MIT License
609 stars 100 forks source link

Storybook and Tailwind #17

Closed magick93 closed 3 years ago

magick93 commented 3 years ago

Hello

I'm unable to get the Tailwind css to display when viewing in Storybook.

Do you have any suggestions for what might be the problem?

obasekietinosa commented 3 years ago

@magick93 Hello! Did you resolve this? I've run into the same issue with Tailwind styles not being applied on Storybook.

magick93 commented 3 years ago

I did get it working but I'm not sure how I managed to do it.

Try npx sb upgrade

magick93 commented 3 years ago

Actually I didnt get it fully solved.

storybook is displaying some tailwind css, eg, some bg colors but not others.

But when I run yarn run dev styles are applied as expected

navneetsharmaui commented 3 years ago

@magick93 If you have used the starter project that I've created you would not face the tailwindcss issue in the storybook. I've tested and created components with storybook and tailwind in the starter project.