Skip to content

Commit c2c1075

Browse files
committed
fix: set themes using new api
1 parent 71c4742 commit c2c1075

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed

.storybook/main.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
const path = require('path');
21
module.exports = {
32
stories: ['../stories/index.js'],
43
};

.storybook/manager.js

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { addons } from '@storybook/addons';
2+
import { create } from '@storybook/theming/create';
3+
4+
addons.setConfig({
5+
theme: create({
6+
base: 'light',
7+
brandTitle: 'React Sortable Tree',
8+
brandUrl: 'https://github.com/frontend-collective/react-sortable-tree',
9+
gridCellSize: 12,
10+
}),
11+
});

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@
8888
"@storybook/addon-storyshots": "^5.2.6",
8989
"@storybook/addons": "^5.3.17",
9090
"@storybook/react": "^5.2.6",
91+
"@storybook/theming": "^5.3.17",
9192
"autoprefixer": "^9.7.1",
9293
"babel-core": "^7.0.0-bridge.0",
9394
"babel-eslint": "^10.0.3",

yarn.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -1859,7 +1859,7 @@
18591859
qs "^6.6.0"
18601860
util-deprecate "^1.0.2"
18611861

1862-
"@storybook/[email protected]":
1862+
"@storybook/[email protected]", "@storybook/theming@^5.3.17":
18631863
version "5.3.17"
18641864
resolved "https://registry.yarnpkg.com/@storybook/theming/-/theming-5.3.17.tgz#cf6278c4857229c7167faf04d5b2206bc5ee04e1"
18651865
integrity sha512-4JeOZnDDHtb4LOt5sXe/s1Jhbb2UPsr8zL9NWmKJmTsgnyTvBipNHOmFYDUsIacB5K4GXSqm+cZ7Z4AkUgWCDw==

0 commit comments

Comments
 (0)