Skip to content

Instantly share code, notes, and snippets.

@giovanniantonaccio
Created July 22, 2019 21:43
Show Gist options
  • Save giovanniantonaccio/65b62d48b104b2ffcad89bc57479002d to your computer and use it in GitHub Desktop.
Save giovanniantonaccio/65b62d48b104b2ffcad89bc57479002d to your computer and use it in GitHub Desktop.
ReactJS styled-components global reset
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