|
1 | 1 | @import "tailwindcss"; |
2 | 2 | @import "tw-animate-css"; |
3 | 3 |
|
| 4 | +/** UDS Custom Variant for Dark theme **/ |
4 | 5 | @custom-variant dark (&:is(.dark *)); |
5 | 6 |
|
| 7 | +/** UDS Default theme variables **/ |
| 8 | +@theme inline { |
| 9 | + --radius-sm: calc(var(--radius) - 4px); |
| 10 | + --radius-md: calc(var(--radius) - 2px); |
| 11 | + --radius-lg: var(--radius); |
| 12 | + --radius-xl: calc(var(--radius) + 4px); |
| 13 | + --color-background: var(--background); |
| 14 | + --color-foreground: var(--foreground); |
| 15 | + --color-card: var(--card); |
| 16 | + --color-card-foreground: var(--card-foreground); |
| 17 | + --color-popover: var(--popover); |
| 18 | + --color-popover-foreground: var(--popover-foreground); |
| 19 | + --color-primary: var(--primary); |
| 20 | + --color-primary-foreground: var(--primary-foreground); |
| 21 | + --color-secondary: var(--secondary); |
| 22 | + --color-secondary-foreground: var(--secondary-foreground); |
| 23 | + --color-muted: var(--muted); |
| 24 | + --color-muted-foreground: var(--muted-foreground); |
| 25 | + --color-accent: var(--accent); |
| 26 | + --color-accent-foreground: var(--accent-foreground); |
| 27 | + --color-destructive: var(--destructive); |
| 28 | + --color-border: var(--border); |
| 29 | + --color-input: var(--input); |
| 30 | + --color-ring: var(--ring); |
| 31 | + --color-chart-1: var(--chart-1); |
| 32 | + --color-chart-2: var(--chart-2); |
| 33 | + --color-chart-3: var(--chart-3); |
| 34 | + --color-chart-4: var(--chart-4); |
| 35 | + --color-chart-5: var(--chart-5); |
| 36 | + --color-sidebar: var(--sidebar); |
| 37 | + --color-sidebar-foreground: var(--sidebar-foreground); |
| 38 | + --color-sidebar-primary: var(--sidebar-primary); |
| 39 | + --color-sidebar-primary-foreground: var(--sidebar-primary-foreground); |
| 40 | + --color-sidebar-accent: var(--sidebar-accent); |
| 41 | + --color-sidebar-accent-foreground: var(--sidebar-accent-foreground); |
| 42 | + --color-sidebar-border: var(--sidebar-border); |
| 43 | + --color-sidebar-ring: var(--sidebar-ring); |
| 44 | +} |
| 45 | + |
| 46 | +/** Auth0 Theme Variables **/ |
6 | 47 | @theme { |
7 | 48 | /* Auth0 Theme */ |
8 | 49 |
|
@@ -222,44 +263,7 @@ body { |
222 | 263 | min-height: 100vh; |
223 | 264 | } |
224 | 265 |
|
225 | | -@theme inline { |
226 | | - --radius-sm: calc(var(--radius) - 4px); |
227 | | - --radius-md: calc(var(--radius) - 2px); |
228 | | - --radius-lg: var(--radius); |
229 | | - --radius-xl: calc(var(--radius) + 4px); |
230 | | - --color-background: var(--background); |
231 | | - --color-foreground: var(--foreground); |
232 | | - --color-card: var(--card); |
233 | | - --color-card-foreground: var(--card-foreground); |
234 | | - --color-popover: var(--popover); |
235 | | - --color-popover-foreground: var(--popover-foreground); |
236 | | - --color-primary: var(--primary); |
237 | | - --color-primary-foreground: var(--primary-foreground); |
238 | | - --color-secondary: var(--secondary); |
239 | | - --color-secondary-foreground: var(--secondary-foreground); |
240 | | - --color-muted: var(--muted); |
241 | | - --color-muted-foreground: var(--muted-foreground); |
242 | | - --color-accent: var(--accent); |
243 | | - --color-accent-foreground: var(--accent-foreground); |
244 | | - --color-destructive: var(--destructive); |
245 | | - --color-border: var(--border); |
246 | | - --color-input: var(--input); |
247 | | - --color-ring: var(--ring); |
248 | | - --color-chart-1: var(--chart-1); |
249 | | - --color-chart-2: var(--chart-2); |
250 | | - --color-chart-3: var(--chart-3); |
251 | | - --color-chart-4: var(--chart-4); |
252 | | - --color-chart-5: var(--chart-5); |
253 | | - --color-sidebar: var(--sidebar); |
254 | | - --color-sidebar-foreground: var(--sidebar-foreground); |
255 | | - --color-sidebar-primary: var(--sidebar-primary); |
256 | | - --color-sidebar-primary-foreground: var(--sidebar-primary-foreground); |
257 | | - --color-sidebar-accent: var(--sidebar-accent); |
258 | | - --color-sidebar-accent-foreground: var(--sidebar-accent-foreground); |
259 | | - --color-sidebar-border: var(--sidebar-border); |
260 | | - --color-sidebar-ring: var(--sidebar-ring); |
261 | | -} |
262 | | - |
| 266 | +/** UDS Dark Theme Variables **/ |
263 | 267 | .dark { |
264 | 268 | --background: oklch(0.145 0 0); |
265 | 269 | --foreground: oklch(0.985 0 0); |
@@ -293,12 +297,3 @@ body { |
293 | 297 | --sidebar-border: oklch(1 0 0 / 10%); |
294 | 298 | --sidebar-ring: oklch(0.556 0 0); |
295 | 299 | } |
296 | | - |
297 | | -@layer base { |
298 | | - * { |
299 | | - @apply border-border outline-ring/50; |
300 | | - } |
301 | | - body { |
302 | | - @apply bg-background text-foreground; |
303 | | - } |
304 | | -} |
0 commit comments