-
-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
Use Tailwindcss and css modules with Storybook #10412
Comments
please check this gatsby-js tailwind starter: https://github.com/rbutera/greater-gatsby please remember to star if you find this useful! |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
I too would like support on this! |
@Hannah-goodridge have you seen the tutorial I wrote on this topic (https://medium.com/@rbutera/jamstack-tutorial-part-1-gatsbyjs-with-storybook-tailwindcss-and-typescript-setup-bd28855db897) and the repo I shared above? I think it will help you solve your problem. Feedback would be appreciated on how I could improve it or why it doesn’t help you 😀 |
I've raised an issue in your repo about the missing webpack config, which was what I needed to check my own configuration. |
UPDATE: For anyone reading, I would recommend taking a look at @rbuteras repo, it helped solve a few issues I was having by pushing a fix. The main issue I was having was that in my package.json scripts I was passing:
and once I remove the |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
Hey there, it's me again! I am going close this issue to help our maintainers focus on the current development roadmap instead. If the issue mentioned is still a concern, please open a new ticket and mention this old one. Cheers and thanks for using Storybook! |
Describe the bug
I have a Gatsby project that uses Tailwindcss and css modules. I would like to somehow configure Storybook to use both. So far I've been able to use one or the other but not both.
Code snippets
Here's my
webpack.config.js
file for working css module:Here's my
webpack.config.js
file for working Tailwindcss:System:
System:
OS: macOS Mojave 10.14.6
CPU: (8) x64 Intel(R) Core(TM) i7-7920HQ CPU @ 3.10GHz
Binaries:
Node: 10.15.3 - /usr/local/bin/node
npm: 6.14.2 - /usr/local/bin/npm
Browsers:
Firefox: 67.0.4
Safari: 13.1
npmPackages:
@storybook/addon-actions: ^5.3.18 => 5.3.18
@storybook/addon-backgrounds: ^5.3.18 => 5.3.18
@storybook/addon-knobs: ^5.3.18 => 5.3.18
@storybook/addon-links: ^5.3.18 => 5.3.18
@storybook/addons: ^5.3.18 => 5.3.18
@storybook/react: ^5.3.18 => 5.3.18
npmGlobalPackages:
@storybook/cli: 5.3.18
The text was updated successfully, but these errors were encountered: