This adds a Storybook add-on that allows you to switch between VSCode theme. It follows the pattern of the [outline](https://github.com/storybookjs/storybook/tree/v6.5.12/addons/outline/src) and [backgrounds](https://github.com/storybookjs/storybook/tree/v6.5.12/addons/backgrounds) add-ons. Unfortunately, it doesn't apply the CSS to just the elements it should be applied to, but globally to the complete preview. This is a limitation of using CSS files rather than setting inline styles on the elements. We might be able to resolve this in the future by extracting the CSS variables from the CSS files, but this is somewhat more involved.
20 lines
434 B
JSON
20 lines
434 B
JSON
{
|
|
"compilerOptions": {
|
|
"module": "esnext",
|
|
"moduleResolution": "node",
|
|
"target": "es6",
|
|
"outDir": "out",
|
|
"lib": ["ES2021", "dom"],
|
|
"jsx": "react",
|
|
"sourceMap": true,
|
|
"rootDir": "..",
|
|
"strict": true,
|
|
"noUnusedLocals": true,
|
|
"noImplicitReturns": true,
|
|
"noFallthroughCasesInSwitch": true,
|
|
"experimentalDecorators": true,
|
|
"skipLibCheck": true
|
|
},
|
|
"exclude": ["node_modules"]
|
|
}
|