index.css 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. @import "tailwindcss";
  2. :root {
  3. interpolate-size: allow-keywords;
  4. }
  5. @layer components {
  6. [data-popper-positioner] {
  7. pointer-events: none;
  8. }
  9. body {
  10. line-height: 1;
  11. }
  12. ::selection {
  13. background-color: color-mix(in srgb, var(--color-primary) 33%, transparent);
  14. /* background-color: var(--color-primary); */
  15. /* color: var(--color-background); */
  16. }
  17. ::-webkit-scrollbar-track {
  18. background: var(--theme-background-panel);
  19. }
  20. ::-webkit-scrollbar-thumb {
  21. background-color: var(--theme-border-subtle);
  22. border-radius: 6px;
  23. }
  24. * {
  25. scrollbar-color: var(--theme-border-subtle) var(--theme-background-panel);
  26. }
  27. .prose h1 {
  28. color: var(--color-text);
  29. font-size: var(--text-sm);
  30. line-height: var(--text-sm--line-height);
  31. margin-bottom: calc(var(--spacing) * 3);
  32. }
  33. .prose h2 {
  34. color: var(--color-text);
  35. font-size: var(--text-sm);
  36. line-height: var(--text-sm--line-height);
  37. margin-bottom: calc(var(--spacing) * 3);
  38. }
  39. .prose h3 {
  40. color: var(--color-text);
  41. font-size: var(--text-xs);
  42. line-height: var(--text-xs--line-height);
  43. margin-bottom: calc(var(--spacing) * 2);
  44. }
  45. .prose h4 {
  46. color: var(--color-text);
  47. font-size: var(--text-xs);
  48. line-height: var(--text-xs--line-height);
  49. margin-bottom: calc(var(--spacing) * 2);
  50. }
  51. .prose h5 {
  52. color: var(--color-text);
  53. font-size: var(--text-xs);
  54. line-height: var(--text-xs--line-height);
  55. margin-bottom: calc(var(--spacing) * 2);
  56. }
  57. .prose h6 {
  58. color: var(--color-text);
  59. font-size: var(--text-xs);
  60. line-height: var(--text-xs--line-height);
  61. margin-bottom: calc(var(--spacing) * 2);
  62. }
  63. .prose p {
  64. font-size: var(--text-xs);
  65. line-height: var(--text-xs--line-height);
  66. margin-bottom: calc(var(--spacing) * 2);
  67. }
  68. .prose strong {
  69. color: var(--color-text);
  70. }
  71. .prose ul,
  72. ol {
  73. list-style-type: disc;
  74. list-style-position: inside;
  75. margin-bottom: calc(var(--spacing) * 2);
  76. }
  77. .prose pre {
  78. background-color: var(--color-background-panel);
  79. padding: calc(var(--spacing) * 2);
  80. border-radius: var(--radius-md);
  81. border: 1px solid var(--color-border-subtle);
  82. overflow-x: auto;
  83. white-space: pre;
  84. margin-bottom: calc(var(--spacing) * 2);
  85. @apply no-scrollbar;
  86. }
  87. .prose code {
  88. font-family: var(--font-mono);
  89. font-size: var(--text-xs);
  90. line-height: var(--text-xs--line-height);
  91. }
  92. .prose blockquote {
  93. margin-bottom: calc(var(--spacing) * 2);
  94. }
  95. }
  96. @utility no-scrollbar {
  97. &::-webkit-scrollbar {
  98. display: none;
  99. }
  100. /* Hide scrollbar for IE, Edge and Firefox */
  101. & {
  102. -ms-overflow-style: none; /* IE and Edge */
  103. scrollbar-width: none; /* Firefox */
  104. }
  105. }
  106. @theme {
  107. --color-*: initial;
  108. --color-primary: var(--theme-primary);
  109. --color-secondary: var(--theme-secondary);
  110. --color-accent: var(--theme-accent);
  111. --color-error: var(--theme-error);
  112. --color-warning: var(--theme-warning);
  113. --color-success: var(--theme-success);
  114. --color-info: var(--theme-info);
  115. --color-text: var(--theme-text);
  116. --color-text-muted: var(--theme-text-muted);
  117. --color-background: var(--theme-background);
  118. --color-background-panel: var(--theme-background-panel);
  119. --color-background-element: var(--theme-background-element);
  120. --color-border: var(--theme-border);
  121. --color-border-active: var(--theme-border-active);
  122. --color-border-subtle: var(--theme-border-subtle);
  123. --color-diff-added: var(--theme-diff-added);
  124. --color-diff-removed: var(--theme-diff-removed);
  125. --color-diff-context: var(--theme-diff-context);
  126. --color-diff-hunk-header: var(--theme-diff-hunk-header);
  127. --color-diff-highlight-added: var(--theme-diff-highlight-added);
  128. --color-diff-highlight-removed: var(--theme-diff-highlight-removed);
  129. --color-diff-added-bg: var(--theme-diff-added-bg);
  130. --color-diff-removed-bg: var(--theme-diff-removed-bg);
  131. --color-diff-context-bg: var(--theme-diff-context-bg);
  132. --color-diff-line-number: var(--theme-diff-line-number);
  133. --color-diff-added-line-number-bg: var(--theme-diff-added-line-number-bg);
  134. --color-diff-removed-line-number-bg: var(--theme-diff-removed-line-number-bg);
  135. --color-markdown-text: var(--theme-markdown-text);
  136. --color-markdown-heading: var(--theme-markdown-heading);
  137. --color-markdown-link: var(--theme-markdown-link);
  138. --color-markdown-link-text: var(--theme-markdown-link-text);
  139. --color-markdown-code: var(--theme-markdown-code);
  140. --color-markdown-block-quote: var(--theme-markdown-block-quote);
  141. --color-markdown-emph: var(--theme-markdown-emph);
  142. --color-markdown-strong: var(--theme-markdown-strong);
  143. --color-markdown-horizontal-rule: var(--theme-markdown-horizontal-rule);
  144. --color-markdown-list-item: var(--theme-markdown-list-item);
  145. --color-markdown-list-enumeration: var(--theme-markdown-list-enumeration);
  146. --color-markdown-image: var(--theme-markdown-image);
  147. --color-markdown-image-text: var(--theme-markdown-image-text);
  148. --color-markdown-code-block: var(--theme-markdown-code-block);
  149. --color-syntax-comment: var(--theme-syntax-comment);
  150. --color-syntax-keyword: var(--theme-syntax-keyword);
  151. --color-syntax-function: var(--theme-syntax-function);
  152. --color-syntax-variable: var(--theme-syntax-variable);
  153. --color-syntax-string: var(--theme-syntax-string);
  154. --color-syntax-number: var(--theme-syntax-number);
  155. --color-syntax-type: var(--theme-syntax-type);
  156. --color-syntax-operator: var(--theme-syntax-operator);
  157. --color-syntax-punctuation: var(--theme-syntax-punctuation);
  158. }