7.0.19 • Published 12 months ago
storybook-addon-tw-dm-toggle v7.0.19
Storybook Addon: Tailwindcss Dark Mode Toggle
Tiny tailwindcss dark mode toggle. It will add data-theme="dark"
as well as class="dark"
to the <html />
element.
Installation
npm i -D storybook-addon-tw-dm-toggle
Usage
// .storybook/main.js
module.exports = {
addons: ['storybook-addon-tw-dm-toggle'],
};
License
MIT