hipstersmoothie / storybook-dark-mode

A storybook addon that lets your users toggle between dark and light mode.
MIT License
435 stars 56 forks source link

Fix "color function invalid arg" issue when upgrading between versions of storybook #142

Closed hipstersmoothie closed 3 years ago

hipstersmoothie commented 3 years ago

When setting initial theme extends from default storybook themes to account for new variables that aren't yet stored it localStorage from saved theme. This will be overriden once the plugin actually loads

closes #140

📦 Published PR as canary version: 1.0.5-canary.142.3135.0
:sparkles: Test out this PR locally via: ```sh npm install storybook-dark-mode@1.0.5-canary.142.3135.0 # or yarn add storybook-dark-mode@1.0.5-canary.142.3135.0 ```
hipstersmoothie commented 3 years ago

:rocket: PR was released in v1.0.5 :rocket: