Skip to content

Commit 2371f3b

Browse files
committed
Add explicit CSS classes for tooltip utilities
Tailwind v4 may not be generating bg-primary, text-primary-foreground, and fill-primary utilities from our @theme variables. Added explicit CSS classes with !important to guarantee they apply: - .bg-primary { background-color: hsl(0 0% 18%) !important; } - .text-primary-foreground { color: hsl(0 0% 98%) !important; } - .fill-primary { fill: hsl(0 0% 18%) !important; } This ensures tooltips have visible styling regardless of Tailwind's utility generation.
1 parent a9ebbb0 commit 2371f3b

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/styles/globals.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,19 @@
187187
--radius: 0.5rem;
188188
}
189189

190+
/* Explicit tooltip utilities (in case Tailwind doesn't generate them) */
191+
.bg-primary {
192+
background-color: hsl(0 0% 18%) !important;
193+
}
194+
195+
.text-primary-foreground {
196+
color: hsl(0 0% 98%) !important;
197+
}
198+
199+
.fill-primary {
200+
fill: hsl(0 0% 18%) !important;
201+
}
202+
190203
:root {
191204
/* Legacy RGB for special uses */
192205
--plan-mode-rgb: 31, 107, 184;

0 commit comments

Comments
 (0)