shui.css 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. html * {
  2. border-color: hsl(var(--border));
  3. }
  4. html[data-theme=light] {
  5. --accent: var(--rx-gray-12-hsl);
  6. --accent-foreground: var(--rx-gray-02-hsl);
  7. --input: var(--rx-gray-03-hsl);
  8. --secondary: 240 4.8% 95.9%;
  9. }
  10. html[data-theme=dark] {
  11. --accent: var(--rx-gray-12-hsl);
  12. --accent-foreground: var(--rx-gray-02-hsl);
  13. --primary-foreground: 0 0% 22%;
  14. --background: 0 0% 11%;
  15. --foreground: 0 0% 95%;
  16. --card: 0 0% 11%;
  17. --card-foreground: 0 0% 95%;
  18. --secondary: 0 0% 20%;
  19. --secondary-foreground: 0 0% 98%;
  20. --border: 0 0% 16%;
  21. --muted: 0 0% 15%;
  22. --popover: 0 0% 7%;
  23. --popover-foreground: 0 0 95%;
  24. --input: 0 0% 25%;
  25. }
  26. html {
  27. .ui__dropdown-menu-content,
  28. .ui__context-menu-content,
  29. .ui__select-content {
  30. --accent: var(--rx-gray-04-hsl);
  31. --accent-foreground: var(--rx-gray-12-hsl);
  32. --muted: var(--rx-gray-05-hsl);
  33. }
  34. .ui__calendar {
  35. --accent: var(--rx-gray-04-hsl);
  36. --accent-foreground: var(--rx-gray-12-hsl);
  37. }
  38. &:not([data-color=logseq]) {
  39. .ui__dropdown-menu-item,
  40. div[data-radix-popper-content-wrapper] div[role=menuitem] {
  41. &:focus, &:hover {
  42. background-color: var(--lx-gray-04, hsl(var(--accent)));
  43. }
  44. }
  45. div[data-radix-popper-content-wrapper] div[role=menu],
  46. .menu-links-wrapper,
  47. .menu-links-outer,
  48. .absolute-modal[data-modal-name] {
  49. background-color: var(--lx-popover-bg, var(--lx-gray-01, hsl(var(--popover))));
  50. }
  51. }
  52. &[data-color=logseq] {
  53. .references-blocks-item {
  54. --lx-bg-override: var(--rx-gray-03-alpha);
  55. }
  56. .block-children-left-border:hover {
  57. --ls-block-left-color: var(--rx-logseq-11);
  58. }
  59. }
  60. &[data-color=none] {
  61. ::selection {
  62. @apply bg-primary/20;
  63. }
  64. #ui__ac-inner {}
  65. .cp__cmdk {
  66. --lx-gray-07: var(--rx-gray-07);
  67. }
  68. .ui__toggle {
  69. &-background-off {
  70. @apply bg-gray-08;
  71. .switcher {
  72. @apply bg-gray-10;
  73. }
  74. }
  75. &-background-on {
  76. .switcher {
  77. @apply bg-gray-03;
  78. }
  79. }
  80. }
  81. .tl-container {
  82. --ls-primary-background-color: hsl(var(--background));
  83. --ls-secondary-background-color: var(--rx-gray-01);
  84. --ls-tertiary-background-color: var(--rx-gray-03);
  85. --ls-quaternary-background-color: var(--rx-gray-05);
  86. }
  87. }
  88. }
  89. html[data-theme=light] {
  90. &[data-color=logseq] {
  91. .references-blocks-item {
  92. --lx-bg-override: var(--rx-gray-03-alpha);
  93. }
  94. }
  95. .extensions__pdf-container {
  96. --lx-pdf-container-dark-bg: var(--lx-gray-11, #042f3c);
  97. }
  98. }
  99. html[data-theme=dark] {
  100. background-color: #161616;
  101. &[data-color=logseq] {
  102. @apply bg-[#002b36];
  103. .ui__modal-panel {
  104. @apply border-accent-01;
  105. }
  106. .tippy-tooltip {
  107. @apply border-accent-02;
  108. }
  109. .references-blocks-item {
  110. background-color: var(--lx-gray-03, var(--ls-secondary-background-color));
  111. }
  112. .cp__right-sidebar-inner {
  113. .references-blocks-item {
  114. background-color: var(--lx-gray-04, var(--ls-tertiary-background-color));
  115. }
  116. }
  117. .cp__themes-installed {
  118. .it.is-active, .it:hover {
  119. @apply bg-accent-01;
  120. }
  121. }
  122. .ui__button {
  123. &.as-outline {
  124. --accent: 192 100% 12%;
  125. }
  126. }
  127. .ui__dropdown-menu-content,
  128. .ui__context-menu-content,
  129. .ui__select-content {
  130. --accent: 190 100% 15%;
  131. --muted: 192 100% 13%;
  132. }
  133. .menu-separator {
  134. @apply opacity-20;
  135. }
  136. .ui__calendar {
  137. --accent: 196 100% 15%;
  138. }
  139. .rc-datepicker {
  140. --accent: 200 97% 37%;
  141. }
  142. .cp__cmdk {
  143. .bg-gray-02 {
  144. background-color: var(--ls-secondary-background-color, var(--lx-gray-02));
  145. }
  146. .border-gray-06, .border-gray-07 {
  147. border-color: var(--ls-border-color, var(--lx-gray-06));
  148. opacity: .6;
  149. }
  150. }
  151. .tl-button {
  152. &:hover {
  153. @apply bg-accent-02;
  154. }
  155. }
  156. }
  157. }
  158. .ui__button-shortcut-key {
  159. @apply text-xs font-normal h-5 w-5 flex items-center justify-center rounded bg-gray-06-alpha;
  160. &:first-of-type {
  161. @apply ml-2;
  162. }
  163. }
  164. .ui__list-item-highlighted-span {
  165. background-color: or(--lx-accent-06, --color-level-4);
  166. }
  167. .dark .ui__list-item-highlighted-span {
  168. background-color: or(--lx-accent-08-alpha, --color-level-4);
  169. }