|
1 | | -@tailwind base; |
2 | | -@tailwind components; |
3 | | -@tailwind utilities; |
| 1 | +@import 'tailwindcss'; |
| 2 | +@source "../../../../packages/components"; |
4 | 3 |
|
5 | | -@layer base { |
6 | | - @theme { |
7 | | - --background: 0 0% 100%; |
8 | | - --foreground: 222.2 47.4% 11.2%; |
| 4 | +:root { |
| 5 | + --background: hsl(0 0% 100%); |
| 6 | + --foreground: hsl(222.2 47.4% 11.2%); |
9 | 7 |
|
10 | | - --muted: 210 40% 96.1%; |
11 | | - --muted-foreground: 215.4 16.3% 46.9%; |
| 8 | + --muted: hsl(210 40% 96.1%); |
| 9 | + --muted-foreground: hsl(215.4 16.3% 46.9%); |
12 | 10 |
|
13 | | - --popover: 0 0% 100%; |
14 | | - --popover-foreground: 222.2 47.4% 11.2%; |
| 11 | + --popover: hsl(0 0% 100%); |
| 12 | + --popover-foreground: hsl(222.2 47.4% 11.2%); |
15 | 13 |
|
16 | | - --border: 214.3 31.8% 91.4%; |
17 | | - --input: 214.3 31.8% 91.4%; |
| 14 | + --border: hsl(214.3 31.8% 91.4%); |
| 15 | + --input: hsl(214.3 31.8% 91.4%); |
18 | 16 |
|
19 | | - --card: 0 0% 100%; |
20 | | - --card-foreground: 222.2 47.4% 11.2%; |
| 17 | + --card: hsl(0 0% 100%); |
| 18 | + --card-foreground: hsl(222.2 47.4% 11.2%); |
21 | 19 |
|
22 | | - --primary: 222.2 47.4% 11.2%; |
23 | | - --primary-foreground: 210 40% 98%; |
| 20 | + --primary: hsl(222.2 47.4% 11.2%); |
| 21 | + --primary-foreground: hsl(210 40% 98%); |
24 | 22 |
|
25 | | - --secondary: 210 40% 96.1%; |
26 | | - --secondary-foreground: 222.2 47.4% 11.2%; |
| 23 | + --secondary: hsl(210 40% 96.1%); |
| 24 | + --secondary-foreground: hsl(222.2 47.4% 11.2%); |
27 | 25 |
|
28 | | - --accent: 210 40% 96.1%; |
29 | | - --accent-foreground: 222.2 47.4% 11.2%; |
| 26 | + --accent: hsl(210 40% 96.1%); |
| 27 | + --accent-foreground: hsl(222.2 47.4% 11.2%); |
30 | 28 |
|
31 | | - --destructive: 0 100% 50%; |
32 | | - --destructive-foreground: 210 40% 98%; |
| 29 | + --destructive: hsl(0 100% 50%); |
| 30 | + --destructive-foreground: hsl(210 40% 98%); |
33 | 31 |
|
34 | | - --ring: 215 20.2% 65.1%; |
| 32 | + --ring: hsl(215 20.2% 65.1%); |
35 | 33 |
|
36 | | - --radius: 0.5rem; |
37 | | - } |
| 34 | + --radius: 0.5rem; |
| 35 | +} |
38 | 36 |
|
39 | | - .dark { |
40 | | - @theme { |
41 | | - --background: 224 71% 4%; |
42 | | - --foreground: 213 31% 91%; |
| 37 | +.dark { |
| 38 | + --background: hsl(224 71% 4%); |
| 39 | + --foreground: hsl(213 31% 91%); |
43 | 40 |
|
44 | | - --muted: 223 47% 11%; |
45 | | - --muted-foreground: 215.4 16.3% 56.9%; |
| 41 | + --muted: hsl(223 47% 11%); |
| 42 | + --muted-foreground: hsl(215.4 16.3% 56.9%); |
46 | 43 |
|
47 | | - --accent: 216 34% 17%; |
48 | | - --accent-foreground: 210 40% 98%; |
| 44 | + --accent: hsl(216 34% 17%); |
| 45 | + --accent-foreground: hsl(210 40% 98%); |
49 | 46 |
|
50 | | - --popover: 224 71% 4%; |
51 | | - --popover-foreground: 215 20.2% 65.1%; |
| 47 | + --popover: hsl(224 71% 4%); |
| 48 | + --popover-foreground: hsl(215 20.2% 65.1%); |
52 | 49 |
|
53 | | - --border: 216 34% 17%; |
54 | | - --input: 216 34% 17%; |
| 50 | + --border: hsl(216 34% 17%); |
| 51 | + --input: hsl(216 34% 17%); |
55 | 52 |
|
56 | | - --card: 224 71% 4%; |
57 | | - --card-foreground: 213 31% 91%; |
| 53 | + --card: hsl(224 71% 4%); |
| 54 | + --card-foreground: hsl(213 31% 91%); |
58 | 55 |
|
59 | | - --primary: 210 40% 98%; |
60 | | - --primary-foreground: 222.2 47.4% 1.2%; |
| 56 | + --primary: hsl(210 40% 98%); |
| 57 | + --primary-foreground: hsl(222.2 47.4% 1.2%); |
61 | 58 |
|
62 | | - --secondary: 222.2 47.4% 11.2%; |
63 | | - --secondary-foreground: 210 40% 98%; |
| 59 | + --secondary: hsl(222.2 47.4% 11.2%); |
| 60 | + --secondary-foreground: hsl(210 40% 98%); |
64 | 61 |
|
65 | | - --destructive: 0 63% 31%; |
66 | | - --destructive-foreground: 210 40% 98%; |
| 62 | + --destructive: hsl(0 63% 31%); |
| 63 | + --destructive-foreground: hsl(210 40% 98%); |
67 | 64 |
|
68 | | - --ring: 216 34% 17%; |
| 65 | + --ring: hsl(216 34% 17%); |
69 | 66 |
|
70 | | - --radius: 0.5rem; |
71 | | - } |
72 | | - } |
| 67 | + --radius: 0.5rem; |
| 68 | +} |
| 69 | + |
| 70 | +@theme inline { |
| 71 | + --color-background: var(--background); |
| 72 | + --color-foreground: var(--foreground); |
| 73 | + |
| 74 | + --color-muted: var(--muted); |
| 75 | + --color-muted-foreground: var(--muted-foreground); |
| 76 | + |
| 77 | + --color-popover: var(--popover); |
| 78 | + --color-popover-foreground: var(--popover-foreground); |
| 79 | + |
| 80 | + --color-border: var(--border); |
| 81 | + --color-input: var(--input); |
| 82 | + |
| 83 | + --color-card: var(--card); |
| 84 | + --color-card-foreground: var(--card-foreground); |
| 85 | + |
| 86 | + --color-primary: var(--primary); |
| 87 | + --color-primary-foreground: var(--primary-foreground); |
| 88 | + |
| 89 | + --color-secondary: var(--secondary); |
| 90 | + --color-secondary-foreground: var(--secondary-foreground); |
| 91 | + |
| 92 | + --color-accent: var(--accent); |
| 93 | + --color-accent-foreground: var(--accent-foreground); |
| 94 | + |
| 95 | + --color-destructive: var(--destructive); |
| 96 | + --color-destructive-foreground: var(--destructive-foreground); |
| 97 | + |
| 98 | + --color-ring: var(--ring); |
73 | 99 | } |
74 | 100 |
|
75 | 101 | @layer base { |
76 | 102 | * { |
77 | | - @apply border-border; |
| 103 | + @apply border-[var(--color-border)]; |
78 | 104 | } |
79 | 105 | body { |
80 | | - @apply bg-background text-foreground; |
81 | | - font-feature-settings: 'rlig' 1, 'calt' 1; |
| 106 | + @apply bg-[var(--color-background)] text-[var(--color-foreground)]; |
82 | 107 | } |
83 | 108 | } |
0 commit comments