diff options
author | Nick Van Doorn <vandoorn.nick@gmail.com> | 2019-03-11 23:02:19 -0700 |
---|---|---|
committer | Nick Van Doorn <vandoorn.nick@gmail.com> | 2019-03-11 23:02:19 -0700 |
commit | 443009c0eaf2ff116fc5b427b66f32a47e544964 (patch) | |
tree | 4e83ed57269b73e42e8aa5cef864ede05d47594e /src/components/layout.js | |
parent | 6e44b0ebe8751b42c8c630e55e7f3047d30f494e (diff) |
Use @emotion/core for global styling
Diffstat (limited to 'src/components/layout.js')
-rw-r--r-- | src/components/layout.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/components/layout.js b/src/components/layout.js index 72a2706..abed17a 100644 --- a/src/components/layout.js +++ b/src/components/layout.js @@ -1,13 +1,13 @@ import React from 'react' import Helmet from 'react-helmet' -import { injectGlobal } from 'emotion' +import { css, Global } from '@emotion/core' import { colours, fontStack, transitions } from './globals' import { Container } from './container' import { Header } from './header' import '../../node_modules/font-awesome/css/font-awesome.min.css' -injectGlobal(` +const globalStyles = css` *, html, body { @@ -35,7 +35,7 @@ injectGlobal(` body { background: ${colours.background}; } -`) +` const siteData = { siteName: 'Nicholas Van Doorn', @@ -71,6 +71,7 @@ const siteData = { export default ({ children, data }) => ( <> + <Global styles={globalStyles} /> <Helmet title="Nicholas Van Doorn" meta={[ |