How to change canvas background color on StoryBook?

2k Views Asked by At
import { addDecorator, addParameters } from "@storybook/react"; 
import { withThemesProvider } from "storybook-addon-jss-theme";
import "antd/dist/antd.css"; 
import { defaultTheme } from "./theme";
 
addParameters({
   background: [
      { name: "Default theme", value: "#ffffff", default: true },
      { name: "Dark theme", value: "#000000" },
   ],
});
 
const themes = [defaultTheme];
addDecorator(withThemesProvider(themes));
0

There are 0 best solutions below