|
1 | | -@tailwind base; |
2 | | -@tailwind components; |
3 | | -@tailwind utilities; |
| 1 | +@import "tailwindcss"; |
4 | 2 |
|
5 | | -@layer base { |
6 | | - :root { |
7 | | - --background: 0 0% 100%; |
8 | | - --foreground: 222.2 84% 4.9%; |
9 | | - --card: 0 0% 100%; |
10 | | - --card-foreground: 222.2 84% 4.9%; |
11 | | - --popover: 0 0% 100%; |
12 | | - --popover-foreground: 222.2 84% 4.9%; |
13 | | - --primary: 221.2 83.2% 53.3%; |
14 | | - --primary-foreground: 210 40% 98%; |
15 | | - --secondary: 210 40% 96.1%; |
16 | | - --secondary-foreground: 222.2 47.4% 11.2%; |
17 | | - --muted: 210 40% 96.1%; |
18 | | - --muted-foreground: 215.4 16.3% 46.9%; |
19 | | - --accent: 210 40% 96.1%; |
20 | | - --accent-foreground: 222.2 47.4% 11.2%; |
21 | | - --destructive: 0 84.2% 60.2%; |
22 | | - --destructive-foreground: 210 40% 98%; |
23 | | - --border: 214.3 31.8% 91.4%; |
24 | | - --input: 214.3 31.8% 91.4%; |
25 | | - --ring: 221.2 83.2% 53.3%; |
26 | | - --radius: 0.5rem; |
27 | | - |
28 | | - --chart-1: 12 76% 61%; |
29 | | - --chart-2: 173 58% 39%; |
30 | | - --chart-3: 197 37% 24%; |
31 | | - --chart-4: 43 74% 66%; |
32 | | - --chart-5: 27 87% 67%; |
| 3 | +@plugin 'tailwindcss-animate'; |
| 4 | + |
| 5 | +@custom-variant dark (&:is(.dark *)); |
| 6 | + |
| 7 | +@theme inline { |
| 8 | + --font-sans: var(--font-sans), ui-sans-serif, system-ui, sans-serif, |
| 9 | + "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; |
| 10 | + |
| 11 | + --color-border: var(--border); |
| 12 | + --color-input: var(--input); |
| 13 | + --color-ring: var(--ring); |
| 14 | + --color-background: var(--background); |
| 15 | + --color-foreground: var(--foreground); |
| 16 | + |
| 17 | + --color-primary: var(--primary); |
| 18 | + --color-primary-foreground: var(--primary-foreground); |
| 19 | + |
| 20 | + --color-secondary: var(--secondary); |
| 21 | + --color-secondary-foreground: var(--secondary-foreground); |
| 22 | + |
| 23 | + --color-destructive: var(--destructive); |
| 24 | + --color-destructive-foreground: var(--destructive-foreground); |
| 25 | + |
| 26 | + --color-muted: var(--muted); |
| 27 | + --color-muted-foreground: var(--muted-foreground); |
| 28 | + |
| 29 | + --color-accent: var(--accent); |
| 30 | + --color-accent-foreground: var(--accent-foreground); |
| 31 | + |
| 32 | + --color-popover: var(--popover); |
| 33 | + --color-popover-foreground: var(--popover-foreground); |
| 34 | + |
| 35 | + --color-card: var(--card); |
| 36 | + --color-card-foreground: var(--card-foreground); |
| 37 | + |
| 38 | + --radius-lg: var(--radius); |
| 39 | + --radius-md: calc(var(--radius) - 2px); |
| 40 | + --radius-sm: calc(var(--radius) - 4px); |
| 41 | + |
| 42 | + --animate-accordion-down: accordion-down 0.2s ease-out; |
| 43 | + --animate-accordion-up: accordion-up 0.2s ease-out; |
| 44 | + |
| 45 | + @keyframes accordion-down { |
| 46 | + from { |
| 47 | + height: 0; |
| 48 | + } |
| 49 | + to { |
| 50 | + height: var(--radix-accordion-content-height); |
| 51 | + } |
33 | 52 | } |
| 53 | + @keyframes accordion-up { |
| 54 | + from { |
| 55 | + height: var(--radix-accordion-content-height); |
| 56 | + } |
| 57 | + to { |
| 58 | + height: 0; |
| 59 | + } |
| 60 | + } |
| 61 | +} |
| 62 | + |
| 63 | +@utility container { |
| 64 | + margin-inline: auto; |
| 65 | + padding-inline: 2rem; |
| 66 | + @media (width >= --theme(--breakpoint-sm)) { |
| 67 | + max-width: none; |
| 68 | + } |
| 69 | + @media (width >= 1400px) { |
| 70 | + max-width: 1400px; |
| 71 | + } |
| 72 | +} |
34 | 73 |
|
35 | | - .dark { |
36 | | - --background: 222.2 84% 4.9%; |
37 | | - --foreground: 210 40% 98%; |
38 | | - --card: 222.2 84% 4.9%; |
39 | | - --card-foreground: 210 40% 98%; |
40 | | - --popover: 222.2 84% 4.9%; |
41 | | - --popover-foreground: 210 40% 98%; |
42 | | - --primary: 217.2 91.2% 59.8%; |
43 | | - --primary-foreground: 222.2 47.4% 11.2%; |
44 | | - --secondary: 217.2 32.6% 17.5%; |
45 | | - --secondary-foreground: 210 40% 98%; |
46 | | - --muted: 217.2 32.6% 17.5%; |
47 | | - --muted-foreground: 215 20.2% 65.1%; |
48 | | - --accent: 217.2 32.6% 17.5%; |
49 | | - --accent-foreground: 210 40% 98%; |
50 | | - --destructive: 0 62.8% 30.6%; |
51 | | - --destructive-foreground: 210 40% 98%; |
52 | | - --border: 217.2 32.6% 17.5%; |
53 | | - --input: 217.2 32.6% 17.5%; |
54 | | - --ring: 224.3 76.3% 48%; |
55 | | - |
56 | | - --chart-1: 220 70% 50%; |
57 | | - --chart-2: 160 60% 45%; |
58 | | - --chart-3: 30 80% 55%; |
59 | | - --chart-4: 280 65% 60%; |
60 | | - --chart-5: 340 75% 55%; |
| 74 | +/* |
| 75 | + The default border color has changed to `currentcolor` in Tailwind CSS v4, |
| 76 | + so we've added these compatibility styles to make sure everything still |
| 77 | + looks the same as it did with Tailwind CSS v3. |
| 78 | +
|
| 79 | + If we ever want to remove these styles, we need to add an explicit border |
| 80 | + color utility to any element that depends on these defaults. |
| 81 | +*/ |
| 82 | +@layer base { |
| 83 | + *, |
| 84 | + ::after, |
| 85 | + ::before, |
| 86 | + ::backdrop, |
| 87 | + ::file-selector-button { |
| 88 | + border-color: var(--color-gray-200, currentcolor); |
61 | 89 | } |
62 | 90 | } |
63 | 91 |
|
| 92 | +:root { |
| 93 | + --background: hsl(0 0% 100%); |
| 94 | + --foreground: hsl(222.2 84% 4.9%); |
| 95 | + --card: hsl(0 0% 100%); |
| 96 | + --card-foreground: hsl(222.2 84% 4.9%); |
| 97 | + --popover: hsl(0 0% 100%); |
| 98 | + --popover-foreground: hsl(222.2 84% 4.9%); |
| 99 | + --primary: hsl(221.2 83.2% 53.3%); |
| 100 | + --primary-foreground: hsl(210 40% 98%); |
| 101 | + --secondary: hsl(210 40% 96.1%); |
| 102 | + --secondary-foreground: hsl(222.2 47.4% 11.2%); |
| 103 | + --muted: hsl(210 40% 96.1%); |
| 104 | + --muted-foreground: hsl(215.4 16.3% 46.9%); |
| 105 | + --accent: hsl(210 40% 96.1%); |
| 106 | + --accent-foreground: hsl(222.2 47.4% 11.2%); |
| 107 | + --destructive: hsl(0 84.2% 60.2%); |
| 108 | + --destructive-foreground: hsl(210 40% 98%); |
| 109 | + --border: hsl(214.3 31.8% 91.4%); |
| 110 | + --input: hsl(214.3 31.8% 91.4%); |
| 111 | + --ring: hsl(221.2 83.2% 53.3%); |
| 112 | + --radius: 0.5rem; |
| 113 | + |
| 114 | + --chart-1: hsl(12 76% 61%); |
| 115 | + --chart-2: hsl(173 58% 39%); |
| 116 | + --chart-3: hsl(197 37% 24%); |
| 117 | + --chart-4: hsl(43 74% 66%); |
| 118 | + --chart-5: hsl(27 87% 67%); |
| 119 | +} |
| 120 | + |
| 121 | +.dark { |
| 122 | + --background: hsl(222.2 84% 4.9%); |
| 123 | + --foreground: hsl(210 40% 98%); |
| 124 | + --card: hsl(222.2 84% 4.9%); |
| 125 | + --card-foreground: hsl(210 40% 98%); |
| 126 | + --popover: hsl(222.2 84% 4.9%); |
| 127 | + --popover-foreground: hsl(210 40% 98%); |
| 128 | + --primary: hsl(217.2 91.2% 59.8%); |
| 129 | + --primary-foreground: hsl(222.2 47.4% 11.2%); |
| 130 | + --secondary: hsl(217.2 32.6% 17.5%); |
| 131 | + --secondary-foreground: hsl(210 40% 98%); |
| 132 | + --muted: hsl(217.2 32.6% 17.5%); |
| 133 | + --muted-foreground: hsl(215 20.2% 65.1%); |
| 134 | + --accent: hsl(217.2 32.6% 17.5%); |
| 135 | + --accent-foreground: hsl(210 40% 98%); |
| 136 | + --destructive: hsl(0 62.8% 30.6%); |
| 137 | + --destructive-foreground: hsl(210 40% 98%); |
| 138 | + --border: hsl(217.2 32.6% 17.5%); |
| 139 | + --input: hsl(217.2 32.6% 17.5%); |
| 140 | + --ring: hsl(224.3 76.3% 48%); |
| 141 | + |
| 142 | + --chart-1: hsl(220 70% 50%); |
| 143 | + --chart-2: hsl(160 60% 45%); |
| 144 | + --chart-3: hsl(30 80% 55%); |
| 145 | + --chart-4: hsl(280 65% 60%); |
| 146 | + --chart-5: hsl(340 75% 55%); |
| 147 | +} |
| 148 | + |
64 | 149 | @layer base { |
65 | 150 | * { |
66 | 151 | @apply border-border; |
|
0 commit comments