Skip to content

Commit 8715668

Browse files
author
Philip Weiss
committed
add css generating script and package.json hook
1 parent c46b621 commit 8715668

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

initialize.js

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// eslint-disable-next-line import/no-unresolved
2+
require('./lib/initialize');

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
"prepublish": "in-publish && safe-publish-latest && npm run build || not-in-publish",
1515
"lint": "eslint --ext .js,.jsx src test stories",
1616
"storybook": "start-storybook -p 9001",
17-
"prestorybook:css": "npm run build:css",
18-
"storybook:css": "start-storybook -p 6006 -c .storybook-css",
17+
"storybook:css": "npm run build:css && start-storybook -p 6006 -c .storybook-css",
1918
"pretest": "npm run build && npm run lint",
2019
"test": "nyc npm run test:all",
2120
"tests-only": "npm run test:all",

src/DefaultBackground.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ DefaultBackground.defaultProps = defaultProps;
3636

3737
export default withStyles(({ color, unit }) => ({
3838
DefaultBackground_background: {
39-
backgroundColor: color.white,
39+
backgroundColor: 'color.white',
4040
border: `5px solid ${color.grey}`,
4141
position: 'relative',
4242
},

src/initialize.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import registerCSSInterfaceWithDefaultTheme from '../scripts/utils/registerCSSInterfaceWithDefaultTheme';
2+
3+
registerCSSInterfaceWithDefaultTheme();

0 commit comments

Comments
 (0)