Files
discord.js/packages/ui/.storybook/preview.ts
Almeida d518c97840 chore: upgrade storybook to v10 (#11334)
- 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>
2025-12-08 08:27:04 +00:00

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',
}),
];