In Storybook 8.3, a new API has been released called globals
. It's a way to define global variables (such as the background color, color theme, user locale, etc.). There is a feature flag to enable it for backgrounds. We should enable it, as it fixes a bug where if you change the background color once and then reset, the stories that were purposefully built for the "dark" background will switch back to white. With globals API, they stay with dark background as expected.