|
1 | 1 | @import "tailwindcss"; |
2 | 2 | @import "tw-animate-css"; |
3 | 3 |
|
4 | | -@custom-variant dark (&:is(.dark *)); |
| 4 | +@custom-variant dark (&:where(.dark, .dark *)); |
5 | 5 |
|
6 | 6 | body { |
7 | 7 | margin: 0; |
@@ -52,73 +52,75 @@ code { |
52 | 52 | --color-sidebar-ring: var(--sidebar-ring); |
53 | 53 | } |
54 | 54 |
|
55 | | -:root { |
56 | | - --radius: 0.625rem; |
57 | | - --background: oklch(1 0 0); |
58 | | - --foreground: oklch(0.147 0.004 49.25); |
59 | | - --card: oklch(1 0 0); |
60 | | - --card-foreground: oklch(0.147 0.004 49.25); |
61 | | - --popover: oklch(1 0 0); |
62 | | - --popover-foreground: oklch(0.147 0.004 49.25); |
63 | | - --primary: oklch(0.216 0.006 56.043); |
64 | | - --primary-foreground: oklch(0.985 0.001 106.423); |
65 | | - --secondary: oklch(0.97 0.001 106.424); |
66 | | - --secondary-foreground: oklch(0.216 0.006 56.043); |
67 | | - --muted: oklch(0.97 0.001 106.424); |
68 | | - --muted-foreground: oklch(0.553 0.013 58.071); |
69 | | - --accent: oklch(0.97 0.001 106.424); |
70 | | - --accent-foreground: oklch(0.216 0.006 56.043); |
71 | | - --destructive: oklch(0.577 0.245 27.325); |
72 | | - --border: oklch(0.923 0.003 48.717); |
73 | | - --input: oklch(0.923 0.003 48.717); |
74 | | - --ring: oklch(0.709 0.01 56.259); |
75 | | - --chart-1: oklch(0.646 0.222 41.116); |
76 | | - --chart-2: oklch(0.6 0.118 184.704); |
77 | | - --chart-3: oklch(0.398 0.07 227.392); |
78 | | - --chart-4: oklch(0.828 0.189 84.429); |
79 | | - --chart-5: oklch(0.769 0.188 70.08); |
80 | | - --sidebar: oklch(0.985 0.001 106.423); |
81 | | - --sidebar-foreground: oklch(0.147 0.004 49.25); |
82 | | - --sidebar-primary: oklch(0.216 0.006 56.043); |
83 | | - --sidebar-primary-foreground: oklch(0.985 0.001 106.423); |
84 | | - --sidebar-accent: oklch(0.97 0.001 106.424); |
85 | | - --sidebar-accent-foreground: oklch(0.216 0.006 56.043); |
86 | | - --sidebar-border: oklch(0.923 0.003 48.717); |
87 | | - --sidebar-ring: oklch(0.709 0.01 56.259); |
88 | | -} |
| 55 | +@layer theme { |
| 56 | + :root { |
| 57 | + --radius: 0.625rem; |
| 58 | + --background: oklch(1 0 0); |
| 59 | + --foreground: oklch(0.147 0.004 49.25); |
| 60 | + --card: oklch(1 0 0); |
| 61 | + --card-foreground: oklch(0.147 0.004 49.25); |
| 62 | + --popover: oklch(1 0 0); |
| 63 | + --popover-foreground: oklch(0.147 0.004 49.25); |
| 64 | + --primary: oklch(0.216 0.006 56.043); |
| 65 | + --primary-foreground: oklch(0.985 0.001 106.423); |
| 66 | + --secondary: oklch(0.97 0.001 106.424); |
| 67 | + --secondary-foreground: oklch(0.216 0.006 56.043); |
| 68 | + --muted: oklch(0.97 0.001 106.424); |
| 69 | + --muted-foreground: oklch(0.553 0.013 58.071); |
| 70 | + --accent: oklch(0.97 0.001 106.424); |
| 71 | + --accent-foreground: oklch(0.216 0.006 56.043); |
| 72 | + --destructive: oklch(0.577 0.245 27.325); |
| 73 | + --border: oklch(0.923 0.003 48.717); |
| 74 | + --input: oklch(0.923 0.003 48.717); |
| 75 | + --ring: oklch(0.709 0.01 56.259); |
| 76 | + --chart-1: oklch(0.646 0.222 41.116); |
| 77 | + --chart-2: oklch(0.6 0.118 184.704); |
| 78 | + --chart-3: oklch(0.398 0.07 227.392); |
| 79 | + --chart-4: oklch(0.828 0.189 84.429); |
| 80 | + --chart-5: oklch(0.769 0.188 70.08); |
| 81 | + --sidebar: oklch(0.985 0.001 106.423); |
| 82 | + --sidebar-foreground: oklch(0.147 0.004 49.25); |
| 83 | + --sidebar-primary: oklch(0.216 0.006 56.043); |
| 84 | + --sidebar-primary-foreground: oklch(0.985 0.001 106.423); |
| 85 | + --sidebar-accent: oklch(0.97 0.001 106.424); |
| 86 | + --sidebar-accent-foreground: oklch(0.216 0.006 56.043); |
| 87 | + --sidebar-border: oklch(0.923 0.003 48.717); |
| 88 | + --sidebar-ring: oklch(0.709 0.01 56.259); |
| 89 | + } |
89 | 90 |
|
90 | | -.dark { |
91 | | - --background: oklch(0.147 0.004 49.25); |
92 | | - --foreground: oklch(0.985 0.001 106.423); |
93 | | - --card: oklch(0.216 0.006 56.043); |
94 | | - --card-foreground: oklch(0.985 0.001 106.423); |
95 | | - --popover: oklch(0.216 0.006 56.043); |
96 | | - --popover-foreground: oklch(0.985 0.001 106.423); |
97 | | - --primary: oklch(0.923 0.003 48.717); |
98 | | - --primary-foreground: oklch(0.216 0.006 56.043); |
99 | | - --secondary: oklch(0.268 0.007 34.298); |
100 | | - --secondary-foreground: oklch(0.985 0.001 106.423); |
101 | | - --muted: oklch(0.268 0.007 34.298); |
102 | | - --muted-foreground: oklch(0.709 0.01 56.259); |
103 | | - --accent: oklch(0.268 0.007 34.298); |
104 | | - --accent-foreground: oklch(0.985 0.001 106.423); |
105 | | - --destructive: oklch(0.704 0.191 22.216); |
106 | | - --border: oklch(1 0 0 / 10%); |
107 | | - --input: oklch(1 0 0 / 15%); |
108 | | - --ring: oklch(0.553 0.013 58.071); |
109 | | - --chart-1: oklch(0.488 0.243 264.376); |
110 | | - --chart-2: oklch(0.696 0.17 162.48); |
111 | | - --chart-3: oklch(0.769 0.188 70.08); |
112 | | - --chart-4: oklch(0.627 0.265 303.9); |
113 | | - --chart-5: oklch(0.645 0.246 16.439); |
114 | | - --sidebar: oklch(0.216 0.006 56.043); |
115 | | - --sidebar-foreground: oklch(0.985 0.001 106.423); |
116 | | - --sidebar-primary: oklch(0.488 0.243 264.376); |
117 | | - --sidebar-primary-foreground: oklch(0.985 0.001 106.423); |
118 | | - --sidebar-accent: oklch(0.268 0.007 34.298); |
119 | | - --sidebar-accent-foreground: oklch(0.985 0.001 106.423); |
120 | | - --sidebar-border: oklch(1 0 0 / 10%); |
121 | | - --sidebar-ring: oklch(0.553 0.013 58.071); |
| 91 | + .dark { |
| 92 | + --background: oklch(0.147 0.004 49.25); |
| 93 | + --foreground: oklch(0.985 0.001 106.423); |
| 94 | + --card: oklch(0.216 0.006 56.043); |
| 95 | + --card-foreground: oklch(0.985 0.001 106.423); |
| 96 | + --popover: oklch(0.216 0.006 56.043); |
| 97 | + --popover-foreground: oklch(0.985 0.001 106.423); |
| 98 | + --primary: oklch(0.923 0.003 48.717); |
| 99 | + --primary-foreground: oklch(0.216 0.006 56.043); |
| 100 | + --secondary: oklch(0.268 0.007 34.298); |
| 101 | + --secondary-foreground: oklch(0.985 0.001 106.423); |
| 102 | + --muted: oklch(0.268 0.007 34.298); |
| 103 | + --muted-foreground: oklch(0.709 0.01 56.259); |
| 104 | + --accent: oklch(0.268 0.007 34.298); |
| 105 | + --accent-foreground: oklch(0.985 0.001 106.423); |
| 106 | + --destructive: oklch(0.704 0.191 22.216); |
| 107 | + --border: oklch(1 0 0 / 10%); |
| 108 | + --input: oklch(1 0 0 / 15%); |
| 109 | + --ring: oklch(0.553 0.013 58.071); |
| 110 | + --chart-1: oklch(0.488 0.243 264.376); |
| 111 | + --chart-2: oklch(0.696 0.17 162.48); |
| 112 | + --chart-3: oklch(0.769 0.188 70.08); |
| 113 | + --chart-4: oklch(0.627 0.265 303.9); |
| 114 | + --chart-5: oklch(0.645 0.246 16.439); |
| 115 | + --sidebar: oklch(0.216 0.006 56.043); |
| 116 | + --sidebar-foreground: oklch(0.985 0.001 106.423); |
| 117 | + --sidebar-primary: oklch(0.488 0.243 264.376); |
| 118 | + --sidebar-primary-foreground: oklch(0.985 0.001 106.423); |
| 119 | + --sidebar-accent: oklch(0.268 0.007 34.298); |
| 120 | + --sidebar-accent-foreground: oklch(0.985 0.001 106.423); |
| 121 | + --sidebar-border: oklch(1 0 0 / 10%); |
| 122 | + --sidebar-ring: oklch(0.553 0.013 58.071); |
| 123 | + } |
122 | 124 | } |
123 | 125 |
|
124 | 126 | @layer base { |
|
0 commit comments