mirror of
https://github.com/penpot/penpot.git
synced 2025-02-19 13:25:59 -05:00
* ✨ Add new components to storybook * ✨ Changes after review * ✨ More changes after review * ✨ Add file history components to the application * ✨ Unnest selector
35 lines
694 B
JavaScript
35 lines
694 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: {
|
|
values: [
|
|
{ name: 'theme', value: 'var(--color-background-secondary)' },
|
|
],
|
|
default: 'theme',
|
|
},
|
|
},
|
|
};
|
|
|
|
export default preview;
|