import theme from './theme' import css from 'styled-jsx/css' const GlobalStyle = css.global` @import url('https://fonts.googleapis.com/css?family=Roboto+Mono:300|Roboto:300,900&display=swap'); html { box-sizing: border-box; font-size: 12px; } *, *:before, *:after { box-sizing: inherit; } body #__next { display: grid; grid-template-areas: "header" "nav" "main" "footer"; grid-template-rows: auto auto 1fr minmax(180px, auto); padding: 0; margin: 0; font-size: 1.5rem; line-height: 2; font-family: 'Roboto', sans-serif; font-weight: 300; max-width: ${theme.maxWidth}; margin: 0 auto; } @media (min-width: 500px) { body #__next { grid-template-areas: "header nav" "main main" "footer footer"; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr minmax(180px, auto); } } header { grid-area: header; } nav { grid-area: nav; } main { grid-area: main; } footer { grid-area: footer; } #__next { background: ${theme.colors.offWhite}; color: ${theme.colors.black}; box-shadow: ${theme.bs}; } h1, h2, h3, h4, h5, h6 { font-weight: 900; } button { font-weight: 900; background: ${theme.colors.darkblue}; color: ${theme.colors.lighterblue}; border: 1px solid ${theme.colors.darkerblue}; padding: 0.3em 1.8em; cursor: pointer; box-shadow: ${theme.bsSmall}; } input, textarea { border: 1px solid ${theme.colors.lightgrey}; padding: 6px; margin: 0 8px; background: transparent; } pre { font-family: 'Roboto Mono', monospace; } ` export default GlobalStyle