base.css 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /* color palette from <https://github.com/vuejs/theme> */
  2. :root {
  3. --vt-c-white: #ffffff;
  4. --vt-c-white-soft: #f8f8f8;
  5. --vt-c-white-mute: #f2f2f2;
  6. --vt-c-black: #181818;
  7. --vt-c-black-soft: #222222;
  8. --vt-c-black-mute: #282828;
  9. --vt-c-indigo: #2c3e50;
  10. --vt-c-divider-light-1: rgba(60, 60, 60, 0.29);
  11. --vt-c-divider-light-2: rgba(60, 60, 60, 0.12);
  12. --vt-c-divider-dark-1: rgba(84, 84, 84, 0.65);
  13. --vt-c-divider-dark-2: rgba(84, 84, 84, 0.48);
  14. --vt-c-text-light-1: var(--vt-c-indigo);
  15. --vt-c-text-light-2: rgba(60, 60, 60, 0.66);
  16. --vt-c-text-dark-1: var(--vt-c-white);
  17. --vt-c-text-dark-2: rgba(235, 235, 235, 0.64);
  18. }
  19. /* semantic color variables for this project */
  20. :root {
  21. --color-background: var(--vt-c-white);
  22. --color-background-soft: var(--vt-c-white-soft);
  23. --color-background-mute: var(--vt-c-white-mute);
  24. --color-border: var(--vt-c-divider-light-2);
  25. --color-border-hover: var(--vt-c-divider-light-1);
  26. --color-heading: var(--vt-c-text-light-1);
  27. --color-text: var(--vt-c-text-light-1);
  28. --section-gap: 160px;
  29. }
  30. @media (prefers-color-scheme: dark) {
  31. :root {
  32. --color-background: var(--vt-c-black);
  33. --color-background-soft: var(--vt-c-black-soft);
  34. --color-background-mute: var(--vt-c-black-mute);
  35. --color-border: var(--vt-c-divider-dark-2);
  36. --color-border-hover: var(--vt-c-divider-dark-1);
  37. --color-heading: var(--vt-c-text-dark-1);
  38. --color-text: var(--vt-c-text-dark-2);
  39. }
  40. }
  41. *,
  42. *::before,
  43. *::after {
  44. box-sizing: border-box;
  45. margin: 0;
  46. position: relative;
  47. font-weight: normal;
  48. }
  49. body {
  50. min-height: 100vh;
  51. color: var(--color-text);
  52. background: var(--color-background);
  53. transition: color 0.5s, background-color 0.5s;
  54. line-height: 1.6;
  55. font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
  56. Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  57. font-size: 15px;
  58. text-rendering: optimizeLegibility;
  59. -webkit-font-smoothing: antialiased;
  60. -moz-osx-font-smoothing: grayscale;
  61. }