|
1 | | -@tailwind base; |
2 | | -@tailwind components; |
3 | | -@tailwind utilities; |
4 | | - |
5 | | -@layer base { |
6 | | - :root { |
7 | | - /* --font-sans: here if you have one */ |
8 | | - /* --font-mono: here if you got it... */ |
9 | | - |
10 | | - /* prefixed with foreground because it should look good on the background */ |
11 | | - --foreground-destructive: 345 82.7% 40.8%; |
12 | | - |
13 | | - --background: 0 0% 100%; |
14 | | - --foreground: 222.2 84% 4.9%; |
15 | | - |
16 | | - --muted: 210 40% 93%; |
17 | | - --muted-foreground: 215.4 16.3% 30%; |
18 | | - |
19 | | - --popover: 0 0% 100%; |
20 | | - --popover-foreground: 222.2 84% 4.9%; |
21 | | - |
22 | | - --card: 0 0% 100%; |
23 | | - --card-foreground: 222.2 84% 4.9%; |
24 | | - |
25 | | - --border: 214.3 31.8% 91.4%; |
26 | | - --input: 214.3 31.8% 91.4%; |
27 | | - --input-invalid: 0 84.2% 60.2%; |
28 | | - |
29 | | - --primary: 222.2 47.4% 11.2%; |
30 | | - --primary-foreground: 210 40% 98%; |
31 | | - |
32 | | - --secondary: 210 20% 83%; |
33 | | - --secondary-foreground: 222.2 47.4% 11.2%; |
34 | | - |
35 | | - --accent: 210 40% 90%; |
36 | | - --accent-foreground: 222.2 47.4% 11.2%; |
37 | | - |
38 | | - --destructive: 0 70% 50%; |
39 | | - --destructive-foreground: 210 40% 98%; |
40 | | - |
41 | | - --ring: 215 20.2% 65.1%; |
42 | | - |
43 | | - --radius: 0.5rem; |
| 1 | +@import 'tailwindcss'; |
| 2 | + |
| 3 | +@plugin "tailwindcss-animate"; |
| 4 | +@plugin "tailwindcss-radix"; |
| 5 | + |
| 6 | +@custom-variant dark (&:is(.dark *)); |
| 7 | + |
| 8 | +@theme { |
| 9 | + --font-sans: |
| 10 | + 'Inter', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', |
| 11 | + 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; |
| 12 | + |
| 13 | + --animate-roll-reveal: roll-reveal 0.4s cubic-bezier(0.22, 1.28, 0.54, 0.99); |
| 14 | + --animate-slide-left: slide-left 0.3s ease-out; |
| 15 | + --animate-slide-top: slide-top 0.3s ease-out; |
| 16 | + |
| 17 | + @keyframes roll-reveal { |
| 18 | + from { |
| 19 | + opacity: 0; |
| 20 | + transform: rotate(12deg) scale(0); |
| 21 | + } |
| 22 | + to { |
| 23 | + opacity: 1; |
| 24 | + transform: rotate(0deg) scale(1); |
| 25 | + } |
44 | 26 | } |
45 | 27 |
|
46 | | - .dark { |
47 | | - --background: 222.2 84% 4.9%; |
48 | | - --foreground: 210 40% 98%; |
49 | | - |
50 | | - /* prefixed with foreground because it should look good on the background */ |
51 | | - --foreground-destructive: -4 84% 60%; |
52 | | - |
53 | | - --muted: 217.2 32.6% 12%; |
54 | | - --muted-foreground: 215 20.2% 65.1%; |
55 | | - |
56 | | - --popover: 222.2 84% 4.9%; |
57 | | - --popover-foreground: 210 40% 98%; |
| 28 | + @keyframes slide-left { |
| 29 | + from { |
| 30 | + opacity: 0; |
| 31 | + transform: translateX(20px); |
| 32 | + } |
| 33 | + to { |
| 34 | + opacity: 1; |
| 35 | + transform: translateX(0px); |
| 36 | + } |
| 37 | + } |
58 | 38 |
|
59 | | - --card: 222.2 84% 4.9%; |
60 | | - --card-foreground: 210 40% 98%; |
| 39 | + @keyframes slide-top { |
| 40 | + from { |
| 41 | + opacity: 0; |
| 42 | + transform: translateY(20px); |
| 43 | + } |
| 44 | + to { |
| 45 | + opacity: 1; |
| 46 | + transform: translateY(0px); |
| 47 | + } |
| 48 | + } |
| 49 | +} |
61 | 50 |
|
62 | | - --border: 217.2 32.6% 17.5%; |
63 | | - --input: 217.2 32.6% 17.5%; |
64 | | - --input-invalid: 0 62.8% 30.6%; |
| 51 | +html, |
| 52 | +body { |
| 53 | + @apply bg-white dark:bg-gray-950; |
65 | 54 |
|
66 | | - --primary: 210 40% 98%; |
67 | | - --primary-foreground: 222.2 47.4% 11.2%; |
| 55 | + @media (prefers-color-scheme: dark) { |
| 56 | + color-scheme: dark; |
| 57 | + } |
| 58 | +} |
68 | 59 |
|
69 | | - --secondary: 217.2 20% 24%; |
70 | | - --secondary-foreground: 210 40% 98%; |
| 60 | +:root { |
| 61 | + --background: oklch(1 0 0); |
| 62 | + --foreground: oklch(0.145 0 0); |
| 63 | + --card: oklch(1 0 0); |
| 64 | + --card-foreground: oklch(0.145 0 0); |
| 65 | + --popover: oklch(1 0 0); |
| 66 | + --popover-foreground: oklch(0.145 0 0); |
| 67 | + --primary: oklch(0.205 0 0); |
| 68 | + --primary-foreground: oklch(0.985 0 0); |
| 69 | + --secondary: oklch(0.97 0 0); |
| 70 | + --secondary-foreground: oklch(0.205 0 0); |
| 71 | + --muted: oklch(0.97 0 0); |
| 72 | + --muted-foreground: oklch(0.556 0 0); |
| 73 | + --accent: oklch(0.97 0 0); |
| 74 | + --accent-foreground: oklch(0.205 0 0); |
| 75 | + --destructive: oklch(0.577 0.245 27.325); |
| 76 | + --destructive-foreground: oklch(0.577 0.245 27.325); |
| 77 | + --border: oklch(0.922 0 0); |
| 78 | + --input: oklch(0.922 0 0); |
| 79 | + --ring: oklch(0.87 0 0); |
| 80 | + --chart-1: oklch(0.646 0.222 41.116); |
| 81 | + --chart-2: oklch(0.6 0.118 184.704); |
| 82 | + --chart-3: oklch(0.398 0.07 227.392); |
| 83 | + --chart-4: oklch(0.828 0.189 84.429); |
| 84 | + --chart-5: oklch(0.769 0.188 70.08); |
| 85 | + --radius: 0.625rem; |
| 86 | + --sidebar: oklch(0.985 0 0); |
| 87 | + --sidebar-foreground: oklch(0.145 0 0); |
| 88 | + --sidebar-primary: oklch(0.205 0 0); |
| 89 | + --sidebar-primary-foreground: oklch(0.985 0 0); |
| 90 | + --sidebar-accent: oklch(0.97 0 0); |
| 91 | + --sidebar-accent-foreground: oklch(0.205 0 0); |
| 92 | + --sidebar-border: oklch(0.922 0 0); |
| 93 | + --sidebar-ring: oklch(0.87 0 0); |
| 94 | +} |
71 | 95 |
|
72 | | - --accent: 217.2 32.6% 10%; |
73 | | - --accent-foreground: 210 40% 98%; |
| 96 | +.dark { |
| 97 | + --background: oklch(0.145 0 0); |
| 98 | + --foreground: oklch(0.985 0 0); |
| 99 | + --card: oklch(0.145 0 0); |
| 100 | + --card-foreground: oklch(0.985 0 0); |
| 101 | + --popover: oklch(0.145 0 0); |
| 102 | + --popover-foreground: oklch(0.985 0 0); |
| 103 | + --primary: oklch(0.985 0 0); |
| 104 | + --primary-foreground: oklch(0.205 0 0); |
| 105 | + --secondary: oklch(0.269 0 0); |
| 106 | + --secondary-foreground: oklch(0.985 0 0); |
| 107 | + --muted: oklch(0.269 0 0); |
| 108 | + --muted-foreground: oklch(0.708 0 0); |
| 109 | + --accent: oklch(0.269 0 0); |
| 110 | + --accent-foreground: oklch(0.985 0 0); |
| 111 | + --destructive: oklch(0.396 0.141 25.723); |
| 112 | + --destructive-foreground: oklch(0.637 0.237 25.331); |
| 113 | + --border: oklch(0.269 0 0); |
| 114 | + --input: oklch(0.269 0 0); |
| 115 | + --ring: oklch(0.439 0 0); |
| 116 | + --chart-1: oklch(0.488 0.243 264.376); |
| 117 | + --chart-2: oklch(0.696 0.17 162.48); |
| 118 | + --chart-3: oklch(0.769 0.188 70.08); |
| 119 | + --chart-4: oklch(0.627 0.265 303.9); |
| 120 | + --chart-5: oklch(0.645 0.246 16.439); |
| 121 | + --sidebar: oklch(0.205 0 0); |
| 122 | + --sidebar-foreground: oklch(0.985 0 0); |
| 123 | + --sidebar-primary: oklch(0.488 0.243 264.376); |
| 124 | + --sidebar-primary-foreground: oklch(0.985 0 0); |
| 125 | + --sidebar-accent: oklch(0.269 0 0); |
| 126 | + --sidebar-accent-foreground: oklch(0.985 0 0); |
| 127 | + --sidebar-border: oklch(0.269 0 0); |
| 128 | + --sidebar-ring: oklch(0.439 0 0); |
| 129 | +} |
74 | 130 |
|
75 | | - --destructive: 0 60% 40%; |
76 | | - --destructive-foreground: 0 85.7% 97.3%; |
| 131 | +@theme inline { |
| 132 | + --color-background: var(--background); |
| 133 | + --color-foreground: var(--foreground); |
| 134 | + --color-card: var(--card); |
| 135 | + --color-card-foreground: var(--card-foreground); |
| 136 | + --color-popover: var(--popover); |
| 137 | + --color-popover-foreground: var(--popover-foreground); |
| 138 | + --color-primary: var(--primary); |
| 139 | + --color-primary-foreground: var(--primary-foreground); |
| 140 | + --color-secondary: var(--secondary); |
| 141 | + --color-secondary-foreground: var(--secondary-foreground); |
| 142 | + --color-muted: var(--muted); |
| 143 | + --color-muted-foreground: var(--muted-foreground); |
| 144 | + --color-accent: var(--accent); |
| 145 | + --color-accent-foreground: var(--accent-foreground); |
| 146 | + --color-destructive: var(--destructive); |
| 147 | + --color-destructive-foreground: var(--destructive-foreground); |
| 148 | + --color-border: var(--border); |
| 149 | + --color-input: var(--input); |
| 150 | + --color-ring: var(--ring); |
| 151 | + --color-chart-1: var(--chart-1); |
| 152 | + --color-chart-2: var(--chart-2); |
| 153 | + --color-chart-3: var(--chart-3); |
| 154 | + --color-chart-4: var(--chart-4); |
| 155 | + --color-chart-5: var(--chart-5); |
| 156 | + --radius-sm: calc(var(--radius) - 4px); |
| 157 | + --radius-md: calc(var(--radius) - 2px); |
| 158 | + --radius-lg: var(--radius); |
| 159 | + --radius-xl: calc(var(--radius) + 4px); |
| 160 | + --color-sidebar: var(--sidebar); |
| 161 | + --color-sidebar-foreground: var(--sidebar-foreground); |
| 162 | + --color-sidebar-primary: var(--sidebar-primary); |
| 163 | + --color-sidebar-primary-foreground: var(--sidebar-primary-foreground); |
| 164 | + --color-sidebar-accent: var(--sidebar-accent); |
| 165 | + --color-sidebar-accent-foreground: var(--sidebar-accent-foreground); |
| 166 | + --color-sidebar-border: var(--sidebar-border); |
| 167 | + --color-sidebar-ring: var(--sidebar-ring); |
| 168 | +} |
77 | 169 |
|
78 | | - --ring: 217.2 32.6% 60%; |
| 170 | +@layer base { |
| 171 | + * { |
| 172 | + @apply border-border outline-ring/50; |
| 173 | + } |
| 174 | + body { |
| 175 | + @apply bg-background text-foreground; |
79 | 176 | } |
80 | 177 | } |
0 commit comments