0.0.7 • Published 1 year ago

storybook-addon-tailwind-dark v0.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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;
0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago