base.css 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. *,
  31. *::before,
  32. *::after {
  33. box-sizing: border-box;
  34. margin: 0;
  35. position: relative;
  36. font-weight: normal;
  37. }
  38. body {
  39. min-height: 100vh;
  40. color: var(--color-text);
  41. background: var(--color-background);
  42. transition: color 0.5s, background-color 0.5s;
  43. line-height: 1.6;
  44. font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
  45. Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  46. font-size: 15px;
  47. text-rendering: optimizeLegibility;
  48. -webkit-font-smoothing: antialiased;
  49. -moz-osx-font-smoothing: grayscale;
  50. }