Skip to content
This repository was archived by the owner on Jun 20, 2022. It is now read-only.

Commit a202061

Browse files
committed
fix(globalStyle): correctly export normalize
1 parent a75e893 commit a202061

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

packages/shared/core/theme/globalStyle.js

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,20 @@ import { normalize } from 'polished'
22
import * as defaultTheme from '../theme'
33
import { th } from '../utils/system'
44

5-
const globalStyle = (customTheme = defaultTheme) => `
6-
${normalize()};
5+
const globalStyle = (customTheme = defaultTheme) => [
6+
...normalize(),
7+
`
8+
html,
9+
body {
10+
font-family: ${th('fontFamily')({ theme: customTheme })};
11+
font-size: ${th('fontSizeBase')({ theme: customTheme })};
12+
line-height: ${th('lineHeightBase')({ theme: customTheme })};
13+
}
714
8-
html,
9-
body {
10-
font-family: ${th('fontFamily')({ theme: customTheme })};
11-
font-size: ${th('fontSizeBase')({ theme: customTheme })};
12-
line-height: ${th('lineHeightBase')({ theme: customTheme })};
13-
}
14-
15-
* {
16-
box-sizing: border-box;
17-
}
18-
`
15+
* {
16+
box-sizing: border-box;
17+
}
18+
`,
19+
]
1920

2021
export default globalStyle

0 commit comments

Comments
 (0)