Closed jpzwarte closed 4 years ago
This is my first attempt, haven't even tried to run it :)
How do you test it? yarn build
and then link it to a repo that uses storybook?
# in dark mode addon
yarn build
yarn link
# in root of your storybook project
yarn link storybook-dark-mode
And that should work
Or if you rebase and fix the build a canary "test" version will be published for the PR
:rocket: PR was released in v0.5.0
:rocket:
Ah it slipped my mind what part of the UI you were adding this class to. I see now that it is the preview iframe. I actually will be making this an optional feature. Before this PR there has been a distinct separation between the storybook UIs dark mode and that of your components. The hooks were opt in way to style you components based on the dark mode of the UI. With this change that is no longer true and the plugin will try to render dark mode for the components.
My incoming PR will:
See #101.