refact: extract typography constants

This commit is contained in:
Jean-Philippe Sirois
2019-07-29 14:12:08 -04:00
parent 17728684ea
commit 7e324bff3b
3 changed files with 28 additions and 8 deletions
+8 -3
View File
@@ -1,12 +1,17 @@
import { createGlobalStyle } from "styled-components"
import {
BASE_FONT_SIZE,
BASE_LINE_HEIGHT,
fontFamily,
} from "./design/typography"
export const GlobalStyles = createGlobalStyle`
html {
font-family: Oxygen;
font-family: ${fontFamily.body};
}
body {
font-size: 18px;
line-height: 25px;
font-size: ${BASE_FONT_SIZE}px;
line-height: ${BASE_LINE_HEIGHT}px;
}
`