base-themes.scss 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. @mixin base-theme {
  2. --font-sans: "Inter Variable", sans-serif;
  3. --font-mono: "Roboto Mono Variable", monospace;
  4. --font-size-body: 0.75rem;
  5. --font-size-tiny: 0.625rem;
  6. --line-height-body: 1rem;
  7. --upper-primary-sticky-fold: 4.125rem;
  8. --upper-secondary-sticky-fold: 6.188rem;
  9. --upper-tertiary-sticky-fold: 8.25rem;
  10. --upper-fourth-sticky-fold: 10.2rem;
  11. --upper-mobile-primary-sticky-fold: 6.75rem;
  12. --upper-mobile-secondary-sticky-fold: 8.813rem;
  13. --upper-mobile-sticky-fold: 10.875rem;
  14. --upper-mobile-tertiary-sticky-fold: 8.25rem;
  15. --lower-primary-sticky-fold: 3rem;
  16. --lower-secondary-sticky-fold: 5.063rem;
  17. --lower-tertiary-sticky-fold: 7.125rem;
  18. --lower-fourth-sticky-fold: 9.188rem;
  19. --sidebar-primary-sticky-fold: 2rem;
  20. }
  21. @mixin light-theme {
  22. --primary-color: theme("colors.white");
  23. --primary-light-color: theme("colors.gray.50");
  24. --primary-dark-color: theme("colors.gray.100");
  25. --primary-contrast-color: #fdfdfd;
  26. --secondary-color: theme("colors.gray.500");
  27. --secondary-light-color: theme("colors.gray.400");
  28. --secondary-dark-color: theme("colors.gray.900");
  29. --divider-color: theme("colors.gray.100");
  30. --divider-light-color: theme("colors.gray.100");
  31. --divider-dark-color: theme("colors.gray.300");
  32. --banner-info-color: theme("colors.stone.100");
  33. --banner-warning-color: theme("colors.yellow.100");
  34. --banner-error-color: theme("colors.red.100");
  35. --tooltip-color: theme("colors.neutral.800");
  36. --popover-color: theme("colors.white");
  37. --method-get-color: theme("colors.green.500");
  38. --method-post-color: theme("colors.amber.500");
  39. --method-put-color: theme("colors.blue.500");
  40. --method-patch-color: theme("colors.purple.500");
  41. --method-delete-color: theme("colors.red.500");
  42. --method-head-color: theme("colors.lime.500");
  43. --method-options-color: theme("colors.pink.500");
  44. --method-default-color: theme("colors.gray.500");
  45. --status-info-color: theme("colors.blue.500");
  46. --status-success-color: theme("colors.green.500");
  47. --status-redirect-color: theme("colors.amber.500");
  48. --status-critical-error-color: theme("colors.red.500");
  49. --status-server-error-color: theme("colors.rose.500");
  50. --status-missing-data-color: theme("colors.slate.500");
  51. --editor-theme: "textmate";
  52. }
  53. @mixin dark-theme {
  54. --primary-color: #181818;
  55. --primary-light-color: #1c1c1e;
  56. --primary-dark-color: theme("colors.neutral.800");
  57. --primary-contrast-color: theme("colors.neutral.900");
  58. --secondary-color: theme("colors.neutral.400");
  59. --secondary-light-color: theme("colors.neutral.500");
  60. --secondary-dark-color: theme("colors.zinc.50");
  61. --divider-color: #1f1f1f;
  62. --divider-light-color: #1f1f1f;
  63. --divider-dark-color: theme("colors.zinc.800");
  64. --banner-info-color: theme("colors.stone.800");
  65. --banner-warning-color: theme("colors.yellow.800");
  66. --banner-error-color: theme("colors.red.800");
  67. --tooltip-color: theme("colors.neutral.100");
  68. --popover-color: #1b1b1b;
  69. --method-get-color: theme("colors.emerald.500");
  70. --method-post-color: theme("colors.yellow.500");
  71. --method-put-color: theme("colors.sky.500");
  72. --method-patch-color: theme("colors.violet.500");
  73. --method-delete-color: theme("colors.rose.500");
  74. --method-head-color: theme("colors.teal.500");
  75. --method-options-color: theme("colors.indigo.500");
  76. --method-default-color: theme("colors.neutral.500");
  77. --status-info-color: theme("colors.blue.500");
  78. --status-success-color: theme("colors.green.500");
  79. --status-redirect-color: theme("colors.amber.500");
  80. --status-critical-error-color: theme("colors.red.500");
  81. --status-server-error-color: theme("colors.rose.500");
  82. --status-missing-data-color: theme("colors.slate.500");
  83. --editor-theme: "merbivore_soft";
  84. }
  85. @mixin black-theme {
  86. --primary-color: #0f0f0f;
  87. --primary-light-color: theme("colors.neutral.900");
  88. --primary-dark-color: #181818;
  89. --primary-contrast-color: #0f0f0f;
  90. --secondary-color: theme("colors.neutral.400");
  91. --secondary-light-color: theme("colors.neutral.500");
  92. --secondary-dark-color: theme("colors.neutral.50");
  93. --divider-color: theme("colors.neutral.900");
  94. --divider-light-color: theme("colors.neutral.900");
  95. --divider-dark-color: theme("colors.zinc.800");
  96. --banner-info-color: theme("colors.stone.900");
  97. --banner-warning-color: theme("colors.yellow.900");
  98. --banner-error-color: theme("colors.red.900");
  99. --tooltip-color: theme("colors.neutral.100");
  100. --popover-color: theme("colors.stone.950");
  101. --method-get-color: theme("colors.emerald.500");
  102. --method-post-color: theme("colors.yellow.500");
  103. --method-put-color: theme("colors.sky.500");
  104. --method-patch-color: theme("colors.violet.500");
  105. --method-delete-color: theme("colors.rose.500");
  106. --method-head-color: theme("colors.teal.500");
  107. --method-options-color: theme("colors.indigo.500");
  108. --method-default-color: theme("colors.zinc.500");
  109. --status-info-color: theme("colors.blue.500");
  110. --status-success-color: theme("colors.green.500");
  111. --status-redirect-color: theme("colors.amber.500");
  112. --status-critical-error-color: theme("colors.red.500");
  113. --status-server-error-color: theme("colors.rose.500");
  114. --status-missing-data-color: theme("colors.slate.500");
  115. --editor-theme: "twilight";
  116. }