Skip to content

Commit

Permalink
Update storybook theme
Browse files Browse the repository at this point in the history
  • Loading branch information
Th1nkK1D committed May 18, 2021
1 parent 26d1efb commit edb579f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .storybook/manager.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { addons } from '@storybook/addons';
import { create } from '@storybook/theming';

const theme = create({
base: 'light',
brandTitle: 'ELECT Common',
});

addons.setConfig({
theme: theme,
theme: create({
base: 'dark',
brandTitle: '@electinth/common',
brandImage:
'https://elect.in.th/wp-content/themes/elect/dist/images/logo-white.png',
}),
});
5 changes: 5 additions & 0 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { themes } from '@storybook/theming';

export const parameters = {
actions: { argTypesRegex: '^on[A-Z].*' },
options: {
Expand All @@ -13,4 +15,7 @@ export const parameters = {
date: /Date$/,
},
},
docs: {
theme: themes.dark,
},
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"license": "MIT",
"main": "components/index.js",
"scripts": {
"storybook": "start-storybook -p 6006",
"storybook": "start-storybook -p 6006 --no-manager-cache",
"build-storybook": "build-storybook",
"create": "hygen component new",
"lint": "eslint . --fix",
Expand Down

0 comments on commit edb579f

Please sign in to comment.