mirror of
https://github.com/penpot/penpot.git
synced 2025-06-01 17:01:42 +02:00
✨ Support theme switching within Storybook
This commit is contained in:
parent
0d8c98dcfe
commit
ebda46f748
10 changed files with 62 additions and 70 deletions
|
@ -1,22 +1,18 @@
|
|||
import viteConfig from "../vite.config";
|
||||
|
||||
/** @type { import('@storybook/react-vite').StorybookConfig } */
|
||||
const config = {
|
||||
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
|
||||
staticDirs: ["../resources/public"],
|
||||
addons: ["@storybook/addon-essentials"],
|
||||
addons: ["@storybook/addon-essentials", "@storybook/addon-themes"],
|
||||
core: {
|
||||
builder: "@storybook/builder-vite",
|
||||
options: {
|
||||
viteConfigPath: "../vite.config.js",
|
||||
},
|
||||
},
|
||||
|
||||
framework: {
|
||||
name: "@storybook/react-vite",
|
||||
options: {},
|
||||
},
|
||||
|
||||
docs: {},
|
||||
};
|
||||
export default config;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue