Use TailwindCSS And Shadcn With Storybook
This guide shows the one line which needs to be added to make sure that your storybook components are styled properly.
Flo
If you have a fully fledged React project using TailwindCSS and Shadcn and want to integrate Storybook for isolated component creation, make sure that you add this import to your .storybook/preview.tsfile:
import "../src/index.css“
This tells Storybook the path to your TailwindCSS files to add proper styling to your components in Storybook.