import "../src/base.css"; import React from "react"; import type { Preview } from "@storybook/react"; import { withThemeByDataAttribute } from "@storybook/addon-themes"; // @ts-expect-error - Cannot find module '.mdx' or its corresponding type declarations. import DocsTemplate from "./markdown/docs-template.mdx"; const preview: Preview = { parameters: { controls: { matchers: { color: /(background|color)$/i, date: /Date$/i, }, }, docs: { page: DocsTemplate, }, layout: "centered", }, tags: ["autodocs"], decorators: [ withThemeByDataAttribute({ themes: { light: "light", dark: "dark", }, defaultTheme: "light", attributeName: "data-mode", }), (Story) => (