1
0

preview.ts 575 B

123456789101112131415161718192021222324
  1. import type { Preview } from "@storybook/html";
  2. import { themes } from "@storybook/theming";
  3. import "./global.css";
  4. const preview: Preview = {
  5. parameters: {
  6. darkMode: {
  7. // Override the default dark theme
  8. dark: { ...themes.dark, appBg: "#222529" },
  9. darkClass: "stb-dark",
  10. // Override the default light theme
  11. light: { ...themes.normal, appBg: "#fafafa" },
  12. lightClass: "stb-light",
  13. },
  14. controls: {
  15. matchers: {
  16. color: /(background|color)$/i,
  17. date: /Date$/i,
  18. },
  19. },
  20. },
  21. };
  22. export default preview;