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

Apply dark mode changes to specified preview element only #163

Closed franktopel closed 1 year ago

franktopel commented 2 years ago

Thank you for this addon.

Honestly I have no use for the storybook manager itself to be switchable; the only reason I want dark mode is to test my components in dark mode. For this purpose, all I want and need is being able to switch CSS class theme-dark on and off on the preview iframe's html element, using a control in the manager. I am using storybook-html.

Is this currently configurable, and if so, how?

hipstersmoothie commented 1 year ago

The stylePreview option does this!