Unverified Commit 91b4a2b3 authored by Arthur Maverick's avatar Arthur Maverick Committed by GitHub

Adding globalStyled with styled components (#16783)

Co-authored-by: 's avatarJoe Haddad <joe.haddad@zeit.co>
parent 47d983f7
import { ThemeProvider } from 'styled-components' import { createGlobalStyle, ThemeProvider } from 'styled-components'
const GlobalStyle = createGlobalStyle`
body {
margin: 0;
padding: 0;
box-sizing: border-box;
}
`
const theme = { const theme = {
colors: { colors: {
...@@ -8,8 +16,11 @@ const theme = { ...@@ -8,8 +16,11 @@ const theme = {
export default function App({ Component, pageProps }) { export default function App({ Component, pageProps }) {
return ( return (
<ThemeProvider theme={theme}> <>
<Component {...pageProps} /> <GlobalStyle />
</ThemeProvider> <ThemeProvider theme={theme}>
<Component {...pageProps} />
</ThemeProvider>
</>
) )
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment