Theme Switching for Storybook Dark Mode and Tailwind
[Update 2023-06-15] Updated to show how this can all be done with the @storybook/addon-styling plugin, and withThemeByClassName
as opposed to withThemeByDataAttribute
.
Here's a short PSA on how to quickly add a dark mode theme switcher to Storybook - without the use of a plugin.
Category