Skip to content

Commit 94a17c2

Browse files
committed
docs(headless tabs): fix dark mode
1 parent 731300d commit 94a17c2

File tree

1 file changed

+4
-12
lines changed
  • apps/website/src/routes/docs/headless/tabs

1 file changed

+4
-12
lines changed

apps/website/src/routes/docs/headless/tabs/index.css

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44

55
.tabs-example [role='tab'] {
66
width: 138px;
7-
background: white;
7+
background: var(--background);
8+
color: var(--foreground);
89
}
910

1011
.tabs-example [role='tab'][disabled] {
@@ -13,7 +14,8 @@
1314
}
1415

1516
.tabs-example [role='tab'][data-state='selected'] {
16-
background: hsl(var(--primary) / 0.3);
17+
background: hsl(var(--primary));
18+
color: hsl(var(--primary-foreground));
1719
}
1820

1921
.tabs-example [role='tablist'] {
@@ -26,13 +28,3 @@
2628
font-weight: 600;
2729
margin-bottom: 0.5rem;
2830
}
29-
30-
.dark .tabs-example [role='tab'] {
31-
background: hsl(var(--foreground));
32-
color: hsl(var(--muted));
33-
}
34-
35-
.dark .tabs-example [role='tab'][data-state='selected'] {
36-
background: hsl(var(--primary));
37-
color: hsl(var(--muted));
38-
}

0 commit comments

Comments
 (0)