theme.scss 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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-black};
  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 1px 5px #{transparentize($oc-black, 0.85)};
  35. --space-factor: 0.25rem;
  36. --text-primary-color: #{$oc-gray-8};
  37. &.theme--dark {
  38. background: $oc-black;
  39. &.theme--dark-background-none {
  40. background: none;
  41. }
  42. }
  43. &.theme--dark {
  44. --theme-filter: #{$theme-filter};
  45. --button-destructive-bg-color: #5a0000;
  46. --button-destructive-color: #{$oc-red-3};
  47. --button-gray-1: #363636;
  48. --button-gray-2: #272727;
  49. --button-gray-3: #222;
  50. --button-special-active-bg-color: #204624;
  51. --dialog-border-color: #{$oc-gray-9};
  52. --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>');
  53. --focus-highlight-color: #{$oc-blue-6};
  54. --icon-fill-color: #{$oc-gray-4};
  55. --icon-green-fill-color: #{$oc-green-4};
  56. --default-bg-color: #121212;
  57. --input-bg-color: #121212;
  58. --input-border-color: #2e2e2e;
  59. --input-hover-bg-color: #181818;
  60. --input-label-color: #{$oc-gray-2};
  61. --island-bg-color: rgba(30, 30, 30, 0.98);
  62. --keybinding-color: #{$oc-gray-6};
  63. --link-color: #{$oc-blue-4};
  64. --overlay-bg-color: #{transparentize($oc-gray-8, 0.88)};
  65. --popup-bg-color: #2c2c2c;
  66. --popup-secondary-bg-color: #222;
  67. --popup-text-color: #{$oc-gray-4};
  68. --popup-text-inverted-color: #2c2c2c;
  69. --select-highlight-color: #{$oc-blue-4};
  70. --shadow-island: 0 1px 5px #{transparentize($oc-black, 0.7)};
  71. --text-primary-color: #{$oc-gray-4};
  72. }
  73. }