Skip to content

Commit

Permalink
Move styles to app.js
Browse files Browse the repository at this point in the history
  • Loading branch information
samlfair committed Feb 10, 2021
1 parent 35fcedf commit 934284b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
18 changes: 18 additions & 0 deletions pages/_app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// import App from 'next/app'
import { reset, globals } from 'styles'

function MyApp({ Component, pageProps }) {
return (
<>
<style jsx global>
{reset}
</style>
<style jsx global>
{globals}
</style>
<Component {...pageProps} />
</>
)
}

export default MyApp
7 changes: 4 additions & 3 deletions pages/_document.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ class MyDocument extends Document {
<Html>
<Head>
<meta charSet="utf-8" />
<link href="https://fonts.googleapis.com/css?family=Lato:300,400,700,900" rel="stylesheet" />
<link
href="https://fonts.googleapis.com/css?family=Lato:300,400,700,900"
rel="stylesheet"
/>
<link rel="icon" href="/favicon.png" type="image/png" />
</Head>
<style jsx global>{ reset }</style>
<style jsx global>{ globals }</style>
<body>
<Main />
<NextScript />
Expand Down

0 comments on commit 934284b

Please sign in to comment.