Skip to content

Commit 71ccbe5

Browse files
committed
Add popover colors to :root for inline style access
CSS variables in @theme are only for Tailwind utilities. For inline styles with var(), variables must also be defined in :root. Added to :root: - --color-popover: hsl(0 0% 18%) - --color-popover-foreground: hsl(0 0% 83%) Now var(--color-popover) in inline styles will work correctly, ensuring tooltips have proper background and text colors.
1 parent 2c94789 commit 71ccbe5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/styles/globals.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,8 @@
203203
--color-interrupted: hsl(38 92% 50%);
204204
--color-code-bg: hsl(0 6.43% 8.04%);
205205
--color-border: hsl(240 2% 25%);
206+
--color-popover: hsl(0 0% 18%);
207+
--color-popover-foreground: hsl(0 0% 83%);
206208
--color-text: hsl(0 0% 83%);
207209
--color-text-secondary: hsl(0 0% 42%);
208210
--color-user-border: hsl(0 0% 38%);

0 commit comments

Comments
 (0)