[core][s]: darkmode storybook addon
This commit is contained in:
@@ -6,6 +6,7 @@ const config: StorybookConfig = {
|
||||
'@storybook/addon-essentials',
|
||||
'@storybook/addon-interactions',
|
||||
'@nrwl/react/plugins/storybook',
|
||||
'storybook-tailwind-dark-mode'
|
||||
],
|
||||
framework: {
|
||||
name: '@storybook/react-webpack5',
|
||||
|
||||
@@ -1 +1,14 @@
|
||||
import './tailwind-imports.css';
|
||||
|
||||
const preview = {
|
||||
globalTypes: {
|
||||
darkMode: {
|
||||
defaultValue: false, // Enable dark mode by default on all stories
|
||||
},
|
||||
className: {
|
||||
defaultValue: 'dark', // Set your custom dark mode class name
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export default preview;
|
||||
|
||||
Reference in New Issue
Block a user