Last active
July 15, 2019 11:50
-
-
Save danieldfc/49878a985bb138811c179d179e52809f to your computer and use it in GitHub Desktop.
ReactJs - Para criar um estilo global a aplicação
This file contains hidden or 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` | |
* { | |
margin: 0; | |
padding: 0; | |
outline: 0; | |
box-sizing: border-box; | |
} | |
html, | |
body, | |
#root { | |
min-height: 100%; | |
} | |
body { | |
background: #7159c1; | |
-webkit-font-smothing: antialiased !important; | |
} | |
body, | |
input, | |
button { | |
color: #222; | |
font-size: 14px; | |
font-family: Arial, Helvetica, sans-serif; | |
} | |
button { | |
cursor: pointer; | |
} | |
`; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment