global.js 1.1 KB

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