Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tailwindcss]: #698

Open
PabloGracia opened this issue May 18, 2024 · 0 comments
Open

[tailwindcss]: #698

PabloGracia opened this issue May 18, 2024 · 0 comments

Comments

@PabloGracia
Copy link

Details

Recipe Page: tailwindcss
Recipe Template: tailwindcss
Browser: Arc Browser - Version 1.42.0

What is wrong

The instructions state to import the tailwind.css file into your .storybook/preview.js file. The example it gives is this one:

image

However, the src directory or the tailwind.css files are not present when using NextJS 14 with TailwindCSS (as bundled out of the box when using NextJS' create-next-app). This basically renders all the components I import into stories to not have any styling. With the current instructions, it's just not possible to leverage Storybook in a project set up with NextJS & TailwindCSS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant