|
@@ -1,6 +1,7 @@
|
|
import theme from './theme'
|
|
import theme from './theme'
|
|
|
|
+import css from 'styled-jsx/css'
|
|
|
|
|
|
-const GlobalStyle = <style jsx global>{`
|
|
|
|
|
|
+const GlobalStyle = css.global`
|
|
@import url('https://fonts.googleapis.com/css?family=Roboto+Mono:300|Roboto:300,900&display=swap');
|
|
@import url('https://fonts.googleapis.com/css?family=Roboto+Mono:300|Roboto:300,900&display=swap');
|
|
|
|
|
|
html {
|
|
html {
|
|
@@ -17,7 +18,7 @@ body {
|
|
margin: 0;
|
|
margin: 0;
|
|
font-size: 1.5rem;
|
|
font-size: 1.5rem;
|
|
line-height: 2;
|
|
line-height: 2;
|
|
- font-family: 'roboto', sans-serif;
|
|
|
|
|
|
+ font-family: 'Roboto', sans-serif;
|
|
font-weight: 300;
|
|
font-weight: 300;
|
|
max-width: ${theme.maxWidth};
|
|
max-width: ${theme.maxWidth};
|
|
margin: 0 auto;
|
|
margin: 0 auto;
|
|
@@ -35,24 +36,24 @@ h1, h2, h3, h4, h5, h6 {
|
|
|
|
|
|
button {
|
|
button {
|
|
font-weight: 900;
|
|
font-weight: 900;
|
|
- background: ${props => props.theme.darkblue};
|
|
|
|
- color: ${props => props.theme.lighterblue};
|
|
|
|
- border: 1px solid ${props => props.theme.darkerblue};
|
|
|
|
|
|
+ background: ${theme.colors.darkblue};
|
|
|
|
+ color: ${theme.colors.lighterblue};
|
|
|
|
+ border: 1px solid ${theme.colors.darkerblue};
|
|
padding: 0.3em 1.8em;
|
|
padding: 0.3em 1.8em;
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
- box-shadow: ${props => props.theme.bsSmall};
|
|
|
|
|
|
+ box-shadow: ${theme.bsSmall};
|
|
}
|
|
}
|
|
|
|
|
|
input,
|
|
input,
|
|
textarea {
|
|
textarea {
|
|
- border: 1px solid ${props => props.theme.lightgrey};
|
|
|
|
|
|
+ border: 1px solid ${theme.colors.lightgrey};
|
|
padding: 6px;
|
|
padding: 6px;
|
|
margin: 0 8px;
|
|
margin: 0 8px;
|
|
}
|
|
}
|
|
|
|
|
|
pre {
|
|
pre {
|
|
- font-family: 'roboto_mono';
|
|
|
|
|
|
+ font-family: 'Roboto Mono', monospace;
|
|
}
|
|
}
|
|
-`}</style>
|
|
|
|
|
|
+`
|
|
|
|
|
|
export default GlobalStyle
|
|
export default GlobalStyle
|