mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
- Replaced deprecated `@storybook/addon-styling` with `@storybook/addon-themes` - Removed deprecated `@storybook/addon-essentials` and `@storybook/addon-interactions` - Upgraded `chromatic`, although it's seemingly unused anywhere - Upgraded `@types/node` to match the ones in the guide and website Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
29 lines
562 B
TypeScript
29 lines
562 B
TypeScript
import type { Preview } from '@storybook/react';
|
|
import { withThemeByClassName } from '@storybook/addon-themes';
|
|
|
|
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',
|
|
}),
|
|
];
|