storybook-addon-tailwindcss-dark-mode
    TypeScript icon, indicating that this package has built-in type declarations

    0.0.9 • Public • Published

    Storybook Addon Tailwind CSS Dark Mode

    Addon for storybook which toggle dark mode using tailwind css. This helps and simplifies development of dark mode.

    Getting Started

    1. Toggling dark mode manually

    2. yarn or npm install

    npm i --save-dev storybook-addon-tailwindcss-dark-mode

    or with yarn:

    yarn add -D storybook-addon-tailwindcss-dark-mode

    3. Then, add following content to .storybook/main.js

    module.exports = {
      addons: ["storybook-addon-tailwindcss-dark-mode"],
    };

    4. Start Storybook

    Kapture 2022-06-30 at 14 03 56

    Install

    npm i storybook-addon-tailwindcss-dark-mode

    DownloadsWeekly Downloads

    23

    Version

    0.0.9

    License

    MIT

    Unpacked Size

    36.1 kB

    Total Files

    40

    Last publish

    Collaborators

    • bobeenlee