-
-
Save LukeSmetham/54ad35c83ec16953d136ab12e6cdefd0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { createGlobalStyle } from 'styled-components'; | |
export default createGlobalStyle` | |
* { | |
outline: none; | |
box-sizing: border-box; | |
-webkit-tap-highlight-color: transparent; | |
} | |
html { | |
height: 100%; | |
width: 100%; | |
} | |
body { | |
background-color: ${({ theme }) => theme.color.background}; | |
margin: 0; | |
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", | |
"Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", | |
sans-serif; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale; | |
min-height: 100vh; | |
color: ${({ theme }) => theme.color.text}; | |
display: flex; | |
align-items: stretch; | |
flex-direction: column; | |
} | |
#root { | |
display: flex; | |
align-items: stretch; | |
flex-direction: column; | |
flex: 1; | |
} | |
h1, h2, h3, h4, h5, h6, h7, h8 { | |
margin: 0; | |
} | |
p { | |
margin: 0; | |
} | |
`; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment