theme.scss 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. @import "open-color/open-color.scss";
  2. @import "./variables.module.scss";
  3. .excalidraw {
  4. --theme-filter: none;
  5. --button-destructive-bg-color: #{$oc-red-1};
  6. --button-destructive-color: #{$oc-red-9};
  7. --button-gray-1: #{$oc-gray-2};
  8. --button-gray-2: #{$oc-gray-4};
  9. --button-gray-3: #{$oc-gray-5};
  10. --button-special-active-bg-color: #{$oc-green-0};
  11. --dialog-border-color: #{$oc-gray-6};
  12. --dropdown-icon: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="292.4" height="292.4" viewBox="0 0 292 292"><path d="M287 197L159 69c-4-3-8-5-13-5s-9 2-13 5L5 197c-3 4-5 8-5 13s2 9 5 13c4 4 8 5 13 5h256c5 0 9-1 13-5s5-8 5-13-1-9-5-13z"/></svg>');
  13. --focus-highlight-color: #{$oc-blue-2};
  14. --icon-fill-color: #{$oc-gray-9};
  15. --icon-green-fill-color: #{$oc-green-9};
  16. --default-bg-color: #{$oc-white};
  17. --input-bg-color: #{$oc-white};
  18. --input-border-color: #{$oc-gray-4};
  19. --input-hover-bg-color: #{$oc-gray-1};
  20. --input-label-color: #{$oc-gray-7};
  21. --island-bg-color: rgba(255, 255, 255, 0.96);
  22. --keybinding-color: #{$oc-gray-5};
  23. --link-color: #{$oc-blue-7};
  24. --overlay-bg-color: #{transparentize($oc-white, 0.12)};
  25. --popup-bg-color: #{$oc-white};
  26. --popup-secondary-bg-color: #{$oc-gray-1};
  27. --popup-text-color: #{$oc-black};
  28. --popup-text-inverted-color: #{$oc-white};
  29. --sab: env(safe-area-inset-bottom);
  30. --sal: env(safe-area-inset-left);
  31. --sar: env(safe-area-inset-right);
  32. --sat: env(safe-area-inset-top);
  33. --select-highlight-color: #{$oc-blue-5};
  34. --shadow-island: 0 0 0 1px rgba(0, 0, 0, 0.01), 1px 1px 5px rgb(0 0 0 / 12%);
  35. --space-factor: 0.25rem;
  36. --text-primary-color: #{$oc-gray-8};
  37. --color-primary: #6965db;
  38. --color-primary-chubb: #625ee0; // to offset Chubb illusion
  39. --color-primary-darker: #5b57d1;
  40. --color-primary-darkest: #4a47b1;
  41. --color-primary-light: #e2e1fc;
  42. --border-radius-md: 0.375rem;
  43. --border-radius-lg: 0.5rem;
  44. &.theme--dark {
  45. background: $oc-black;
  46. &.theme--dark-background-none {
  47. background: none;
  48. }
  49. }
  50. &.theme--dark {
  51. --theme-filter: #{$theme-filter};
  52. --button-destructive-bg-color: #5a0000;
  53. --button-destructive-color: #{$oc-red-3};
  54. --button-gray-1: #363636;
  55. --button-gray-2: #272727;
  56. --button-gray-3: #222;
  57. --button-special-active-bg-color: #204624;
  58. --dialog-border-color: #{$oc-gray-9};
  59. --dropdown-icon: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="292.4" height="292.4" viewBox="0 0 292 292"><path fill="%23ced4da" d="M287 197L159 69c-4-3-8-5-13-5s-9 2-13 5L5 197c-3 4-5 8-5 13s2 9 5 13c4 4 8 5 13 5h256c5 0 9-1 13-5s5-8 5-13-1-9-5-13z"/></svg>');
  60. --focus-highlight-color: #{$oc-blue-6};
  61. --icon-fill-color: #{$oc-gray-4};
  62. --icon-green-fill-color: #{$oc-green-4};
  63. --default-bg-color: #121212;
  64. --input-bg-color: #121212;
  65. --input-border-color: #2e2e2e;
  66. --input-hover-bg-color: #181818;
  67. --input-label-color: #{$oc-gray-2};
  68. --island-bg-color: rgba(30, 30, 30, 0.98);
  69. --keybinding-color: #{$oc-gray-6};
  70. --link-color: #{$oc-blue-4};
  71. --overlay-bg-color: #{transparentize($oc-gray-8, 0.88)};
  72. --popup-bg-color: #2c2c2c;
  73. --popup-secondary-bg-color: #222;
  74. --popup-text-color: #{$oc-gray-4};
  75. --popup-text-inverted-color: #2c2c2c;
  76. --select-highlight-color: #{$oc-blue-4};
  77. --shadow-island: 1px 1px 5px #{transparentize($oc-black, 0.7)};
  78. --text-primary-color: #{$oc-gray-4};
  79. --color-primary: #5650f0;
  80. --color-primary-chubb: #726dff; // to offset Chubb illusion
  81. --color-primary-darker: #4b46d8;
  82. --color-primary-darkest: #3e39be;
  83. --color-primary-light: #3f3d64;
  84. }
  85. }