shui.css 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. html * {
  2. border-color: hsl(var(--border));
  3. }
  4. html {
  5. .ui__dropdown-menu-content,
  6. .ui__context-menu-content,
  7. .ui__select-content {
  8. --accent: var(--rx-gray-04-hsl);
  9. --accent-foreground: var(--rx-gray-12-hsl);
  10. }
  11. &:not([data-color=logseq]) {
  12. }
  13. &[data-color=logseq] {
  14. .references-blocks-item {
  15. --lx-bg-override: var(--rx-gray-03-alpha);
  16. }
  17. .block-children-left-border:hover {
  18. --ls-block-left-color: var(--rx-logseq-11);
  19. }
  20. }
  21. .ui__calendar {
  22. --accent: var(--rx-gray-04-hsl);
  23. --accent-foreground: var(--rx-gray-12-hsl);
  24. }
  25. }
  26. html[data-theme=light] {
  27. --accent: var(--rx-gray-04-hsl);
  28. --accent-foreground: var(--rx-gray-12-hsl);
  29. --input: var(--rx-gray-03-hsl);
  30. &[data-color=logseq] {
  31. --primary: 200 97% 37%;
  32. --primary-foreground: 255 92% 100%;
  33. --accent: 200 97% 37%;
  34. --accent-foreground: 255 92% 100%;
  35. --ring: 200 97% 37%;
  36. .references-blocks-item {
  37. --lx-bg-override: var(--rx-gray-03-alpha);
  38. }
  39. }
  40. .extensions__pdf-container {
  41. --lx-pdf-container-dark-bg: var(--lx-gray-11, #042f3c);
  42. }
  43. }
  44. html[data-theme=dark] {
  45. --primary-foreground: 255 92% 100%;
  46. --background: 0 0% 11%;
  47. --foreground: 0 0% 95%;
  48. --card: 0 0% 11%;
  49. --card-foreground: 0 0% 95%;
  50. --secondary: 0 0% 20%;
  51. --secondary-foreground: 0 0% 98%;
  52. --border: 0 0% 16%;
  53. --muted: 0 0% 15%;
  54. --popover: 0 0% 7%;
  55. --popover-foreground: 0 0 95%;
  56. --input: 0 0% 25%;
  57. &[data-color=logseq] {
  58. --background: 192 100% 11%;
  59. --foreground: 0 0% 95%;
  60. --accent: 192 80% 10%;
  61. --accent-foreground: 255 92% 100%;
  62. --primary: 200 97% 37%;
  63. --primary-foreground: 255 92% 100%;
  64. --ring: 200 97% 37%;
  65. --secondary: 203 50% 20%;
  66. --secondary-foreground: 0 0% 98%;
  67. --muted: 192 100% 13%;
  68. --border: 192 100% 16%;
  69. --card: 192 100% 10%;
  70. --card-foreground: 0 0% 95%;
  71. --popover: 192 100% 11%;
  72. --input: 203 35% 25%;
  73. .ui__button {
  74. &.as-outline {
  75. --accent: 192 100% 12%;
  76. }
  77. }
  78. .ui__dropdown-menu-content,
  79. .ui__context-menu-content,
  80. .ui__select-content {
  81. --accent: 190 100% 15%;
  82. }
  83. .ui__calendar {
  84. --accent: 196 100% 15%;
  85. }
  86. .rc-datepicker {
  87. --accent: 200 97% 37%;
  88. }
  89. }
  90. }
  91. .ui__button-shortcut-key {
  92. @apply text-xs font-normal h-5 w-5 flex items-center justify-center rounded bg-gray-06-alpha;
  93. &:first-of-type {
  94. @apply ml-2;
  95. }
  96. }
  97. .ui__list-item-highlighted-span {
  98. background-color: or(--lx-accent-06, --color-level-4);
  99. }
  100. .dark .ui__list-item-highlighted-span {
  101. background-color: or(--lx-accent-08-alpha, --color-level-4);
  102. }