variables.css 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528
  1. /* Globals */
  2. :root {
  3. --sidebar-target-width: 300px;
  4. --sidebar-width: min(var(--sidebar-target-width), 80vw);
  5. --sidebar-resize-indicator-width: 8px;
  6. --sidebar-resize-indicator-space: 2px;
  7. --page-padding: 15px;
  8. --content-max-width: 750px;
  9. --menu-bar-height: 50px;
  10. --mono-font: "IBMPlexMono", monospace;
  11. --code-font-size: 0.875em; /* please adjust the ace font size accordingly in editor.js */
  12. --searchbar-margin-block-start: 5px;
  13. --menu-number-font: "IosevkaCustomLight", monospace;
  14. /* Header border colors */
  15. --h1-border-color: #00ffff;
  16. --h2-border-color: #00ff7f;
  17. --h3-border-color: #ff1493;
  18. --h4-border-color: #ff69b4;
  19. --h5-border-color: #bd90f8;
  20. /* Code background */
  21. --code-bg: #f0f0f0;
  22. }
  23. /* Themes */
  24. .ayu {
  25. --bg: hsl(210, 25%, 8%);
  26. --fg: #c5c5c5;
  27. --sidebar-bg: #14191f;
  28. --sidebar-fg: #c8c9db;
  29. --sidebar-non-existant: #5c6773;
  30. --sidebar-active: #ffb454;
  31. --sidebar-spacer: #2d334f;
  32. --scrollbar: var(--sidebar-fg);
  33. --icons: #737480;
  34. --icons-hover: #b7b9cc;
  35. --links: #0096cf;
  36. --inline-code-color: #ffb454;
  37. --theme-popup-bg: #14191f;
  38. --theme-popup-border: #5c6773;
  39. --theme-hover: #191f26;
  40. --quote-bg: hsl(226, 15%, 17%);
  41. --quote-border: hsl(226, 15%, 22%);
  42. --warning-border: #ff8e00;
  43. --table-border-color: hsl(210, 25%, 13%);
  44. --table-header-bg: hsl(210, 25%, 28%);
  45. --table-alternate-bg: hsl(210, 25%, 11%);
  46. --searchbar-border-color: #848484;
  47. --searchbar-bg: #424242;
  48. --searchbar-fg: #fff;
  49. --searchbar-shadow-color: #d4c89f;
  50. --searchresults-header-fg: #666;
  51. --searchresults-border-color: #888;
  52. --searchresults-li-bg: #252932;
  53. --search-mark-bg: #e3b171;
  54. --color-scheme: dark;
  55. /* Same as `--icons` */
  56. --copy-button-filter: invert(45%) sepia(6%) saturate(621%) hue-rotate(198deg) brightness(99%) contrast(85%);
  57. /* Same as `--sidebar-active` */
  58. --copy-button-filter-hover: invert(68%) sepia(55%) saturate(531%) hue-rotate(341deg) brightness(104%) contrast(101%);
  59. --footnote-highlight: #2668a6;
  60. --overlay-bg: rgba(33, 40, 48, 0.4);
  61. --blockquote-note-color: #74b9ff;
  62. --blockquote-tip-color: #09ca09;
  63. --blockquote-important-color: #d3abff;
  64. --blockquote-warning-color: #f0b72f;
  65. --blockquote-caution-color: #f21424;
  66. --sidebar-header-border-color: #c18639;
  67. /* Syntax highlighting blocks */
  68. --hljs-bg: #1e232b;
  69. --hljs-border: #2d334f;
  70. --hljs-inline-bg: #1e232b;
  71. --hljs-inline-border: #3d435f;
  72. --hljs-fg: #c5c5c5;
  73. }
  74. .coal {
  75. --bg: hsl(200, 7%, 8%);
  76. --fg: #98a3ad;
  77. --sidebar-bg: #292c2f;
  78. --sidebar-fg: #a1adb8;
  79. --sidebar-non-existant: #505254;
  80. --sidebar-active: #3473ad;
  81. --sidebar-spacer: #393939;
  82. --scrollbar: var(--sidebar-fg);
  83. --icons: #43484d;
  84. --icons-hover: #b3c0cc;
  85. --links: #2b79a2;
  86. --inline-code-color: #c5c8c6;
  87. --theme-popup-bg: #141617;
  88. --theme-popup-border: #43484d;
  89. --theme-hover: #1f2124;
  90. --quote-bg: hsl(234, 21%, 18%);
  91. --quote-border: hsl(234, 21%, 23%);
  92. --warning-border: #ff8e00;
  93. --table-border-color: hsl(200, 7%, 13%);
  94. --table-header-bg: hsl(200, 7%, 28%);
  95. --table-alternate-bg: hsl(200, 7%, 11%);
  96. --searchbar-border-color: #aaa;
  97. --searchbar-bg: #b7b7b7;
  98. --searchbar-fg: #000;
  99. --searchbar-shadow-color: #aaa;
  100. --searchresults-header-fg: #666;
  101. --searchresults-border-color: #98a3ad;
  102. --searchresults-li-bg: #2b2b2f;
  103. --search-mark-bg: #355c7d;
  104. --color-scheme: dark;
  105. /* Same as `--icons` */
  106. --copy-button-filter: invert(26%) sepia(8%) saturate(575%) hue-rotate(169deg) brightness(87%) contrast(82%);
  107. /* Same as `--sidebar-active` */
  108. --copy-button-filter-hover: invert(36%) sepia(70%) saturate(503%) hue-rotate(167deg) brightness(98%) contrast(89%);
  109. --footnote-highlight: #4079ae;
  110. --overlay-bg: rgba(33, 40, 48, 0.4);
  111. --blockquote-note-color: #4493f8;
  112. --blockquote-tip-color: #08ae08;
  113. --blockquote-important-color: #ab7df8;
  114. --blockquote-warning-color: #d29922;
  115. --blockquote-caution-color: #d91b29;
  116. --sidebar-header-border-color: #3473ad;
  117. /* Syntax highlighting blocks */
  118. --hljs-bg: #1a1d20;
  119. --hljs-border: #2a2e33;
  120. --hljs-inline-bg: #1a1d20;
  121. --hljs-inline-border: #3a3e44;
  122. --hljs-fg: #c5c8c6;
  123. }
  124. .light, html:not(.js) {
  125. --bg: hsl(0, 0%, 100%);
  126. --fg: hsl(0, 0%, 0%);
  127. --sidebar-bg: #fafafa;
  128. --sidebar-fg: hsl(0, 0%, 0%);
  129. --sidebar-non-existant: #aaaaaa;
  130. --sidebar-active: #1f1fff;
  131. --sidebar-spacer: #f4f4f4;
  132. --scrollbar: #8F8F8F;
  133. --icons: #747474;
  134. --icons-hover: #000000;
  135. --links: #20609f;
  136. --inline-code-color: #301900;
  137. --theme-popup-bg: #fafafa;
  138. --theme-popup-border: #cccccc;
  139. --theme-hover: #e6e6e6;
  140. --quote-bg: hsl(197, 37%, 96%);
  141. --quote-border: hsl(197, 37%, 91%);
  142. --warning-border: #ff8e00;
  143. --table-border-color: hsl(0, 0%, 95%);
  144. --table-header-bg: hsl(0, 0%, 80%);
  145. --table-alternate-bg: hsl(0, 0%, 97%);
  146. --searchbar-border-color: #aaa;
  147. --searchbar-bg: #fafafa;
  148. --searchbar-fg: #000;
  149. --searchbar-shadow-color: #aaa;
  150. --searchresults-header-fg: #666;
  151. --searchresults-border-color: #888;
  152. --searchresults-li-bg: #e4f2fe;
  153. --search-mark-bg: #a2cff5;
  154. --color-scheme: light;
  155. /* Same as `--icons` */
  156. --copy-button-filter: invert(45.49%);
  157. /* Same as `--sidebar-active` */
  158. --copy-button-filter-hover: invert(14%) sepia(93%) saturate(4250%) hue-rotate(243deg) brightness(99%) contrast(130%);
  159. --footnote-highlight: #7e7eff;
  160. --overlay-bg: rgba(200, 200, 205, 0.4);
  161. --blockquote-note-color: #0969da;
  162. --blockquote-tip-color: #008000;
  163. --blockquote-important-color: #8250df;
  164. --blockquote-warning-color: #9a6700;
  165. --blockquote-caution-color: #b52731;
  166. --sidebar-header-border-color: #6e6edb;
  167. /* Syntax highlighting blocks */
  168. --hljs-bg: #f6f7f6;
  169. --hljs-border: #e0e0e0;
  170. --hljs-inline-bg: #f0f0f0;
  171. --hljs-inline-border: #d0d0d0;
  172. --hljs-fg: #000000;
  173. }
  174. .navy {
  175. --bg: hsl(226, 23%, 11%);
  176. --fg: #bcbdd0;
  177. --sidebar-bg: #282d3f;
  178. --sidebar-fg: #c8c9db;
  179. --sidebar-non-existant: #505274;
  180. --sidebar-active: #2b79a2;
  181. --sidebar-spacer: #2d334f;
  182. --scrollbar: var(--sidebar-fg);
  183. --icons: #737480;
  184. --icons-hover: #b7b9cc;
  185. --links: #2b79a2;
  186. --inline-code-color: #c5c8c6;
  187. --theme-popup-bg: #161923;
  188. --theme-popup-border: #737480;
  189. --theme-hover: #282e40;
  190. --quote-bg: hsl(226, 15%, 17%);
  191. --quote-border: hsl(226, 15%, 22%);
  192. --warning-border: #ff8e00;
  193. --table-border-color: hsl(226, 23%, 16%);
  194. --table-header-bg: hsl(226, 23%, 31%);
  195. --table-alternate-bg: hsl(226, 23%, 14%);
  196. --searchbar-border-color: #aaa;
  197. --searchbar-bg: #aeaec6;
  198. --searchbar-fg: #000;
  199. --searchbar-shadow-color: #aaa;
  200. --searchresults-header-fg: #5f5f71;
  201. --searchresults-border-color: #5c5c68;
  202. --searchresults-li-bg: #242430;
  203. --search-mark-bg: #a2cff5;
  204. --color-scheme: dark;
  205. /* Same as `--icons` */
  206. --copy-button-filter: invert(51%) sepia(10%) saturate(393%) hue-rotate(198deg) brightness(86%) contrast(87%);
  207. /* Same as `--sidebar-active` */
  208. --copy-button-filter-hover: invert(46%) sepia(20%) saturate(1537%) hue-rotate(156deg) brightness(85%) contrast(90%);
  209. --footnote-highlight: #4079ae;
  210. --overlay-bg: rgba(33, 40, 48, 0.4);
  211. --blockquote-note-color: #4493f8;
  212. --blockquote-tip-color: #09ca09;
  213. --blockquote-important-color: #ab7df8;
  214. --blockquote-warning-color: #d29922;
  215. --blockquote-caution-color: #f21424;
  216. --sidebar-header-border-color: #2f6ab5;
  217. /* Syntax highlighting blocks */
  218. --hljs-bg: #1a1f29;
  219. --hljs-border: #2a3040;
  220. --hljs-inline-bg: #1a1f29;
  221. --hljs-inline-border: #3a4050;
  222. --hljs-fg: #c5c8c6;
  223. }
  224. .rust {
  225. --bg: hsl(60, 9%, 87%);
  226. --fg: #262625;
  227. --sidebar-bg: #3b2e2a;
  228. --sidebar-fg: #c8c9db;
  229. --sidebar-non-existant: #505254;
  230. --sidebar-active: #e69f67;
  231. --sidebar-spacer: #45373a;
  232. --scrollbar: var(--sidebar-fg);
  233. --icons: #737480;
  234. --icons-hover: #262625;
  235. --links: #2b79a2;
  236. --inline-code-color: #6e6b5e;
  237. --theme-popup-bg: #e1e1db;
  238. --theme-popup-border: #b38f6b;
  239. --theme-hover: #99908a;
  240. --quote-bg: hsl(60, 5%, 75%);
  241. --quote-border: hsl(60, 5%, 70%);
  242. --warning-border: #ff8e00;
  243. --table-border-color: hsl(60, 9%, 82%);
  244. --table-header-bg: #b3a497;
  245. --table-alternate-bg: hsl(60, 9%, 84%);
  246. --searchbar-border-color: #aaa;
  247. --searchbar-bg: #fafafa;
  248. --searchbar-fg: #000;
  249. --searchbar-shadow-color: #aaa;
  250. --searchresults-header-fg: #666;
  251. --searchresults-border-color: #888;
  252. --searchresults-li-bg: #dec2a2;
  253. --search-mark-bg: #e69f67;
  254. /* Same as `--icons` */
  255. --copy-button-filter: invert(51%) sepia(10%) saturate(393%) hue-rotate(198deg) brightness(86%) contrast(87%);
  256. /* Same as `--sidebar-active` */
  257. --copy-button-filter-hover: invert(77%) sepia(16%) saturate(1798%) hue-rotate(328deg) brightness(98%) contrast(83%);
  258. --footnote-highlight: #d3a17a;
  259. --overlay-bg: rgba(150, 150, 150, 0.25);
  260. --blockquote-note-color: #023b95;
  261. --blockquote-tip-color: #007700;
  262. --blockquote-important-color: #8250df;
  263. --blockquote-warning-color: #603700;
  264. --blockquote-caution-color: #aa1721;
  265. --sidebar-header-border-color: #8c391f;
  266. /* Syntax highlighting blocks */
  267. --hljs-bg: #e8e4df;
  268. --hljs-border: #d0c8c0;
  269. --hljs-inline-bg: #e0dcd7;
  270. --hljs-inline-border: #c0b8b0;
  271. --hljs-fg: #262625;
  272. }
  273. .darkforest {
  274. /* Base Colors - Black background */
  275. --bg: #0a0a0a;
  276. --fg: #e0e0e0;
  277. /* Sidebar Colors */
  278. --sidebar-bg: #0a0a0a;
  279. --sidebar-fg: #dbdcf1;
  280. --sidebar-non-existant: #5d6c6e;
  281. --sidebar-active: #00ffff;
  282. --sidebar-spacer: #1a1a1a;
  283. --sidebar-separator: none;
  284. --scrollbar: var(--sidebar-fg);
  285. /* Icons */
  286. --icons: #50577b;
  287. --icons-hover: #ff69b4;
  288. /* Links */
  289. --links: #00ffff;
  290. --links-hover: #bd90f8;
  291. /* Inline Code */
  292. --inline-code-color: #57a2ce;
  293. /* Theme Popup */
  294. --theme-popup-bg: #0a0a0a;
  295. --theme-popup-border: #2a2a2a;
  296. --theme-hover: #1a1a1a;
  297. /* Blockquotes */
  298. --quote-bg: #051111;
  299. --quote-border: #361016;
  300. /* Warning Border */
  301. --warning-border: #ff4500;
  302. /* Tables - Deep Greens */
  303. --table-border-color: #1e4242;
  304. --table-header-bg: #070935;
  305. --table-alternate-bg: none;
  306. /* Search Bar */
  307. --searchbar-border-color: #2a2a2a;
  308. --searchbar-bg: #0a0a0a;
  309. --searchbar-fg: #e0e0e0;
  310. --searchbar-shadow-color: #00ffff;
  311. --searchresults-header-fg: #888888;
  312. --searchresults-border-color: #3a3a3a;
  313. --searchresults-li-bg: #0f1a15;
  314. --search-mark-bg: #ff69b4;
  315. --color-scheme: dark;
  316. /* Copy Button Filters */
  317. --copy-button-filter: invert(65%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(50%); /* Gray */
  318. --copy-button-filter-hover: invert(82%) sepia(84%) saturate(4585%) hue-rotate(300deg) brightness(101%) contrast(101%); /* Hot Pink */
  319. --footnote-highlight: #00ced1;
  320. --overlay-bg: rgba(0, 20, 10, 0.4);
  321. /* Callout Colors */
  322. --blockquote-note-color: #00ffff;
  323. --blockquote-tip-color: #00ff7f;
  324. --blockquote-important-color: #ff1493;
  325. --blockquote-warning-color: #ff69b4;
  326. --blockquote-caution-color: #dc143c;
  327. --sidebar-header-border-color: #00ced1;
  328. /* Header border colors */
  329. --h1-border-color: #00ffff;
  330. --h2-border-color: #6a9eff;
  331. --h3-border-color: #c4003b;
  332. --h4-border-color: #ff69b4;
  333. --h5-border-color: #00ff7f;
  334. /* Navigation gradients */
  335. --nav-prev-gradient: linear-gradient(270deg,rgba(10, 10, 10, 0) 83%, rgba(38, 0, 16, 1) 98%);
  336. --nav-next-gradient: linear-gradient(90deg,rgba(10, 10, 10, 0) 37%, rgba(38, 0, 16, 1) 98%);
  337. /* Syntax highlighting blocks */
  338. --hljs-bg: #051313;
  339. --hljs-border: #41121c;
  340. --hljs-inline-bg: #0d1414;
  341. --hljs-inline-border: #41121c;
  342. --hljs-fg: #e0e0e0;
  343. }
  344. @media (prefers-color-scheme: dark) {
  345. html:not(.js) {
  346. --bg: hsl(200, 7%, 8%);
  347. --fg: #98a3ad;
  348. --sidebar-bg: #292c2f;
  349. --sidebar-fg: #a1adb8;
  350. --sidebar-non-existant: #505254;
  351. --sidebar-active: #3473ad;
  352. --sidebar-spacer: #393939;
  353. --scrollbar: var(--sidebar-fg);
  354. --icons: #43484d;
  355. --icons-hover: #b3c0cc;
  356. --links: #2b79a2;
  357. --inline-code-color: #c5c8c6;
  358. --theme-popup-bg: #141617;
  359. --theme-popup-border: #43484d;
  360. --theme-hover: #1f2124;
  361. --quote-bg: hsl(234, 21%, 18%);
  362. --quote-border: hsl(234, 21%, 23%);
  363. --warning-border: #ff8e00;
  364. --table-border-color: hsl(200, 7%, 13%);
  365. --table-header-bg: hsl(200, 7%, 28%);
  366. --table-alternate-bg: hsl(200, 7%, 11%);
  367. --searchbar-border-color: #aaa;
  368. --searchbar-bg: #b7b7b7;
  369. --searchbar-fg: #000;
  370. --searchbar-shadow-color: #aaa;
  371. --searchresults-header-fg: #666;
  372. --searchresults-border-color: #98a3ad;
  373. --searchresults-li-bg: #2b2b2f;
  374. --search-mark-bg: #355c7d;
  375. --color-scheme: dark;
  376. /* Same as `--icons` */
  377. --copy-button-filter: invert(26%) sepia(8%) saturate(575%) hue-rotate(169deg) brightness(87%) contrast(82%);
  378. /* Same as `--sidebar-active` */
  379. --copy-button-filter-hover: invert(36%) sepia(70%) saturate(503%) hue-rotate(167deg) brightness(98%) contrast(89%);
  380. --footnote-highlight: #4079ae;
  381. --overlay-bg: rgba(33, 40, 48, 0.4);
  382. --blockquote-note-color: #4493f8;
  383. --blockquote-tip-color: #08ae08;
  384. --blockquote-important-color: #ab7df8;
  385. --blockquote-warning-color: #d29922;
  386. --blockquote-caution-color: #d91b29;
  387. --sidebar-header-border-color: #3473ad;
  388. /* Syntax highlighting blocks */
  389. --hljs-bg: #1a1d20;
  390. --hljs-border: #2a2e33;
  391. --hljs-inline-bg: #1a1d20;
  392. --hljs-inline-border: #3a3e44;
  393. --hljs-fg: #c5c8c6;
  394. }
  395. }