Created
July 22, 2019 21:43
-
-
Save giovanniantonaccio/65b62d48b104b2ffcad89bc57479002d to your computer and use it in GitHub Desktop.
ReactJS styled-components global reset
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` | |
* { | |
margin: 0; | |
padding: 0; | |
outline: 0; | |
box-sizing: border-box; | |
} | |
html, body, #root { | |
min-height: 100%; | |
} | |
body { | |
background: #7159c1; | |
-webkit-font-smoothing: 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