Skip to content

Commit 804e1de

Browse files
Fix tooltip styling
The tooltip background is transparent and inconsistent text colors are present. This commit addresses these issues by ensuring a solid background and consistent text color for all tooltips.
1 parent dfb391c commit 804e1de

1 file changed

Lines changed: 47 additions & 0 deletions

File tree

src/index.css

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,53 @@
55
@tailwind components;
66
@tailwind utilities;
77

8+
@layer base {
9+
:root {
10+
--background: 0 0% 100%;
11+
--foreground: 222.2 84% 4.9%;
12+
--card: 0 0% 100%;
13+
--card-foreground: 222.2 84% 4.9%;
14+
--popover: 0 0% 100%;
15+
--popover-foreground: 222.2 84% 4.9%;
16+
--primary: 221.2 83.2% 53.3%;
17+
--primary-foreground: 210 40% 98%;
18+
--secondary: 210 40% 96%;
19+
--secondary-foreground: 222.2 84% 4.9%;
20+
--muted: 210 40% 96%;
21+
--muted-foreground: 215.4 16.3% 46.9%;
22+
--accent: 210 40% 96%;
23+
--accent-foreground: 222.2 84% 4.9%;
24+
--destructive: 0 84.2% 60.2%;
25+
--destructive-foreground: 210 40% 98%;
26+
--border: 214.3 31.8% 91.4%;
27+
--input: 214.3 31.8% 91.4%;
28+
--ring: 221.2 83.2% 53.3%;
29+
--radius: 0.5rem;
30+
}
31+
32+
.dark {
33+
--background: 222.2 84% 4.9%;
34+
--foreground: 210 40% 98%;
35+
--card: 222.2 84% 4.9%;
36+
--card-foreground: 210 40% 98%;
37+
--popover: 222.2 84% 4.9%;
38+
--popover-foreground: 210 40% 98%;
39+
--primary: 217.2 91.2% 59.8%;
40+
--primary-foreground: 222.2 84% 4.9%;
41+
--secondary: 217.2 32.6% 17.5%;
42+
--secondary-foreground: 210 40% 98%;
43+
--muted: 217.2 32.6% 17.5%;
44+
--muted-foreground: 215 20.2% 65.1%;
45+
--accent: 217.2 32.6% 17.5%;
46+
--accent-foreground: 210 40% 98%;
47+
--destructive: 0 62.8% 30.6%;
48+
--destructive-foreground: 210 40% 98%;
49+
--border: 217.2 32.6% 17.5%;
50+
--input: 217.2 32.6% 17.5%;
51+
--ring: 224.3 76.3% 94.1%;
52+
}
53+
}
54+
855
* {
956
box-sizing: border-box;
1057
user-select: none;

0 commit comments

Comments
 (0)