storybook-tailwind-dark-mode

    1.0.11 • Public • Published

    storybook-tailwind-dark-mode

    Example

    Installation

    Install the following npm module:

    npm i --save-dev storybook-tailwind-dark-mode

    or with yarn:

    yarn add -D storybook-tailwind-dark-mode

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

    module.exports = {
      addons: ['storybook-tailwind-dark-mode']
    };

    Set Dark Mode as default

    To set dark mode as default, Add the following lines of code to your preview.js file

    export const globalTypes = {
      darkMode: true,
    };
    

    Install

    npm i storybook-tailwind-dark-mode

    DownloadsWeekly Downloads

    1,791

    Version

    1.0.11

    License

    MIT

    Unpacked Size

    16.6 kB

    Total Files

    13

    Last publish

    Collaborators

    • renatomoor