0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-09 08:20:45 -05:00
penpot/frontend/.storybook/preview.js

29 lines
542 B
JavaScript
Raw Normal View History

import { withThemeByClassName } from "@storybook/addon-themes";
export const decorators = [
withThemeByClassName({
themes: {
light: "light",
dark: "default",
},
defaultTheme: "dark",
parentSelector: "body",
}),
];
2023-11-24 06:24:47 -05:00
/** @type { import('@storybook/react').Preview } */
const preview = {
decorators: decorators,
2023-11-24 06:24:47 -05:00
parameters: {
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/i,
},
},
backgrounds: { disable: true },
2023-11-24 06:24:47 -05:00
},
};
export default preview;