Skip to content

Commit 6fa37bc

Browse files
committed
switch .dark to data-theme='dark'
1 parent d83203a commit 6fa37bc

File tree

1 file changed

+54
-54
lines changed

1 file changed

+54
-54
lines changed

src/styles/main.css

Lines changed: 54 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,76 +1,76 @@
11
@tailwind base;
2-
@tailwind components;
3-
@tailwind utilities;
2+
@tailwind components;
3+
@tailwind utilities;
44

5-
@layer base {
6-
:root {
7-
--background: 0 0% 100%;
8-
--foreground: 0 0% 3.9%;
5+
@layer base {
6+
:root {
7+
--background: 0 0% 100%;
8+
--foreground: 0 0% 3.9%;
99

10-
--card: 0 0% 100%;
11-
--card-foreground: 0 0% 3.9%;
10+
--card: 0 0% 100%;
11+
--card-foreground: 0 0% 3.9%;
1212

13-
--popover: 0 0% 100%;
14-
--popover-foreground: 0 0% 3.9%;
13+
--popover: 0 0% 100%;
14+
--popover-foreground: 0 0% 3.9%;
1515

16-
--primary: 0 0% 9%;
17-
--primary-foreground: 0 0% 98%;
16+
--primary: 0 0% 9%;
17+
--primary-foreground: 0 0% 98%;
1818

19-
--secondary: 0 0% 96.1%;
20-
--secondary-foreground: 0 0% 9%;
19+
--secondary: 0 0% 96.1%;
20+
--secondary-foreground: 0 0% 9%;
2121

22-
--muted: 0 0% 96.1%;
23-
--muted-foreground: 0 0% 45.1%;
22+
--muted: 0 0% 96.1%;
23+
--muted-foreground: 0 0% 45.1%;
2424

25-
--accent: 0 0% 96.1%;
26-
--accent-foreground: 0 0% 9%;
25+
--accent: 0 0% 96.1%;
26+
--accent-foreground: 0 0% 9%;
2727

28-
--destructive: 0 84.2% 60.2%;
29-
--destructive-foreground: 0 0% 98%;
28+
--destructive: 0 84.2% 60.2%;
29+
--destructive-foreground: 0 0% 98%;
3030

31-
--border: 0 0% 89.8%;
32-
--input: 0 0% 89.8%;
33-
--ring: 0 0% 3.9%;
31+
--border: 0 0% 89.8%;
32+
--input: 0 0% 89.8%;
33+
--ring: 0 0% 3.9%;
3434

35-
--radius: 0.5rem;
36-
}
35+
--radius: 0.5rem;
36+
}
3737

38-
.dark {
39-
--background: 0 0% 3.9%;
40-
--foreground: 0 0% 98%;
38+
[data-theme="dark"] {
39+
--background: 0 0% 3.9%;
40+
--foreground: 0 0% 98%;
4141

42-
--card: 0 0% 3.9%;
43-
--card-foreground: 0 0% 98%;
42+
--card: 0 0% 3.9%;
43+
--card-foreground: 0 0% 98%;
4444

45-
--popover: 0 0% 3.9%;
46-
--popover-foreground: 0 0% 98%;
45+
--popover: 0 0% 3.9%;
46+
--popover-foreground: 0 0% 98%;
4747

48-
--primary: 0 0% 98%;
49-
--primary-foreground: 0 0% 9%;
48+
--primary: 0 0% 98%;
49+
--primary-foreground: 0 0% 9%;
5050

51-
--secondary: 0 0% 14.9%;
52-
--secondary-foreground: 0 0% 98%;
51+
--secondary: 0 0% 14.9%;
52+
--secondary-foreground: 0 0% 98%;
5353

54-
--muted: 0 0% 14.9%;
55-
--muted-foreground: 0 0% 63.9%;
54+
--muted: 0 0% 14.9%;
55+
--muted-foreground: 0 0% 63.9%;
5656

57-
--accent: 0 0% 14.9%;
58-
--accent-foreground: 0 0% 98%;
57+
--accent: 0 0% 14.9%;
58+
--accent-foreground: 0 0% 98%;
5959

60-
--destructive: 0 62.8% 30.6%;
61-
--destructive-foreground: 0 0% 98%;
60+
--destructive: 0 62.8% 30.6%;
61+
--destructive-foreground: 0 0% 98%;
6262

63-
--border: 0 0% 14.9%;
64-
--input: 0 0% 14.9%;
65-
--ring: 0 0% 83.1%;
66-
}
63+
--border: 0 0% 14.9%;
64+
--input: 0 0% 14.9%;
65+
--ring: 0 0% 83.1%;
6766
}
67+
}
6868

69-
@layer base {
70-
* {
71-
@apply border-border;
72-
}
73-
body {
74-
@apply bg-background text-foreground;
75-
}
76-
}
69+
@layer base {
70+
* {
71+
@apply border-border;
72+
}
73+
body {
74+
@apply bg-background text-foreground;
75+
}
76+
}

0 commit comments

Comments
 (0)