1
0

shui.css 4.4 KB

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