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
{{ message }}
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.
The issue
After running npm run build-storybook, and serving the folder locally start-storybook -s storybook-static, tailwind's dark mode is not getting applied in the .storybook folder. Works fine for the components inside the src/ folder though
** The code structure
I have a Layout.js file where all my page styles are applied including dark mode. This is passed inside preview.js as a prop to addDecorator.
Layout.js also imports a styles.css file, applying styles here seems to be working. However, inline classNames in Layout.js doesn't seem to be working.
Working fine in dev
The issue
After running
npm run build-storybook
, and serving the folder locallystart-storybook -s storybook-static
, tailwind's dark mode is not getting applied in the .storybook folder. Works fine for the components inside the src/ folder though** The code structure
I have a Layout.js file where all my page styles are applied including dark mode. This is passed inside preview.js as a prop to addDecorator.
Layout.js also imports a
styles.css
file, applying styles here seems to be working. However, inline classNames in Layout.js doesn't seem to be working.Content of Layout.js
The text was updated successfully, but these errors were encountered: