base.css 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. font-weight: normal;
  47. }
  48. body {
  49. min-height: 100vh;
  50. color: var(--color-text);
  51. background: var(--color-background);
  52. transition: color 0.5s, background-color 0.5s;
  53. line-height: 1.6;
  54. font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
  55. Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  56. font-size: 15px;
  57. text-rendering: optimizeLegibility;
  58. -webkit-font-smoothing: antialiased;
  59. -moz-osx-font-smoothing: grayscale;
  60. }