index.css 5.1 KB

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