Tailwind CSS styles not applying to external components in Storybook #30092
Unanswered
acv-dancom
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
I’m using Storybook to display components in my project, styled with Tailwind CSS. The issue arises when I import a component from an external project:
Tailwind CSS classes appear in the component’s HTML when inspecting the element (e.g., bg-blue-500), but the styles are not applied.
However, when I define the same component locally within the Storybook project, the styles are applied correctly.
Additional information
No response
Create a reproduction
No response
Beta Was this translation helpful? Give feedback.
All reactions