penpot/frontend/.storybook/preview.js
Eva Marco e2918f4148
🎉 Create tooltip DS component (#6340)
*  Add new tooltip DS component

* 🎉 Add delay

* 🎉 Update docs and stories

* 🎉 Add configurable delay

* ♻️ Fix comments

* ♻️ Fix comments
2025-05-06 17:15:22 +02:00

36 lines
725 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: {
disableSaveFromUI: true,
matchers: {
color: /(background|color)$/i,
date: /Date$/i,
},
},
backgrounds: {
values: [
{ name: 'theme', value: 'var(--color-background-secondary)' },
],
default: 'theme',
},
},
};
export default preview;