Remove storybook dark mode. It is ugly.
This commit is contained in:
parent
73963d0ca7
commit
a5a6587234
@ -18,7 +18,6 @@ module.exports = {
|
||||
'@storybook/addon-postcss',
|
||||
'@storybook/addon-a11y',
|
||||
'storybook-addon-designs',
|
||||
'storybook-dark-mode',
|
||||
'storybook-addon-fetch-mock',
|
||||
],
|
||||
webpackFinal: async (config, { configType }) => {
|
||||
|
@ -1,11 +1,8 @@
|
||||
import React from 'react';
|
||||
import { DocsContainer as BaseContainer } from '@storybook/addon-docs';
|
||||
import { useDarkMode } from 'storybook-dark-mode';
|
||||
import { themes } from '@storybook/theming';
|
||||
|
||||
export const DocsContainer = ({ children, context }) => {
|
||||
const dark = useDarkMode();
|
||||
|
||||
return (
|
||||
<BaseContainer
|
||||
context={{
|
||||
@ -18,7 +15,7 @@ export const DocsContainer = ({ children, context }) => {
|
||||
...storyContext?.parameters,
|
||||
docs: {
|
||||
...storyContext?.parameters?.docs,
|
||||
theme: dark ? themes.dark : themes.light,
|
||||
theme: themes.light,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
29
web/package-lock.json
generated
29
web/package-lock.json
generated
@ -106,7 +106,6 @@
|
||||
"sb": "6.5.15",
|
||||
"storybook-addon-designs": "6.3.1",
|
||||
"storybook-addon-fetch-mock": "1.0.1",
|
||||
"storybook-dark-mode": "2.0.5",
|
||||
"storybook-preset-less": "1.1.3",
|
||||
"style-dictionary": "3.7.2",
|
||||
"style-loader": "3.3.1",
|
||||
@ -34121,34 +34120,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/storybook-dark-mode": {
|
||||
"version": "2.0.5",
|
||||
"resolved": "https://registry.npmjs.org/storybook-dark-mode/-/storybook-dark-mode-2.0.5.tgz",
|
||||
"integrity": "sha512-egOMu2tgGttGAMtFZcDLZobs1xc7LzFOh+pRVqaW59AVp05ABdQ3Hj6IX2Pz7tYGmF9AmaK+nBv0hDFxPe7Hfg==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@storybook/addons": "^6.5.14",
|
||||
"@storybook/api": "^6.5.14",
|
||||
"@storybook/components": "^6.5.14",
|
||||
"@storybook/core-events": "^6.5.14",
|
||||
"@storybook/theming": "^6.5.14",
|
||||
"fast-deep-equal": "^3.1.3",
|
||||
"global": "^4.4.0",
|
||||
"memoizerific": "^1.11.3"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
||||
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"react": {
|
||||
"optional": true
|
||||
},
|
||||
"react-dom": {
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/storybook-preset-less": {
|
||||
"version": "1.1.3",
|
||||
"resolved": "https://registry.npmjs.org/storybook-preset-less/-/storybook-preset-less-1.1.3.tgz",
|
||||
|
@ -111,7 +111,6 @@
|
||||
"sb": "6.5.15",
|
||||
"storybook-addon-designs": "6.3.1",
|
||||
"storybook-addon-fetch-mock": "1.0.1",
|
||||
"storybook-dark-mode": "2.0.5",
|
||||
"storybook-preset-less": "1.1.3",
|
||||
"style-dictionary": "3.7.2",
|
||||
"style-loader": "3.3.1",
|
||||
|
Loading…
Reference in New Issue
Block a user