Storybook: Add color theme and theme switcher (#22005)
* Add color theme and serve static files for storybook * Add color theme and serve static files for storybook * Export dark and light theme * Add storybook-dark-mode package * Add theme toggle functionality * Toggle story theme too * Remove unused import * webpack config changes not needed
Showing
3.52 KB
... | ... | @@ -18,8 +18,8 @@ |
"scripts": { | ||
"lint": "eslint .storybook/ src/ --ext=.js,.ts,.tsx", | ||
"typecheck": "tsc --noEmit", | ||
"storybook": "start-storybook -p 9001 -c .storybook", | ||
"storybook:build": "build-storybook -o ./dist/storybook -c .storybook", | ||
"storybook": "start-storybook -p 9001 -c .storybook -s .storybook/static", | ||
"storybook:build": "build-storybook -o ./dist/storybook -c .storybook -s .storybook/static", | ||
"clean": "rimraf ./dist ./compiled", | ||
"bundle": "rollup -c rollup.config.ts", | ||
"build": "grafana-toolkit package:build --scope=ui" | ||
... | ... | @@ -92,6 +92,7 @@ |
"rollup-plugin-terser": "4.0.4", | ||
"rollup-plugin-typescript2": "0.19.3", | ||
"rollup-plugin-visualizer": "0.9.2", | ||
"storybook-dark-mode": "0.3.0", | ||
"ts-loader": "6.2.1", | ||
"typescript": "3.7.2" | ||
}, | ||
... | ... |
Please
register
or
sign in
to comment