var.css 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. :root {
  2. --c-brand: #409eff;
  3. --c-brand-light: #66b1ff;
  4. --c-white-dark: #f8f8f8;
  5. --c-black: #111827;
  6. --c-black-light: #161f32;
  7. --c-black-lighter: #262a44;
  8. --c-text-dark-1: #d9e6eb;
  9. --c-text-dark-2: #c4dde6;
  10. --c-text-dark-3: #abc4cc;
  11. --c-brand-text: var(--c-white);
  12. --c-bg-accent: var(--c-white-dark);
  13. --code-bg-color: var(--c-white-dark);
  14. --code-inline-bg-color: var(--c-white-dark);
  15. --code-font-family: 'dm', source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
  16. --code-font-size: 16px;
  17. --slug-width: 10rem;
  18. --header-height: 3.6rem;
  19. --sidebar-width: 16.4rem;
  20. }
  21. html:not(.light):root {
  22. --c-text: var(--c-text-dark-1);
  23. --c-text-light: var(--c-text-dark-2);
  24. --c-text-lighter: var(--c-text-dark-3);
  25. --c-divider: var(--c-divider-dark);
  26. --c-bg: var(--c-black);
  27. --c-bg-accent: var(--c-black-light);
  28. --code-bg-color: var(--c-black-light);
  29. --code-inline-bg-color: var(--c-black-light);
  30. }
  31. html:not(.light) .DocSearch {
  32. --docsearch-text-color: var(--c-white-dark);
  33. --docsearch-container-background: rgba(9, 10, 17, 0.8);
  34. --docsearch-modal-background: var(--c-black);
  35. --docsearch-modal-shadow: inset 1px 1px 0 0 #2c2e40, 0 3px 8px 0 #000309;
  36. --docsearch-searchbox-background: var(--c-black-lighter);
  37. --docsearch-searchbox-focus-background: var(--c-black-light);
  38. --docsearch-hit-color: var(--c-text-dark-1);
  39. --docsearch-hit-active-color: var(--c-brand-text);
  40. --docsearch-hit-shadow: none;
  41. --docsearch-hit-background: var(--c-black-light);
  42. --docsearch-key-gradient: linear-gradient(-26.5deg, #565872, #31355b);
  43. --docsearch-key-shadow: inset 0 -2px 0 0 #282d55, inset 0 0 1px 1px #51577d,
  44. 0 2px 2px 0 rgba(3, 4, 9, 0.3);
  45. --docsearch-footer-background: var(--c-black-light);
  46. --docsearch-footer-shadow: inset 0 1px 0 0 rgba(73, 76, 106, 0.5), 0 -4px 8px 0 rgba(0, 0, 0, 0.2);
  47. --docsearch-logo-color: var(--c-white-dark);
  48. --docsearch-muted-color: var(--c-text-dark-1);
  49. }