0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-23 07:16:07 -05:00
penpot/frontend/.storybook/preview.js

36 lines
694 B
JavaScript
Raw Normal View History

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",
}),
];
2023-11-24 12:24:47 +01:00
/** @type { import('@storybook/react').Preview } */
const preview = {
decorators: decorators,
2023-11-24 12:24:47 +01:00
parameters: {
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/i,
},
},
backgrounds: {
values: [
{ name: 'theme', value: 'var(--color-background-secondary)' },
],
default: 'theme',
},
2023-11-24 12:24:47 +01:00
},
};
export default preview;