shui.css 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  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. --ls-block-bullet-color: var(--rx-gray-08);
  62. --ls-block-bullet-active-color: var(--rx-gray-12);
  63. ::selection {
  64. @apply bg-primary/20;
  65. }
  66. #ui__ac-inner {
  67. }
  68. .cp__cmdk {
  69. --lx-gray-07: var(--rx-gray-07);
  70. }
  71. .ui__toggle {
  72. &-background-off {
  73. @apply bg-gray-08;
  74. .switcher {
  75. @apply bg-gray-10;
  76. }
  77. }
  78. &-background-on {
  79. .switcher {
  80. @apply bg-gray-03;
  81. }
  82. }
  83. }
  84. .tl-container {
  85. --ls-primary-background-color: hsl(var(--background));
  86. --ls-secondary-background-color: var(--rx-gray-01);
  87. --ls-tertiary-background-color: var(--rx-gray-03);
  88. --ls-quaternary-background-color: var(--rx-gray-05);
  89. }
  90. }
  91. }
  92. html[data-theme=light] {
  93. &[data-color=logseq] {
  94. .references-blocks-item {
  95. --lx-bg-override: var(--rx-gray-03-alpha);
  96. }
  97. }
  98. .extensions__pdf-container {
  99. --lx-pdf-container-dark-bg: var(--lx-gray-11, #042f3c);
  100. }
  101. }
  102. html[data-theme=dark] {
  103. background-color: #161616;
  104. &[data-color=logseq] {
  105. @apply bg-[#002b36];
  106. .ui__modal-panel {
  107. @apply border-accent-01;
  108. }
  109. .tippy-tooltip {
  110. @apply border-accent-02;
  111. }
  112. .references-blocks-item {
  113. background-color: var(--lx-gray-03, var(--ls-secondary-background-color));
  114. }
  115. .cp__right-sidebar-inner {
  116. .references-blocks-item {
  117. background-color: var(--lx-gray-04, var(--ls-tertiary-background-color));
  118. }
  119. }
  120. .cp__themes-installed {
  121. .it.is-active, .it:hover {
  122. @apply bg-accent-01;
  123. }
  124. }
  125. .ui__button {
  126. &.as-outline {
  127. --accent: 192 100% 12%;
  128. }
  129. }
  130. .ui__dropdown-menu-content,
  131. .ui__context-menu-content,
  132. .ui__select-content {
  133. --accent: 190 100% 15%;
  134. --muted: 192 100% 13%;
  135. }
  136. .ui__button {
  137. &.as-ghost {
  138. @apply hover:bg-accent-01;
  139. }
  140. }
  141. .menu-separator {
  142. @apply opacity-20;
  143. }
  144. .ui__calendar {
  145. --accent: 196 100% 15%;
  146. }
  147. .rc-datepicker {
  148. --accent: 200 97% 37%;
  149. }
  150. .cp__cmdk {
  151. .border-gray-06,
  152. .border-gray-07 {
  153. border-color: var(--ls-border-color, var(--lx-gray-06));
  154. opacity: .6;
  155. }
  156. > .hints {
  157. @apply border-accent-01 bg-gray-02;
  158. }
  159. }
  160. .tl-button {
  161. &:hover {
  162. @apply bg-accent-02;
  163. }
  164. }
  165. .cp__header {
  166. > .r > div:not(.ui__dropdown-trigger) a.button, button.button {
  167. @apply opacity-60 hover:opacity-90;
  168. }
  169. }
  170. .form-input {
  171. @apply border-accent-01;
  172. }
  173. }
  174. }
  175. .ui__button-shortcut-key {
  176. @apply text-xs font-normal h-5 w-5 flex items-center justify-center rounded bg-gray-06-alpha;
  177. &:first-of-type {
  178. @apply ml-2;
  179. }
  180. }
  181. .ui__list-item-highlighted-span {
  182. background-color: or(--lx-accent-06, --color-level-4);
  183. }
  184. .dark .ui__list-item-highlighted-span {
  185. background-color: or(--lx-accent-08-alpha, --color-level-4);
  186. }