theia/.storybook/preview.js
Benjamin Palko b2598e0b23
All checks were successful
Deployment / Deploy Storybook (push) Successful in 5m57s
init
2025-04-01 13:50:12 -04:00

28 lines
515 B
JavaScript

import { withThemeByDataAttribute } from '@storybook/addon-themes';
import './preview.css';
/** @type { import('@storybook/svelte').Preview } */
const preview = {
tags: ['autodocs'],
parameters: {
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/i,
},
},
},
decorators: [
withThemeByDataAttribute({
themes: {
light: 'light',
dark: 'dark',
night: 'night',
},
defaultTheme: 'dark',
attributeName: 'data-theme',
}),
],
};
export default preview;