tiny tailwindcss dark mode toggle
npm install storybook-addon-tw-dm-toggledata-theme="dark" as well as class="dark" to the element.!Example showing the data-theme and class applied to html tag
``sh`
npm i -D storybook-addon-tw-dm-toggle
`js
// .storybook/main.js
module.exports = {
addons: ['storybook-addon-tw-dm-toggle'],
};
``
MIT