chore: storybook

This commit is contained in:
iCrawl
2023-04-13 19:09:56 +02:00
parent 8218ffc78d
commit e5859b41cf
91 changed files with 3660 additions and 1571 deletions

View File

@@ -0,0 +1,28 @@
import type { Preview } from '@storybook/react';
import { withThemeByClassName } from '@storybook/addon-styling';
import '@unocss/reset/tailwind-compat.css';
import './preview.css';
import 'virtual:uno.css';
export default {
parameters: {
actions: { argTypesRegex: '^on[A-Z].*' },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
},
} satisfies Preview;
export const decorators = [
withThemeByClassName({
themes: {
light: 'bg-light-600',
dark: 'dark bg-dark-600',
},
defaultTheme: 'light',
}),
];