global.js 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. import theme from './theme'
  2. const GlobalStyle = <style jsx global>{`
  3. @import url('https://fonts.googleapis.com/css?family=Roboto+Mono:300|Roboto:300,900&display=swap');
  4. html {
  5. box-sizing: border-box;
  6. font-size: 12px;
  7. }
  8. *, *:before, *:after {
  9. box-sizing: inherit;
  10. }
  11. body {
  12. padding: 0;
  13. margin: 0;
  14. font-size: 1.5rem;
  15. line-height: 2;
  16. font-family: 'roboto', sans-serif;
  17. font-weight: 300;
  18. max-width: ${theme.maxWidth};
  19. margin: 0 auto;
  20. }
  21. #__next {
  22. background: ${theme.colors.offWhite};
  23. color: ${theme.colors.black};
  24. box-shadow: ${theme.bs};
  25. }
  26. h1, h2, h3, h4, h5, h6 {
  27. font-weight: 900;
  28. }
  29. button {
  30. font-weight: 900;
  31. background: ${props => props.theme.darkblue};
  32. color: ${props => props.theme.lighterblue};
  33. border: 1px solid ${props => props.theme.darkerblue};
  34. padding: 0.3em 1.8em;
  35. cursor: pointer;
  36. box-shadow: ${props => props.theme.bsSmall};
  37. }
  38. input,
  39. textarea {
  40. border: 1px solid ${props => props.theme.lightgrey};
  41. padding: 6px;
  42. margin: 0 8px;
  43. }
  44. pre {
  45. font-family: 'roboto_mono';
  46. }
  47. `}</style>
  48. export default GlobalStyle