mirror of
https://github.com/penpot/penpot.git
synced 2025-02-23 23:35:58 -05:00
30 lines
584 B
JavaScript
30 lines
584 B
JavaScript
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: { disable: true },
|
|
},
|
|
};
|
|
|
|
export default preview;
|