1import type { Preview } from '@storybook/sveltekit';
2import '../src/app.css';
3import ModeWatcherDecorator from './ModeWatcherDecorator.svelte';
4import TooltipProviderDecorator from './TooltipProviderDecorator.svelte';
5
6const preview: Preview = {
7 parameters: {
8 controls: {
9 matchers: {
10 color: /(background|color)$/i,
11 date: /Date$/i
12 }
13 },
14
15 backgrounds: {
16 disable: true
17 },
18
19 a11y: {
20 // 'todo' - show a11y violations in the test UI only
21 // 'error' - fail CI on a11y violations
22 // 'off' - skip a11y checks entirely
23 test: 'todo'
24 }
25 },
26 decorators: [
27 (story) => ({
28 Component: ModeWatcherDecorator,
29 props: {
30 children: story
31 }
32 }),
33 (story) => ({
34 Component: TooltipProviderDecorator,
35 props: {
36 children: story
37 }
38 })
39 ]
40};
41
42export default preview;