mirror of
https://github.com/discordjs/discord.js.git
synced 2024-08-21 15:34:44 +12:00
28 lines
563 B
TypeScript
28 lines
563 B
TypeScript
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',
|
|
}),
|
|
];
|