|
1 | 1 | @import "tailwindcss"; |
2 | | - |
3 | | -/* * NOTE on @custom-variant and tw-animate-css: |
4 | | - * Tailwind CSS v4 focuses on a standard CSS workflow. |
5 | | - * If 'tw-animate-css' and '@custom-variant' are needed, |
6 | | - * you must ensure they are supported by your specific PostCSS setup. |
7 | | - * For standard v4, you'd usually define the dark mode class in your config. |
8 | | - * * Assuming 'tw-animate-css' is a necessary plugin/import: |
9 | | - */ |
10 | 2 | @import "tw-animate-css"; |
11 | 3 |
|
12 | | -/* * V4 Recommendation: Define the dark variant directly in your tailwind.config.js |
13 | | - * if possible (e.g., darkMode: ['class', '.dark']). |
14 | | - * If you must define a custom variant here, the syntax is correct for PostCSS/Tailwind: |
15 | | - */ |
16 | 4 | @custom-variant dark { |
17 | 5 | :is(.dark &) ; |
18 | 6 | } |
19 | 7 |
|
20 | 8 | @layer base { |
21 | | - /* Global reset for border color. */ |
22 | 9 | * { |
23 | 10 | border-color: hsl(var(--border)); |
24 | | - /* Improved focus state for accessibility */ |
25 | 11 | &:focus-visible { |
26 | 12 | outline-color: hsl(var(--ring)); |
27 | 13 | outline: 2px solid; |
28 | 14 | outline-offset: 2px; |
29 | 15 | } |
30 | 16 | } |
31 | 17 |
|
32 | | - /* Correct placement of body selector, sibling to * */ |
33 | 18 | body { |
34 | 19 | background-color: hsl(var(--background)); |
35 | 20 | color: hsl(var(--foreground)); |
36 | 21 | } |
37 | 22 |
|
38 | | - /* ---------------------- ☀️ Light Theme (:root) ---------------------- */ |
| 23 | + /* LIGHT – soft neutral SaaS */ |
39 | 24 | :root { |
40 | | - /* Base Colors */ |
41 | | - --background: 0 0% 100%; |
42 | | - --foreground: 222.2 84% 4.9%; |
| 25 | + --background: 220 23% 98%; |
| 26 | + --foreground: 222 47% 10%; |
| 27 | + |
43 | 28 | --card: 0 0% 100%; |
44 | | - --card-foreground: 222.2 84% 4.9%; |
| 29 | + --card-foreground: 222 47% 10%; |
| 30 | + |
45 | 31 | --popover: 0 0% 100%; |
46 | | - --popover-foreground: 222.2 84% 4.9%; |
| 32 | + --popover-foreground: 222 47% 10%; |
47 | 33 |
|
48 | | - /* Primary / Secondary / Functional */ |
49 | | - --primary: 221.2 83.2% 53.3%; |
| 34 | + --primary: 221 78% 55%; |
50 | 35 | --primary-foreground: 210 40% 98%; |
51 | | - --secondary: 210 40% 96.1%; |
52 | | - --secondary-foreground: 222.2 47.4% 11.2%; |
53 | | - --muted: 210 40% 96.1%; |
54 | | - --muted-foreground: 215.4 16.3% 46.9%; |
55 | | - --accent: 210 40% 96.1%; |
56 | | - --accent-foreground: 222.2 47.4% 11.2%; |
57 | | - --destructive: 0 84.2% 60.2%; |
| 36 | + |
| 37 | + --secondary: 210 40% 97%; |
| 38 | + --secondary-foreground: 222 40% 20%; |
| 39 | + |
| 40 | + --muted: 210 25% 96%; |
| 41 | + --muted-foreground: 215 15% 45%; |
| 42 | + |
| 43 | + --accent: 210 40% 96%; |
| 44 | + --accent-foreground: 222 47% 12%; |
| 45 | + |
| 46 | + --destructive: 352 84% 62%; |
58 | 47 | --destructive-foreground: 210 40% 98%; |
59 | 48 |
|
60 | | - /* Borders & Interaction */ |
61 | | - --border: 214.3 31.8% 91.4%; |
62 | | - --input: 214.3 31.8% 91.4%; |
63 | | - --ring: 221.2 83.2% 53.3%; |
| 49 | + --border: 210 24% 90%; |
| 50 | + --input: 210 24% 90%; |
| 51 | + --ring: 221 78% 55%; |
64 | 52 |
|
65 | | - /* Radius */ |
66 | | - --radius: 0.5rem; |
| 53 | + --radius: 0.75rem; |
67 | 54 | --radius-sm: calc(var(--radius) - 4px); |
68 | 55 | --radius-md: calc(var(--radius) - 2px); |
69 | 56 | --radius-lg: var(--radius); |
70 | | - --radius-xl: calc(var(--radius) + 4px); |
| 57 | + --radius-xl: calc(var(--radius) + 6px); |
71 | 58 |
|
72 | | - /* Chart Colors */ |
73 | | - --chart-1: 12 76% 61%; |
74 | | - --chart-2: 173 58% 39%; |
75 | | - --chart-3: 197 37% 24%; |
76 | | - --chart-4: 43 74% 66%; |
77 | | - --chart-5: 27 87% 67%; |
| 59 | + --chart-1: 222 84% 56%; |
| 60 | + --chart-2: 160 72% 45%; |
| 61 | + --chart-3: 28 85% 57%; |
| 62 | + --chart-4: 280 70% 60%; |
| 63 | + --chart-5: 340 82% 62%; |
78 | 64 |
|
79 | | - /* Sidebar Variables (Simplified to reference existing colors) */ |
80 | | - --sidebar: var(--background); |
| 65 | + --sidebar: var(--card); |
81 | 66 | --sidebar-foreground: var(--foreground); |
82 | 67 | --sidebar-primary: var(--primary); |
83 | 68 | --sidebar-primary-foreground: var(--primary-foreground); |
|
87 | 72 | --sidebar-ring: var(--ring); |
88 | 73 | } |
89 | 74 |
|
90 | | - /* ---------------------- 🌙 Dark Theme (.dark) ---------------------- */ |
| 75 | + /* DARK – warm navy, softened whites */ |
91 | 76 | .dark { |
92 | | - /* Base Colors */ |
93 | | - --background: 222.2 84% 4.9%; |
94 | | - --foreground: 210 40% 98%; |
95 | | - --card: 222.2 84% 4.9%; |
96 | | - --card-foreground: 210 40% 98%; |
97 | | - --popover: 222.2 84% 4.9%; |
98 | | - --popover-foreground: 210 40% 98%; |
99 | | - |
100 | | - /* Primary / Secondary / Functional */ |
101 | | - --primary: 217.2 91.2% 59.8%; |
102 | | - --primary-foreground: 222.2 47.4% 11.2%; |
103 | | - --secondary: 217.2 32.6% 17.5%; |
104 | | - --secondary-foreground: 210 40% 98%; |
105 | | - --muted: 217.2 32.6% 17.5%; |
106 | | - --muted-foreground: 215 20.2% 65.1%; |
107 | | - --accent: 217.2 32.6% 17.5%; |
108 | | - --accent-foreground: 210 40% 98%; |
109 | | - --destructive: 0 62.8% 30.6%; |
110 | | - --destructive-foreground: 210 40% 98%; |
| 77 | + --background: 222 28% 10%; |
| 78 | + --foreground: 210 25% 92%; |
| 79 | + |
| 80 | + --card: 222 24% 14%; |
| 81 | + --card-foreground: 210 25% 92%; |
| 82 | + |
| 83 | + --popover: 222 24% 14%; |
| 84 | + --popover-foreground: 210 25% 92%; |
| 85 | + |
| 86 | + --primary: 222 70% 60%; |
| 87 | + --primary-foreground: 222 40% 12%; |
| 88 | + |
| 89 | + --secondary: 222 22% 18%; |
| 90 | + --secondary-foreground: 210 25% 92%; |
| 91 | + |
| 92 | + --muted: 222 20% 20%; |
| 93 | + --muted-foreground: 215 18% 70%; |
| 94 | + |
| 95 | + --accent: 222 22% 22%; |
| 96 | + --accent-foreground: 210 25% 92%; |
111 | 97 |
|
112 | | - /* Borders & Interaction */ |
113 | | - --border: 217.2 32.6% 17.5%; |
114 | | - --input: 217.2 32.6% 17.5%; |
115 | | - --ring: 224.3 76.3% 48%; |
| 98 | + --destructive: 352 70% 52%; |
| 99 | + --destructive-foreground: 0 0% 98%; |
116 | 100 |
|
117 | | - /* Chart Colors */ |
118 | | - --chart-1: 220 70% 50%; |
119 | | - --chart-2: 160 60% 45%; |
120 | | - --chart-3: 30 80% 55%; |
121 | | - --chart-4: 280 65% 60%; |
122 | | - --chart-5: 340 75% 55%; |
| 101 | + --border: 222 18% 26%; |
| 102 | + --input: 222 18% 26%; |
| 103 | + --ring: 222 70% 60%; |
123 | 104 |
|
124 | | - /* Sidebar variables will inherit from the dark base colors defined here. */ |
| 105 | + --chart-1: 222 70% 60%; |
| 106 | + --chart-2: 160 65% 50%; |
| 107 | + --chart-3: 30 80% 58%; |
| 108 | + --chart-4: 280 70% 62%; |
| 109 | + --chart-5: 340 75% 60%; |
125 | 110 | } |
126 | 111 | } |
0 commit comments