variables.css 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. /* Globals */
  2. :root {
  3. --sidebar-width: 300px;
  4. --page-padding: 20px;
  5. --content-max-width: 750px;
  6. --menu-bar-height: 50px;
  7. }
  8. /* Themes */
  9. .ayu {
  10. --bg: hsl(210, 25%, 8%);
  11. --fg: #c5c5c5;
  12. --sidebar-bg: #14191f;
  13. --sidebar-fg: #c8c9db;
  14. --sidebar-non-existant: #5c6773;
  15. --sidebar-active: #ffb454;
  16. --sidebar-spacer: #2d334f;
  17. --scrollbar: var(--sidebar-fg);
  18. --icons: #737480;
  19. --icons-hover: #b7b9cc;
  20. --links: #0096cf;
  21. --inline-code-color: #ffb454;
  22. --theme-popup-bg: #14191f;
  23. --theme-popup-border: #5c6773;
  24. --theme-hover: #191f26;
  25. --quote-bg: hsl(226, 15%, 17%);
  26. --quote-border: hsl(226, 15%, 22%);
  27. --table-border-color: hsl(210, 25%, 13%);
  28. --table-header-bg: hsl(210, 25%, 28%);
  29. --table-alternate-bg: hsl(210, 25%, 11%);
  30. --searchbar-border-color: #848484;
  31. --searchbar-bg: #424242;
  32. --searchbar-fg: #fff;
  33. --searchbar-shadow-color: #d4c89f;
  34. --searchresults-header-fg: #666;
  35. --searchresults-border-color: #888;
  36. --searchresults-li-bg: #252932;
  37. --search-mark-bg: #e3b171;
  38. }
  39. .coal {
  40. --bg: hsl(200, 7%, 8%);
  41. --fg: #98a3ad;
  42. --sidebar-bg: #292c2f;
  43. --sidebar-fg: #a1adb8;
  44. --sidebar-non-existant: #505254;
  45. --sidebar-active: #3473ad;
  46. --sidebar-spacer: #393939;
  47. --scrollbar: var(--sidebar-fg);
  48. --icons: #43484d;
  49. --icons-hover: #b3c0cc;
  50. --links: #2b79a2;
  51. --inline-code-color: #c5c8c6;;
  52. --theme-popup-bg: #141617;
  53. --theme-popup-border: #43484d;
  54. --theme-hover: #1f2124;
  55. --quote-bg: hsl(234, 21%, 18%);
  56. --quote-border: hsl(234, 21%, 23%);
  57. --table-border-color: hsl(200, 7%, 13%);
  58. --table-header-bg: hsl(200, 7%, 28%);
  59. --table-alternate-bg: hsl(200, 7%, 11%);
  60. --searchbar-border-color: #aaa;
  61. --searchbar-bg: #b7b7b7;
  62. --searchbar-fg: #000;
  63. --searchbar-shadow-color: #aaa;
  64. --searchresults-header-fg: #666;
  65. --searchresults-border-color: #98a3ad;
  66. --searchresults-li-bg: #2b2b2f;
  67. --search-mark-bg: #355c7d;
  68. }
  69. .light {
  70. --bg: hsl(0, 0%, 100%);
  71. --fg: hsl(0, 0%, 0%);
  72. --sidebar-bg: #fafafa;
  73. --sidebar-fg: hsl(0, 0%, 0%);
  74. --sidebar-non-existant: #aaaaaa;
  75. --sidebar-active: #1f1fff;
  76. --sidebar-spacer: #f4f4f4;
  77. --scrollbar: #8F8F8F;
  78. --icons: #747474;
  79. --icons-hover: #000000;
  80. --links: #20609f;
  81. --inline-code-color: #301900;
  82. --theme-popup-bg: #fafafa;
  83. --theme-popup-border: #cccccc;
  84. --theme-hover: #e6e6e6;
  85. --quote-bg: hsl(197, 37%, 96%);
  86. --quote-border: hsl(197, 37%, 91%);
  87. --table-border-color: hsl(0, 0%, 95%);
  88. --table-header-bg: hsl(0, 0%, 80%);
  89. --table-alternate-bg: hsl(0, 0%, 97%);
  90. --searchbar-border-color: #aaa;
  91. --searchbar-bg: #fafafa;
  92. --searchbar-fg: #000;
  93. --searchbar-shadow-color: #aaa;
  94. --searchresults-header-fg: #666;
  95. --searchresults-border-color: #888;
  96. --searchresults-li-bg: #e4f2fe;
  97. --search-mark-bg: #a2cff5;
  98. }
  99. .navy {
  100. --bg: hsl(226, 23%, 11%);
  101. --fg: #bcbdd0;
  102. --sidebar-bg: #282d3f;
  103. --sidebar-fg: #c8c9db;
  104. --sidebar-non-existant: #505274;
  105. --sidebar-active: #2b79a2;
  106. --sidebar-spacer: #2d334f;
  107. --scrollbar: var(--sidebar-fg);
  108. --icons: #737480;
  109. --icons-hover: #b7b9cc;
  110. --links: #2b79a2;
  111. --inline-code-color: #c5c8c6;;
  112. --theme-popup-bg: #161923;
  113. --theme-popup-border: #737480;
  114. --theme-hover: #282e40;
  115. --quote-bg: hsl(226, 15%, 17%);
  116. --quote-border: hsl(226, 15%, 22%);
  117. --table-border-color: hsl(226, 23%, 16%);
  118. --table-header-bg: hsl(226, 23%, 31%);
  119. --table-alternate-bg: hsl(226, 23%, 14%);
  120. --searchbar-border-color: #aaa;
  121. --searchbar-bg: #aeaec6;
  122. --searchbar-fg: #000;
  123. --searchbar-shadow-color: #aaa;
  124. --searchresults-header-fg: #5f5f71;
  125. --searchresults-border-color: #5c5c68;
  126. --searchresults-li-bg: #242430;
  127. --search-mark-bg: #a2cff5;
  128. }
  129. .rust {
  130. --bg: hsl(60, 9%, 87%);
  131. --fg: #262625;
  132. --sidebar-bg: #3b2e2a;
  133. --sidebar-fg: #c8c9db;
  134. --sidebar-non-existant: #505254;
  135. --sidebar-active: #e69f67;
  136. --sidebar-spacer: #45373a;
  137. --scrollbar: var(--sidebar-fg);
  138. --icons: #737480;
  139. --icons-hover: #262625;
  140. --links: #2b79a2;
  141. --inline-code-color: #6e6b5e;
  142. --theme-popup-bg: #e1e1db;
  143. --theme-popup-border: #b38f6b;
  144. --theme-hover: #99908a;
  145. --quote-bg: hsl(60, 5%, 75%);
  146. --quote-border: hsl(60, 5%, 70%);
  147. --table-border-color: hsl(60, 9%, 82%);
  148. --table-header-bg: #b3a497;
  149. --table-alternate-bg: hsl(60, 9%, 84%);
  150. --searchbar-border-color: #aaa;
  151. --searchbar-bg: #fafafa;
  152. --searchbar-fg: #000;
  153. --searchbar-shadow-color: #aaa;
  154. --searchresults-header-fg: #666;
  155. --searchresults-border-color: #888;
  156. --searchresults-li-bg: #dec2a2;
  157. --search-mark-bg: #e69f67;
  158. }
  159. @media (prefers-color-scheme: dark) {
  160. .light.no-js {
  161. --bg: hsl(200, 7%, 8%);
  162. --fg: #98a3ad;
  163. --sidebar-bg: #292c2f;
  164. --sidebar-fg: #a1adb8;
  165. --sidebar-non-existant: #505254;
  166. --sidebar-active: #3473ad;
  167. --sidebar-spacer: #393939;
  168. --scrollbar: var(--sidebar-fg);
  169. --icons: #43484d;
  170. --icons-hover: #b3c0cc;
  171. --links: #2b79a2;
  172. --inline-code-color: #c5c8c6;;
  173. --theme-popup-bg: #141617;
  174. --theme-popup-border: #43484d;
  175. --theme-hover: #1f2124;
  176. --quote-bg: hsl(234, 21%, 18%);
  177. --quote-border: hsl(234, 21%, 23%);
  178. --table-border-color: hsl(200, 7%, 13%);
  179. --table-header-bg: hsl(200, 7%, 28%);
  180. --table-alternate-bg: hsl(200, 7%, 11%);
  181. --searchbar-border-color: #aaa;
  182. --searchbar-bg: #b7b7b7;
  183. --searchbar-fg: #000;
  184. --searchbar-shadow-color: #aaa;
  185. --searchresults-header-fg: #666;
  186. --searchresults-border-color: #98a3ad;
  187. --searchresults-li-bg: #2b2b2f;
  188. --search-mark-bg: #355c7d;
  189. }
  190. }