* [/][m]: add storybook to core package * [/][s]: replace nx with nrwl packages for storybook * [core][xs]: mv tsconfig.storybook.json to .storybook/tsconfig.json * [/][s]: configure storybook with tailwind * [core/tailwind.config.js][xs]: add basic Flowershow tailwind config * [core][xs]: add example story * [core][s]: darkmode storybook addon
15 lines
322 B
TypeScript
15 lines
322 B
TypeScript
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;
|