0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-24 07:46:13 -05:00
penpot/frontend/.storybook/preview.js
2025-01-23 12:06:02 +01:00

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;