docs/essentials/themes.mdx
Storybook's Themes addon allows you to switch between multiple themes for your components inside of the preview in Storybook.
To make your themes accessible to your stories, @storybook/addon-themes exposes three decorators for different methods of theming.
For libraries that expose themes to components through providers, such as Material UI, Styled-components, and Emotion, use the withThemeFromJSXProvider.
For libraries that rely on CSS classes on a parent element to determine the theme, you can use the withThemeByClassName decorator.
For libraries that rely on data attributes on a parent element to determine the theme, you can use the withThemeByDataAttribute decorator.