storybook-addon-tailwind-dark

0.0.7 • Public • Published

CAUTION: WIP

Storybook Addon Tailwind Dark

An add-on to toggle tailwind mode (selector) for storybook v8

Installation

First, install the package.

npm install --save-dev storybook-addon-tailwind-dark

Then, register it as an addon in .storybook/main.js.

// .storybook/main.ts

// Replace your-framework with the framework you are using (e.g., react-webpack5, vue3-vite)
import type { StorybookConfig } from '@storybook/react';

const config: StorybookConfig = {
  // ...rest of config
  addons: [
    '@storybook/addon-essentials',
    'tailwind-dark-mode', // 👈 register the addon here
  ],
};

export default config;

Package Sidebar

Install

npm i storybook-addon-tailwind-dark

Weekly Downloads

24

Version

0.0.7

License

MIT

Unpacked Size

24 kB

Total Files

22

Last publish

Collaborators

  • abdzadehpedram