Alonso Torres c215214120
✨ Add new components to storybook (#5632)
* ✨ Add new components to storybook

* ✨ Changes after review

* ✨ More changes after review

* ✨ Add file history components to the application

* ✨ Unnest selector
2025-01-28 12:34:15 +01:00

36 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;