/ .storybook / preview.ts
preview.ts
 1  import type { Preview } from "@storybook/react";
 2  import { themes } from "@storybook/theming";
 3  
 4  const preview: Preview = {
 5    parameters: {
 6      controls: {
 7        matchers: {
 8          color: /(background|color)$/i,
 9          date: /Date$/i,
10        },
11      },
12      docs: {
13        theme: themes.dark,
14      },
15      backgrounds: {
16        default: "dark",
17      },
18    },
19  };
20  
21  export default preview;