Skip to content
Discussion options

You must be logged in to vote

Hi @yanickrochon! I'm Dosu and I’m helping the storybook team.

Storybook 9 manages backgrounds and themes as separate globals: the backgrounds switcher updates globals.backgrounds.value, while the official addon-themes plugin relies on a theme global key. This means switching backgrounds does not affect the story's theme or appearance when using addon-themes, since the plugin does not reference the backgrounds global or integrate with the new backgrounds system (source, source).

Currently, there is no built-in way to synchronize backgrounds and themes. If you want background switching to also update the theme, you’ll need to implement a custom decorator that listens for changes to global…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by yanickrochon
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant