Skip to content

Instantly share code, notes, and snippets.

@LukeSmetham
Created September 20, 2019 11:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save LukeSmetham/54ad35c83ec16953d136ab12e6cdefd0 to your computer and use it in GitHub Desktop.
Save LukeSmetham/54ad35c83ec16953d136ab12e6cdefd0 to your computer and use it in GitHub Desktop.
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