-
Notifications
You must be signed in to change notification settings - Fork 28
Add storybook-addon-themes #2016
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
Add storybook-addon-themes #2016
Conversation
|
Code Climate has analyzed commit 0460ce7 and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 100.0% (85% is the threshold). This pull request will bring the total coverage in the repository to 96.7% (0.1% change). View more on Code Climate. |
0460ce7 to
15cdc03
Compare
mattseddon
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be good to add some more of the default themes + One Dark Pro before merging.
|
Added some more default themes, here's the current list
Video updated with new themes |
storybook-theme-demo.mp4
This PR adds color themes to Storybook, allowing the developer to preview the Light and Dive Bar themes in Storybook on top of the normal dark theme.
These themes are just scraped from VSCode's dev tools by grabbing every rule that sets CSS variables and tossing it into a conditional classname that the plugin adds UI for toggling.