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

Commit

Permalink
fix(globalStyle): correctly export normalize
Browse files Browse the repository at this point in the history
  • Loading branch information
gregberge committed Nov 1, 2018
1 parent a75e893 commit a202061
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions packages/shared/core/theme/globalStyle.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,20 @@ import { normalize } from 'polished'
import * as defaultTheme from '../theme'
import { th } from '../utils/system'

const globalStyle = (customTheme = defaultTheme) => `
${normalize()};
const globalStyle = (customTheme = defaultTheme) => [
...normalize(),
`
html,
body {
font-family: ${th('fontFamily')({ theme: customTheme })};
font-size: ${th('fontSizeBase')({ theme: customTheme })};
line-height: ${th('lineHeightBase')({ theme: customTheme })};
}
html,
body {
font-family: ${th('fontFamily')({ theme: customTheme })};
font-size: ${th('fontSizeBase')({ theme: customTheme })};
line-height: ${th('lineHeightBase')({ theme: customTheme })};
}
* {
box-sizing: border-box;
}
`
* {
box-sizing: border-box;
}
`,
]

export default globalStyle

0 comments on commit a202061

Please sign in to comment.