Addon Themes
@storybook/addon-themes
Storybook Themes addon: Switch between themes from the toolbar
Component Libraries
css
essentials
storybook
storybook-addon
style
themes
toggle
component
components
react
Stars
1
Weekly
0
Open issues
0
Bundle
~60 kB
Installation
npm install @storybook/addon-themesCode example
import { Button } from "@storybook/addon-themes";
export function Example() {
return (
<div className="flex gap-2">
<Button>Primary</Button>
<Button variant="outline">Secondary</Button>
</div>
);
}Pros & cons
Pros
- Actively maintained by Shaun Evening
- 0 weekly downloads. Battle tested
- MIT licensed
Considerations
- Adds roughly ~60 kB to your bundle
- Needs client-only rendering in SSR frameworks
- Not supported in React Native
- 0 open issues on GitHub