2024-07-12 11:52:31 +02:00
|
|
|
import { withThemeByClassName } from "@storybook/addon-themes";
|
|
|
|
|
2025-01-23 10:52:12 +01:00
|
|
|
import '../resources/public/css/ds.css';
|
|
|
|
|
2024-07-12 11:52:31 +02:00
|
|
|
export const decorators = [
|
|
|
|
withThemeByClassName({
|
|
|
|
themes: {
|
|
|
|
light: "light",
|
|
|
|
dark: "default",
|
|
|
|
},
|
|
|
|
defaultTheme: "dark",
|
|
|
|
parentSelector: "body",
|
|
|
|
}),
|
|
|
|
];
|
|
|
|
|
2023-11-24 12:24:47 +01:00
|
|
|
/** @type { import('@storybook/react').Preview } */
|
|
|
|
const preview = {
|
2024-07-12 11:52:31 +02:00
|
|
|
decorators: decorators,
|
2023-11-24 12:24:47 +01:00
|
|
|
parameters: {
|
|
|
|
controls: {
|
|
|
|
matchers: {
|
|
|
|
color: /(background|color)$/i,
|
|
|
|
date: /Date$/i,
|
|
|
|
},
|
|
|
|
},
|
2025-01-28 12:34:15 +01:00
|
|
|
backgrounds: {
|
|
|
|
values: [
|
|
|
|
{ name: 'theme', value: 'var(--color-background-secondary)' },
|
|
|
|
],
|
|
|
|
default: 'theme',
|
|
|
|
},
|
2023-11-24 12:24:47 +01:00
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
export default preview;
|