You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After initializing an empty Phoenix project, I added phoenix_storybook so that I can showcase the components in our app.
I ran phx.gen.storybook and followed the exact instructions given, and when simply opening the default homepage of the Phoenix app, I see that all of the CSS is broken on the page...
The root cause seems to be the instruction in phx.gen.storybook telling me to add important: ".demo-web", to my module.exports in my tailwind.config.js file. Removing that configuration fixes the CSS issues on the page, and doesn't seem to affect my storybook components at all.
After initializing an empty Phoenix project, I added phoenix_storybook so that I can showcase the components in our app.
I ran
phx.gen.storybook
and followed the exact instructions given, and when simply opening the default homepage of the Phoenix app, I see that all of the CSS is broken on the page...The root cause seems to be the instruction in
phx.gen.storybook
telling me to addimportant: ".demo-web",
to mymodule.exports
in mytailwind.config.js
file. Removing that configuration fixes the CSS issues on the page, and doesn't seem to affect my storybook components at all.I've created a recreation of the exact steps I took here: https://github.com/probably-not/storybook-css-break-issue
The text was updated successfully, but these errors were encountered: