mirror of
https://github.com/penpot/penpot.git
synced 2025-01-08 07:50:43 -05:00
28 lines
542 B
JavaScript
28 lines
542 B
JavaScript
import { withThemeByClassName } from "@storybook/addon-themes";
|
|
|
|
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;
|