variables.css 15 KB

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