import { withThemeByClassName } from "@storybook/addon-themes"; import '../resources/public/css/ds.css'; export const decorators = [ withThemeByClassName({ themes: { light: "light", dark: "default", }, defaultTheme: "dark", parentSelector: "body", }), ]; /** @type { import('@storybook/react').Preview } */ const preview = { decorators: decorators, parameters: { controls: { matchers: { color: /(background|color)$/i, date: /Date$/i, }, }, backgrounds: { values: [ { name: 'theme', value: 'var(--color-background-secondary)' }, ], default: 'theme', }, }, }; export default preview;