@warmio/design 1.10.1 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/theme.css CHANGED
@@ -1,644 +1,315 @@
1
1
  /* ════════════════════════════════════════════════════════════════════════════
2
- 4-COLOR THEME SYSTEM
2
+ WARM TOKENS — closed scales
3
3
 
4
- Theme definitions are in themes.css. This file contains the derivation system.
4
+ Every color in the product resolves to one of these primitives:
5
+ gray ramp (11 steps), semantic hues (success, warning, error, info,
6
+ finance, accent), and black/white alpha steps (5, 10, 20, 50%).
7
+ Semantic tokens map onto primitives per mode; component CSS consumes
8
+ semantic tokens only. color-mix uses oklab at 5/10/20/50%.
5
9
 
6
- INPUT (defined per-theme in themes.css as hex colors):
7
- --brand-primary Main identity (buttons, links, primary actions)
8
- --brand-accent Complementary accent (secondary elements, highlights)
9
- --brand-muted Subtle tone (charts, badges, tertiary elements)
10
- --brand-neutral Base for surfaces (backgrounds, borders, text)
11
-
12
- DERIVED:
13
- All UI colors are derived from these 4 base colors using CSS relative
14
- color syntax: oklch(from var(--color) l c h)
15
-
16
- MODE: Light/dark controlled via .dark class
17
-
18
- Semantic colors (success, warning, error, info) are FIXED because their
19
- meanings are universal and culturally established.
10
+ MODE: light is the default (:root, .light); dark via .dark.
20
11
  ════════════════════════════════════════════════════════════════════════════ */
21
12
 
22
- /* Import theme definitions */
23
- @import './themes.css';
24
-
25
13
  :root {
26
- /* ══════════════════════════════════════════════════════════════════════════
27
- PRIMARY — From brand-primary
28
- Main identity color for buttons, links, and primary actions.
29
- ══════════════════════════════════════════════════════════════════════════ */
30
- --primary: #292929;
31
- --primary-foreground: #fafafa;
32
- --ring: oklch(0.714 0.014 41.2);
33
- --focus: oklch(0.714 0.014 41.2 / 0.5);
34
- --active: oklch(0.214 0.009 43.1 / 0.18);
35
- /* Unified focus ring base color for outline + pseudo ring */
36
- --focus-ring: oklch(0.714 0.014 41.2);
37
-
38
- /* ══════════════════════════════════════════════════════════════════════════
39
- ACCENT — From brand-accent
40
- Complementary color for secondary elements and highlights.
41
- ══════════════════════════════════════════════════════════════════════════ */
42
- --accent: oklch(0.96 0.002 17.2);
43
- --accent-foreground: oklch(0.214 0.009 43.1);
44
- --accent-solid: var(--brand-accent-solid);
45
- --accent-solid-text: oklch(from var(--brand-accent-solid) calc(l - 0.14) calc(c + 0.02) h);
46
-
47
- /* Interactive hover background - single source of truth for all hover states */
48
- --hover-bg: color-mix(in oklch, var(--foreground) 4%, transparent);
49
-
50
- /* ══════════════════════════════════════════════════════════════════════════
51
- SECONDARY — Derived from brand-primary (lighter, desaturated)
52
- For secondary buttons and less prominent actions.
53
- ══════════════════════════════════════════════════════════════════════════ */
54
- --secondary: oklch(0.96 0.002 17.2);
55
- --secondary-foreground: oklch(0.214 0.009 43.1);
56
-
57
- /* ══════════════════════════════════════════════════════════════════════════
58
- SURFACES — From brand-neutral
59
- Backgrounds, cards, borders - subtle tinted neutrals.
60
- ══════════════════════════════════════════════════════════════════════════ */
61
- --background: rgba(230, 230, 230, 1);
62
- --foreground: #292929;
63
- --card: rgba(240, 240, 240, 1);
64
- --card-gradient-start: rgba(240, 240, 240, 1);
65
- --card-foreground: var(--foreground);
66
- --popover: var(--card);
67
- --popover-foreground: var(--foreground);
68
- --muted: oklch(0.96 0 0);
69
- --muted-foreground: #5d5d5d;
70
- --tertiary-foreground: #9e9e9e;
71
- --border: oklch(0.922 0 0);
72
- --input: var(--border);
14
+ /* ─── Gray ramp ─── */
15
+ --gray-0: #ffffff;
16
+ --gray-50: #f0f0f0;
17
+ --gray-100: #e6e6e6;
18
+ --gray-200: #cecece;
19
+ --gray-400: #9e9e9e;
20
+ --gray-600: #5d5d5d;
21
+ --gray-700: #444444;
22
+ --gray-800: #292929;
23
+ --gray-900: #1d1d1d;
24
+ --gray-950: #161616;
25
+ --gray-1000: #000000;
26
+
27
+ /* ─── Alpha steps ─── */
28
+ --black-5: rgb(0 0 0 / 0.05);
29
+ --black-10: rgb(0 0 0 / 0.1);
30
+ --black-20: rgb(0 0 0 / 0.2);
31
+ --black-50: rgb(0 0 0 / 0.5);
32
+ --white-5: rgb(255 255 255 / 0.05);
33
+ --white-10: rgb(255 255 255 / 0.1);
34
+ --white-20: rgb(255 255 255 / 0.2);
35
+ --white-50: rgb(255 255 255 / 0.5);
36
+
37
+ /* ─── Mode-independent hues ─── */
38
+ --success: oklch(0.65 0.16 145);
39
+ --warning: oklch(0.75 0.17 85);
40
+ --destructive: oklch(0.55 0.12 30);
41
+ --accent-solid: #8b80a6;
73
42
 
74
- /* Type scale: caption 12px, label 13px, body 14px, display 24px. */
43
+ /* ─── Type: caption 12, label 13, body 14, large 18, display 24 ─── */
75
44
  --type-size-caption: 0.75rem;
76
45
  --type-size-label: 0.8125rem;
77
46
  --type-size-body: 0.875rem;
47
+ --type-size-large: 1.125rem;
78
48
  --type-size-display: 1.5rem;
79
49
 
80
- /* Alternating section backgrounds for marketing pages */
81
- --section-alt: oklch(0.986 0 0);
82
-
83
- /* Marketing surface and dot patterns (owned by design) */
84
- --marketing-surface: #f7f7f7;
85
- --marketing-pattern-dots-size: 5px 5px;
86
- --marketing-pattern-dots: radial-gradient(
87
- circle at 0.5px 0.5px,
88
- oklch(0 0 0 / 0.08) 0.5px,
89
- transparent 0.5px
90
- );
91
- --marketing-pattern-dots-dark: radial-gradient(
92
- circle at 0.5px 0.5px,
93
- oklch(1 0 0 / 0.08) 0.5px,
94
- transparent 0.5px
95
- );
96
-
97
- /* Charts */
98
- --chart-1: oklch(0.32 0 none);
99
- --chart-2: oklch(0.41 0 none);
100
- --chart-3: oklch(0.54 0 none);
101
- --chart-4: oklch(0.71 0 none);
102
- --chart-5: oklch(0.89 0 none);
103
-
104
- /* Logo */
105
- --logo-accent: var(--logo-primary);
106
-
107
- /* ══════════════════════════════════════════════════════════════════════════
108
- SIDEBAR — Transparent to show body texture
109
- ══════════════════════════════════════════════════════════════════════════ */
110
- --sidebar: rgba(230, 230, 230, 1);
111
- --sidebar-foreground: var(--foreground);
112
- --sidebar-primary: var(--primary);
113
- --sidebar-primary-foreground: var(--primary-foreground);
114
- --sidebar-accent: oklch(1 0 0);
115
- --sidebar-accent-foreground: oklch(0.214 0.009 43.1);
116
- --sidebar-border: oklch(0.922 0 0);
117
- --sidebar-ring: oklch(0.714 0.014 41.2);
118
-
119
- /* ══════════════════════════════════════════════════════════════════════════
120
- FIXED SEMANTIC COLORS
121
- These are universal - green=success, amber=warning, red=error, blue=info
122
- ══════════════════════════════════════════════════════════════════════════ */
123
- /* Success = Green (H: 145) */
124
- --success: oklch(0.65 0.16 145);
125
- --success-text: oklch(0.35 0.16 145);
126
- --success-bg-subtle: oklch(0.96 0.03 145);
127
- --success-bg-muted: oklch(0.9 0.08 145);
128
- --success-border: oklch(0.75 0.12 145);
129
-
130
- /* Warning = Amber (H: 85) */
131
- --warning: oklch(0.75 0.17 85);
132
- --warning-text: oklch(0.35 0.17 85);
133
- --warning-bg-subtle: oklch(0.96 0.03 85);
134
- --warning-bg-muted: oklch(0.9 0.1 85);
135
- --warning-border: oklch(0.75 0.12 85);
136
- --warning-card-surface: color-mix(in oklab, var(--warning) 10%, transparent);
137
-
138
- /* Finance = legible on-surface tones of WARM_COLORS.finance
139
- (libraries/app-core/utils/colors.ts): cash=sage, debt=mauve, investment=seafoam.
140
- Darkened from the raw palette hues so they meet AA as text on light surfaces. */
141
- --finance-cash: oklch(0.43 0.055 128);
142
- --finance-debt: oklch(0.45 0.09 5);
143
- --finance-investment: oklch(0.44 0.05 200);
144
-
145
- /* Destructive/Error = Red (H: 30) */
146
- --destructive: oklch(0.55 0.12 30);
147
- --destructive-foreground: oklch(1 0 0);
148
- --danger: var(--destructive);
149
- --error-text: oklch(0.35 0.14 30);
150
- --error-bg-subtle: oklch(0.96 0.02 30);
151
- --error-bg-muted: oklch(0.9 0.06 30);
152
- --error-border: oklch(0.68 0.08 30);
153
- --danger-card-surface: color-mix(in oklab, var(--destructive) 10%, transparent);
154
-
155
- /* Info = Blue (H: 250) */
156
- --info-text: oklch(0.35 0.1 250);
157
- --info-bg-subtle: oklch(0.96 0.02 250);
158
- --info-bg-muted: oklch(0.9 0.06 250);
159
- --info-border: oklch(0.75 0.06 250);
160
-
161
- /* ══════════════════════════════════════════════════════════════════════════
162
- EFFECTS & OVERLAYS (Light Mode)
163
- ══════════════════════════════════════════════════════════════════════════ */
164
-
165
- --overlay-subtle: rgb(0 0 0 / 0.05);
166
- --shadow-card-edge-tight: rgb(0 0 0 / 0.08);
167
- --overlay-light: rgb(0 0 0 / 0.1);
168
- --overlay-medium: rgb(0 0 0 / 0.2);
169
- --overlay-strong: rgb(0 0 0 / 0.25);
170
- --overlay-heavy: rgb(0 0 0 / 0.33);
171
-
172
- --highlight-subtle: rgb(255 255 255 / 0.3);
173
- --highlight-light: rgb(255 255 255 / 0.5);
174
- --highlight-medium: rgb(255 255 255 / 0.8);
175
- --highlight-strong: rgb(255 255 255 / 1);
176
-
177
- --glass-background: rgb(0 0 0 / 0.02);
178
- --glass-border: rgb(255 255 255 / 0.5);
179
- --backdrop-blur: rgb(0 0 0 / 0.1);
180
-
181
- /* Auth coastal backdrop */
182
- --auth-backdrop-overlay-start: oklch(0.98 0.018 300 / 0.94);
183
- --auth-backdrop-overlay-end: oklch(0.94 0.035 266 / 0.72);
184
- --auth-backdrop-overlay-accent: oklch(0.82 0.1 318 / 0.5);
185
-
186
- /* Shadows */
187
- --shadow-2xs: 0px 1px 2px 0px var(--overlay-subtle);
188
- --shadow-xs: 0px 1px 2px 0px var(--overlay-subtle);
189
- --shadow-sm: 0px 1px 2px 0px var(--overlay-light), 0px 1px 2px -1px var(--overlay-light);
190
- --shadow: 0px 1px 2px 0px var(--overlay-light), 0px 1px 2px -1px var(--overlay-light);
191
- --shadow-md: 0px 1px 2px 0px var(--overlay-light), 0px 2px 4px -1px var(--overlay-light);
192
- --shadow-lg: 0px 1px 2px 0px var(--overlay-light), 0px 4px 6px -1px var(--overlay-light);
193
- --shadow-xl: 0px 1px 2px 0px var(--overlay-light), 0px 8px 10px -1px var(--overlay-light);
194
- --shadow-2xl: 0px 1px 2px 0px var(--overlay-strong);
195
- --shadow-border:
196
- 0 -1px 0 0 var(--card-edge-border, var(--border)),
197
- 1px 0 0 0 var(--card-edge-border, var(--border)),
198
- -1px 0 0 0 var(--card-edge-border, var(--border)),
199
- 0 1px 0 0 color-mix(in oklch, var(--card-edge-border, var(--border)) 75%, black),
200
- 0 1px 2px -1px var(--shadow-card-edge-tight), 0 2px 4px 0 var(--overlay-subtle);
201
- /* ══════════════════════════════════════════════════════════════════════════
202
- NON-COLOR TOKENS (shared across all themes)
203
- ══════════════════════════════════════════════════════════════════════════ */
204
-
205
- /* Typography — Inter is the Google-hosted UI family; JetBrains Mono
206
- remains reserved for values, code, and measurements. */
207
- --tracking-normal: normal;
208
-
209
- /* Spacing Scale — --spacing is the Tailwind seed (0.25rem). Product surfaces use 0 / 8px / 16px only; xs/md/xl/2xl below are leftover advertised names, not product steps. */
50
+ /* ─── Spacing: Tailwind seed plus 4 (inset), 8 and 16 ─── */
210
51
  --spacing: 0.25rem;
211
52
  --spacing-xs: 0.25rem;
212
53
  --spacing-sm: 0.5rem;
213
- --spacing-md: 0.75rem;
214
54
  --spacing-lg: 1rem;
215
- --spacing-xl: 1.5rem;
216
- --spacing-2xl: 2rem;
217
-
218
- /* Motion tokens (single source of truth; package-wide reduced-motion contract)
219
- * --motion-duration-essential unused by default (requires audited justification + exception)
220
- * nonessentials (chart uses slow) zero under reduced-motion
221
- */
222
- --motion-duration-fast: 100ms;
223
- --motion-duration-normal: 300ms;
224
- --motion-duration-slow: 600ms;
225
- --motion-duration-essential: 1000ms;
226
- --motion-distance-sm: 0.25rem;
227
- --motion-distance-md: 0.5rem;
228
- --motion-distance-lg: 1rem;
55
+
56
+ /* ─── Radius ─── */
57
+ --radius-sm: 0.25rem;
58
+ --radius-md: 0.5rem;
59
+ --radius-lg: 0.75rem;
60
+ --radius-xl: 1rem;
61
+ --radius-full: 9999px;
62
+ --radius: var(--radius-md);
63
+
64
+ /* ─── Motion: one scale shared with FLUID_SPRING (80/160/240ms) ─── */
65
+ --motion-duration-fast: 80ms;
66
+ --motion-duration-normal: 160ms;
67
+ --motion-duration-slow: 240ms;
68
+ --motion-distance: 0.25rem;
69
+ --motion-easing: cubic-bezier(0.23, 1, 0.32, 1);
70
+
71
+ /* ─── Controls: compact 28, default 36, jumbo 48 ─── */
72
+ --control-height-sm: 1.75rem;
73
+ --control-height: 2.25rem;
74
+ --control-height-lg: 3rem;
75
+ --icon-size-sm: 0.75rem;
76
+ --icon-size: 1rem;
77
+ --focus-ring-width: 2px;
229
78
  --button-press-inset: 1px;
230
- --button-press-easing: cubic-bezier(0.23, 1, 0.32, 1);
231
79
  --button-hover-brightness: 1.1;
232
-
233
- /* Aliases keep one scale; legacy names resolve to motion; chart uses slow (nonessential scale) */
234
- --transition-fast: var(--motion-duration-fast);
235
- --transition-normal: var(--motion-duration-normal);
236
- --transition-slow: var(--motion-duration-slow);
237
- --chart-animation-duration: var(--motion-duration-slow);
238
- --button-padding-x-sm: 0.5rem;
239
- --button-padding-y-sm: 0.25rem;
240
- --button-padding-x-md: 0.75rem;
241
- --button-padding-y-md: 0.5rem;
242
- --button-padding-x-lg: 1.75rem;
243
- --button-padding-y-lg: 0.75rem;
244
- --button-font-size: var(--type-size-body);
245
- --button-gap: 0.5rem;
246
- --default-button-gradient-start: #fff;
247
- --default-button-gradient-end: #f2f2f2;
248
- --default-button-active: oklch(0.91 0 0);
249
- --button-primary-bg: oklch(0.99 0 0);
250
- --button-primary-foreground: oklch(0.17 0 0);
251
- --button-primary-border: oklch(1 0 0 / 0.18);
252
- --button-primary-hover: oklch(1 0 0);
253
- --button-primary-active: oklch(0.94 0 0);
254
- --button-primary-shadow:
255
- inset 0 -1px 0 rgba(255, 255, 255, 1), 0 0 0 1px rgb(0 0 0 / 0.1), 0 1px 1px rgba(0, 0, 0, 0.1);
256
- --button-outline-shadow: none;
257
- --button-ghost-shadow:
258
- inset 0 1px 0 0px rgba(255, 255, 255, 1), 0 1px 0px rgba(0, 0, 0, 0.1),
259
- 0 1px 2px rgba(0, 0, 0, 0.2);
260
- /* Outline uses the neutral dark button gradient in light mode. */
261
- --button-outline-fill-image: linear-gradient(to bottom, #4d4d4d 0%, #333333 100%);
262
- --button-outline-fill-image-hover: linear-gradient(to bottom, #5a5a5a 0%, #404040 100%);
263
- --button-primary-gradient: linear-gradient(to bottom, #fff 0%, #f2f2f2 100%);
264
- --button-primary-gradient-hover: linear-gradient(to bottom, #fafafa 0%, #e0e0e0 100%);
265
- --apple-button-background: var(--foreground);
266
- --apple-button-foreground: var(--background);
267
- --apple-button-hover: var(--apple-button-background);
268
- /* ══════════════════════════════════════════════════════════════════════════
269
- CANONICAL BUTTON / LOGO / COMPONENT GEOMETRY TOKENS (small coherent set)
270
- Theme owns ALL; components.css uses ONLY var() / token-derived calc() for
271
- nonzero lengths/colors/shadows/radii/motion/timings. No local -- decls.
272
- */
273
- --button-height-default: 2.25rem;
274
- --button-height-jumbo: 3.5rem;
275
- --button-height-icon: 2.25rem;
276
- --button-min-height-touch: 2.75rem;
277
- --button-min-height-option: 4rem;
278
- --button-padding-x: 1.25rem;
279
- --button-font-size-base: var(--type-size-body);
280
- --button-font-size-jumbo: var(--type-size-body);
281
- --button-line-height-base: 1.25;
282
- --button-line-height: 1.25;
283
- --button-line-height-jumbo: 1.25;
284
- --button-line-height-hero: 1.25;
285
- --button-icon-size: 1rem;
286
- --button-icon-size-jumbo: 1.25rem;
287
- --button-icon-size-xs: 0.75rem;
288
- --button-size-xs: 1.5rem;
289
- --button-size-sm: 1.75rem;
290
- --button-size-md: 2rem;
291
- --button-size-lg: 3rem;
292
80
  --button-underline-offset: 0.25rem;
293
81
  --button-underline-thickness: 1px;
294
- --button-focus-ring: 3px;
295
- --logo-size-badge: 0.75rem;
296
- --logo-size-default: 1.75rem;
297
- --logo-size-feature: 2rem;
298
- --logo-size-hero: 3.5rem;
299
- --logo-font-size: var(--type-size-body);
300
- --logo-letter-spacing: 0.025em;
301
- --logo-gap: 0.5rem;
302
82
  --button-transition-property: color, background-color, box-shadow, border-color, transform;
303
83
  --button-surface-transition-property: inset, background-color, box-shadow;
304
84
  --button-transition-property-colors:
305
85
  color, background-color, border-color, outline-color, text-decoration-color, fill, stroke,
306
86
  --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
307
- --button-width-full: 100%;
308
- --warm-surface-raised-dark: var(--input);
309
- --warm-surface-raised-hover-dark: var(--muted);
310
- /* canonical mix percents and dark outline inset (resolve dark outline via tokens) */
311
- --button-mix-10: 10%;
312
- --button-mix-20: 20%;
313
- --button-mix-30: 30%;
314
- --button-mix-40: 40%;
315
- --button-mix-50: 50%;
316
- --button-mix-90: 90%;
317
- --radius-full: 33554400px;
318
-
319
- /* Form Specific */
320
- --input-height: 2.25rem;
321
- --input-height-sm: 2.5rem;
322
- --input-padding-x: 0.75rem;
323
- --input-padding-y: 0.5rem;
324
- --input-border-width: 1px;
325
- --input-font-size: 0.875rem;
326
-
327
- /* Unified Control Heights */
328
- --control-height-xs: 1.75rem;
329
- --control-height-sm: 2.25rem;
330
- --control-height-md: 2.5rem;
331
- --control-height-lg: 2.75rem;
332
-
333
- /* Table Density */
334
- --table-padding-normal-x: 0.75rem;
335
- --table-padding-normal-y: 0.75rem;
336
- --table-padding-compact-x: 0.75rem;
337
- --table-padding-compact-y: 0.5rem;
338
- --table-header-padding-x: 0.75rem;
339
- --table-header-padding-y: 0.5rem;
340
-
341
- /* Card Specific */
342
- --card-padding: 1rem;
343
- --card-header-padding: 1.5rem;
344
- --pricing-plan-min-width: 17.5rem;
345
-
346
- /* Overlay Sizing */
347
- --select-content-max-width: calc(100vw - var(--spacing-2xl));
348
-
349
- /* Border Radius */
350
- --radius: 0.5rem;
351
- --radius-sm: 0.125rem;
352
- --radius-md: 0.375rem;
353
- --radius-lg: 0.75rem;
354
- --radius-xl: 1rem;
355
87
 
356
- /* Buttons, inputs, and CTA controls use a pill radius. */
357
- --radius-interactive: var(--radius-full);
88
+ /* ─── Logo ─── */
89
+ --logo-size-badge: 0.75rem;
90
+ --logo-size-default: 1.75rem;
91
+ --logo-size-feature: 2rem;
92
+ --logo-size-hero: 3.5rem;
93
+ --logo-font-size: var(--type-size-body);
94
+ --logo-letter-spacing: 0.025em;
95
+ --logo-gap: var(--spacing-sm);
358
96
 
359
- /* Page Layout */
97
+ /* ─── Layout ─── */
360
98
  --page-padding-mobile: 0.5rem;
361
- --page-padding-tablet: 1rem;
362
- --page-padding-desktop: 1rem;
363
- --page-gap: 1rem;
99
+ --page-padding: 1rem;
364
100
  --header-height: 3.25rem;
365
-
366
- /* Sidebar Dimensions */
367
101
  --sidebar-width: 12.8rem;
368
102
  --sidebar-width-mobile: 18rem;
369
103
  --sidebar-width-icon: 3rem;
370
-
371
- /* Breakpoint Variables */
372
- --breakpoint-sm: theme('screens.sm');
373
- --breakpoint-md: theme('screens.md');
374
- --breakpoint-lg: theme('screens.lg');
375
- --breakpoint-xl: theme('screens.xl');
376
- --breakpoint-2xl: theme('screens.2xl');
377
104
  }
105
+
378
106
  @media (prefers-reduced-motion: reduce) {
379
107
  :root {
380
108
  --motion-duration-fast: 0ms;
381
109
  --motion-duration-normal: 0ms;
382
110
  --motion-duration-slow: 0ms;
383
- --motion-distance-sm: 0px;
384
- --motion-distance-md: 0px;
385
- --motion-distance-lg: 0px;
386
- --transition-fast: 0ms;
387
- --transition-normal: 0ms;
388
- --transition-slow: 0ms;
389
- --chart-animation-duration: 0ms;
111
+ --motion-distance: 0px;
390
112
  }
391
113
  }
392
114
 
393
115
  /* ════════════════════════════════════════════════════════════════════════════
394
- DARK MODE
395
- Inverts lightness calculations for surfaces and adjusts brand brightness
116
+ LIGHT
396
117
  ════════════════════════════════════════════════════════════════════════════ */
397
- .dark {
398
- /* ─── Surfaces (dark backgrounds from neutral) ─── */
399
- --background: lab(7.31616 0.094689 -0.345469);
400
- --foreground: #f5f5f5;
401
- --card: lab(10.7293 0.100255 -0.363475);
402
- --card-gradient-start: oklch(0.325 0 0);
403
- --card-foreground: var(--foreground);
404
- --muted: var(--card);
405
- --muted-foreground: #c2c2c2;
406
- --tertiary-foreground: #8f8f8f;
407
- --border: oklch(0.385 0 0);
408
-
409
- /* Alternating section backgrounds - notably darker for visual distinction */
410
- --section-alt: oklch(0.2 0 0);
411
-
412
- /* Marketing surface (dark) */
413
- --marketing-surface: #111;
414
- /* Date-group header band comment follows */
415
- /* Date-group header band: a higher-contrast card surface so grouped date rows
416
- read as clear section dividers in dark mode (light mode uses bg-muted/40). */
417
- --date-group-surface: color-mix(in oklch, var(--card), white 8%);
418
-
419
- /* ─── Primary (brighter for dark mode) ─── */
420
- --primary: oklch(from var(--brand-primary) calc(l + 0.115) calc(c - 0.01) h);
421
- --primary-foreground: var(--background);
118
+ :root,
119
+ .light {
120
+ --background: var(--gray-100);
121
+ --foreground: var(--gray-800);
122
+ --card: var(--gray-50);
123
+ --muted: var(--gray-50);
124
+ --muted-foreground: var(--gray-600);
125
+ --tertiary-foreground: var(--gray-400);
126
+ --border: var(--gray-100);
127
+ --primary: var(--gray-800);
128
+ --primary-foreground: var(--gray-0);
129
+ --accent: var(--gray-50);
130
+ --ring: var(--gray-400);
131
+ --section-alt: var(--gray-0);
132
+ --sidebar-accent: var(--gray-0);
133
+ --date-group-surface: color-mix(in oklab, var(--muted) 50%, transparent);
134
+ --shadow-color: var(--black-10);
422
135
 
423
- /* ─── Secondary/Accent (adjusted for dark mode) ─── */
424
- --secondary: oklch(from var(--brand-primary) calc(l - 0.22) calc(c - 0.03) h);
425
- --secondary-foreground: var(--foreground);
426
- --accent: oklch(from var(--brand-accent) calc(l + 0.08) calc(c - 0.02) h);
427
- --accent-foreground: var(--foreground);
428
- --accent-solid: oklch(from var(--brand-accent-solid) calc(l + 0.08) c h);
429
- --accent-solid-text: var(--accent-solid);
136
+ --success-text: oklch(0.35 0.16 145);
137
+ --success-bg-subtle: oklch(0.96 0.03 145);
138
+ --success-border: oklch(0.75 0.12 145);
139
+ --warning-text: oklch(0.35 0.17 85);
140
+ --warning-bg-subtle: oklch(0.96 0.03 85);
141
+ --warning-border: oklch(0.75 0.12 85);
142
+ --error-text: oklch(0.35 0.14 30);
143
+ --error-bg-subtle: oklch(0.96 0.02 30);
144
+ --error-border: oklch(0.75 0.08 30);
145
+ --info-text: oklch(0.35 0.1 250);
146
+ --info-bg-subtle: oklch(0.96 0.02 250);
147
+ --info-border: oklch(0.75 0.06 250);
430
148
 
431
- /* Default button gradient (dark) */
432
- --default-button-gradient-start: oklch(0.4 0 0);
433
- --default-button-gradient-end: oklch(0.3 0 0);
434
- --default-button-active: oklch(0.15 0 0);
435
- --button-primary-bg: var(--primary);
436
- --button-primary-foreground: oklch(1 0 0);
437
- --button-primary-border: oklch(0 0 0 / 0.18);
438
- --button-primary-hover: oklch(from var(--primary) calc(l + 0.08) c h);
439
- --button-primary-active: oklch(from var(--primary) calc(l - 0.04) c h);
149
+ /* Finance tones: legible on light surfaces (WARM_COLORS.finance hues). */
150
+ --finance-cash: oklch(0.43 0.055 128);
151
+ --finance-debt: oklch(0.45 0.09 5);
152
+ --finance-investment: oklch(0.44 0.05 200);
153
+
154
+ --chart-1: var(--gray-800);
155
+ --chart-2: var(--gray-700);
156
+ --chart-3: var(--gray-600);
157
+ --chart-4: var(--gray-400);
158
+ --chart-5: var(--gray-200);
159
+
160
+ --auth-backdrop-overlay-start: oklch(0.98 0.018 300 / 0.94);
161
+ --auth-backdrop-overlay-end: oklch(0.94 0.035 266 / 0.72);
162
+ --auth-backdrop-overlay-accent: oklch(0.82 0.1 318 / 0.5);
163
+
164
+ --button-primary-bg: var(--gray-0);
165
+ --button-primary-foreground: var(--gray-800);
166
+ --button-primary-border: var(--white-20);
167
+ --button-primary-hover: var(--gray-0);
168
+ --button-primary-active: var(--gray-100);
169
+ --button-primary-gradient: linear-gradient(to bottom, var(--gray-0) 0%, var(--gray-50) 100%);
170
+ --button-primary-gradient-hover: linear-gradient(
171
+ to bottom,
172
+ var(--gray-0) 0%,
173
+ var(--gray-100) 100%
174
+ );
440
175
  --button-primary-shadow:
441
- inset 0 1px 0 #808080, inset 0 -1px rgba(255, 255, 255, 0.1), 0 1px 2px black;
442
- --button-hover-brightness: 1.2;
443
- --button-outline-shadow: inset 0 1px 0 rgb(255 255 255);
176
+ inset 0 -1px 0 var(--gray-0), 0 0 0 1px var(--black-10), 0 1px 1px var(--black-10);
177
+ --button-outline-shadow: none;
444
178
  --button-ghost-shadow:
445
- inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 -1px 0 rgba(255, 255, 255, 0.02),
446
- 0 1px 0 rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.5);
447
- --button-outline-fill-image: linear-gradient(to bottom, #f2f2f2 0%, #e6e6e6 100%);
448
- --button-outline-fill-image-hover: linear-gradient(to bottom, #fafafa 0%, #ececec 100%);
449
- --button-primary-gradient: linear-gradient(to bottom, #4d4d4d 0%, #333333 100%);
450
- --button-primary-gradient-hover: linear-gradient(to bottom, #5a5a5a 0%, #404040 100%);
451
- --apple-button-background: oklch(0 0 0);
452
- --apple-button-foreground: oklch(1 0 0);
453
- --apple-button-hover: var(--apple-button-background);
454
-
455
- /* Sidebar = solid dark surface */
456
- --sidebar: var(--background);
457
- --sidebar-foreground: var(--foreground);
458
- --sidebar-primary-foreground: var(--background);
459
- --sidebar-accent: oklch(0.34 0 0);
460
- --sidebar-accent-foreground: var(--foreground);
461
- --sidebar-border: oklch(0.36 0 0 / 0.55);
462
- --sidebar-ring: oklch(0.52 0 0 / 0.45);
179
+ inset 0 1px 0 0 var(--gray-0), 0 1px 0 var(--black-10), 0 1px 2px var(--black-20);
180
+ --button-outline-fill-image: linear-gradient(to bottom, var(--gray-700) 0%, var(--gray-800) 100%);
181
+ --button-outline-fill-image-hover: linear-gradient(
182
+ to bottom,
183
+ var(--gray-600) 0%,
184
+ var(--gray-700) 100%
185
+ );
186
+ --apple-button-background: var(--foreground);
187
+ --apple-button-foreground: var(--background);
463
188
 
464
- /* Charts */
465
- --chart-1: oklch(1 0 none);
466
- --chart-2: oklch(0.73 0 none);
467
- --chart-3: oklch(0.51 0 none);
468
- --chart-4: oklch(0.39 0 none);
469
- --chart-5: oklch(0.32 0 none);
189
+ --shadow-card-edge:
190
+ var(--shadow-border), inset 0 1px var(--gray-0), inset 1px 0 var(--white-50),
191
+ inset -1px 0 var(--white-50);
192
+ }
193
+
194
+ /* ════════════════════════════════════════════════════════════════════════════
195
+ DARK
196
+ ════════════════════════════════════════════════════════════════════════════ */
197
+ .dark {
198
+ --background: var(--gray-950);
199
+ --foreground: var(--gray-50);
200
+ --card: var(--gray-900);
201
+ --muted: var(--gray-900);
202
+ --muted-foreground: var(--gray-200);
203
+ --tertiary-foreground: var(--gray-400);
204
+ --border: var(--gray-700);
205
+ --primary: var(--gray-400);
206
+ --primary-foreground: var(--background);
207
+ --accent: var(--gray-700);
208
+ --ring: var(--gray-600);
209
+ --section-alt: var(--gray-950);
210
+ --sidebar-accent: var(--gray-700);
211
+ --date-group-surface: var(--gray-800);
212
+ --shadow-color: var(--black-50);
213
+ --button-hover-brightness: 1.2;
470
214
 
471
- /* ─── Fixed Semantic (dark variants) ─── */
472
215
  --success-text: oklch(0.7 0.14 145);
473
216
  --success-bg-subtle: oklch(0.2 0.05 145);
474
- --success-bg-muted: oklch(0.25 0.08 145);
475
217
  --success-border: oklch(0.35 0.1 145);
476
-
477
218
  --warning-text: oklch(0.7 0.15 85);
478
219
  --warning-bg-subtle: oklch(0.2 0.05 85);
479
- --warning-bg-muted: oklch(0.25 0.08 85);
480
220
  --warning-border: oklch(0.35 0.06 85);
481
- --warning-card-surface: color-mix(in oklab, var(--warning) 10%, transparent);
482
-
483
- /* Finance (dark variants) — lightened for legibility on dark surfaces */
484
- --finance-cash: oklch(0.74 0.06 128);
485
- --finance-debt: oklch(0.76 0.08 5);
486
- --finance-investment: oklch(0.73 0.05 200);
487
-
488
- --destructive-foreground: oklch(1 0 0);
489
221
  --error-text: oklch(0.7 0.12 30);
490
222
  --error-bg-subtle: oklch(0.2 0.05 30);
491
- --error-bg-muted: oklch(0.25 0.06 30);
492
223
  --error-border: oklch(0.35 0.04 30);
493
- --danger-card-surface: color-mix(in oklab, var(--destructive) 10%, transparent);
494
-
495
224
  --info-text: oklch(0.7 0.08 250);
496
225
  --info-bg-subtle: oklch(0.2 0.02 250);
497
- --info-bg-muted: oklch(0.25 0.04 250);
498
226
  --info-border: oklch(0.35 0.05 250);
499
- --overlay-light: rgb(0 0 0 / 0.3);
500
- --overlay-medium: rgb(0 0 0 / 0.4);
501
- --overlay-strong: rgb(0 0 0 / 0.5);
502
- --overlay-heavy: rgb(0 0 0 / 0.6);
503
227
 
504
- --highlight-subtle: rgb(255 255 255 / 0.08);
505
- --highlight-light: rgb(255 255 255 / 0.1);
506
- --highlight-medium: rgb(255 255 255 / 0.2);
507
- --highlight-strong: rgb(255 255 255 / 0.5);
228
+ --finance-cash: oklch(0.74 0.06 128);
229
+ --finance-debt: oklch(0.76 0.08 5);
230
+ --finance-investment: oklch(0.73 0.05 200);
508
231
 
509
- --glass-background: rgb(255 255 255 / 0.05);
510
- --glass-border: rgb(255 255 255 / 0.08);
511
- --backdrop-blur: rgb(0 0 0 / 0.33);
232
+ --chart-1: var(--gray-0);
233
+ --chart-2: var(--gray-400);
234
+ --chart-3: var(--gray-600);
235
+ --chart-4: var(--gray-700);
236
+ --chart-5: var(--gray-800);
512
237
 
513
- /* Auth coastal backdrop */
514
238
  --auth-backdrop-overlay-start: oklch(0.13 0.035 270 / 0.84);
515
239
  --auth-backdrop-overlay-end: oklch(0.19 0.045 314 / 0.72);
516
240
  --auth-backdrop-overlay-accent: oklch(0.33 0.1 318 / 0.52);
517
241
 
518
- /* Shadows (stronger in dark) */
519
- --shadow-2xs: 0px 1px 2px 0px var(--overlay-strong);
520
- --shadow-xs: 0px 1px 2px 0px var(--overlay-strong);
521
- --shadow-sm: 0px 1px 2px 0px var(--overlay-strong), 0px 1px 2px -1px var(--overlay-strong);
522
- --shadow: 0px 1px 2px 0px var(--overlay-strong), 0px 1px 2px -1px var(--overlay-strong);
523
- --shadow-md: 0px 1px 2px 0px var(--overlay-strong), 0px 2px 4px -1px var(--overlay-strong);
524
- --shadow-lg: 0px 1px 2px 0px var(--overlay-strong), 0px 4px 6px -1px var(--overlay-strong);
525
- --shadow-xl: 0px 1px 2px 0px var(--overlay-strong), 0px 8px 10px -1px var(--overlay-strong);
526
- --shadow-2xl: 0px 1px 2px 0px var(--overlay-heavy);
242
+ --button-primary-bg: var(--primary);
243
+ --button-primary-foreground: var(--gray-0);
244
+ --button-primary-border: var(--black-20);
245
+ --button-primary-hover: var(--gray-400);
246
+ --button-primary-active: var(--gray-600);
247
+ --button-primary-gradient: linear-gradient(to bottom, var(--gray-700) 0%, var(--gray-800) 100%);
248
+ --button-primary-gradient-hover: linear-gradient(
249
+ to bottom,
250
+ var(--gray-600) 0%,
251
+ var(--gray-700) 100%
252
+ );
253
+ --button-primary-shadow:
254
+ inset 0 1px 0 var(--gray-600), inset 0 -1px var(--white-10), 0 1px 2px var(--gray-1000);
255
+ --button-outline-shadow: inset 0 1px 0 var(--gray-0);
256
+ --button-ghost-shadow:
257
+ inset 0 1px 0 var(--white-10), inset 0 -1px 0 var(--white-5), 0 1px 0 var(--black-50),
258
+ 0 1px 2px var(--black-50);
259
+ --button-outline-fill-image: linear-gradient(to bottom, var(--gray-50) 0%, var(--gray-100) 100%);
260
+ --button-outline-fill-image-hover: linear-gradient(
261
+ to bottom,
262
+ var(--gray-0) 0%,
263
+ var(--gray-50) 100%
264
+ );
265
+ --apple-button-background: var(--gray-1000);
266
+ --apple-button-foreground: var(--gray-0);
267
+
268
+ --shadow-card-edge: 0 -1px 0 var(--gray-800);
527
269
  }
528
270
 
529
271
  /* ════════════════════════════════════════════════════════════════════════════
530
- LIGHT MODE (explicit)
531
- Used to force light mode within a dark context (e.g., kitchen sink demos)
272
+ ALIASES — same derivation in every mode
532
273
  ════════════════════════════════════════════════════════════════════════════ */
533
- .light {
534
- /* ─── Surfaces (light backgrounds from neutral) ─── */
535
- --background: rgba(230, 230, 230, 1);
536
- --foreground: oklch(0.35 0 0);
537
- --card: rgba(240, 240, 240, 1);
538
- --card-gradient-start: rgba(240, 240, 240, 1);
539
- --muted: oklch(0.917 0 0);
540
- --sidebar: rgba(230, 230, 230, 1);
541
- --muted-foreground: oklch(0.532 0 0 / 0.8);
542
- --border: oklch(0.852 0 0);
543
-
544
- /* ─── Primary (standard for light mode) ─── */
545
- --primary: var(--brand-primary);
546
- --primary-foreground: oklch(1 0 0);
547
- --apple-button-background: var(--foreground);
548
- --apple-button-foreground: var(--background);
549
- --apple-button-hover: var(--apple-button-background);
550
-
551
- /* ─── Secondary/Accent ─── */
552
- --secondary: oklch(from var(--brand-primary) calc(l + 0.27) calc(c - 0.025) h);
553
- --secondary-foreground: oklch(from var(--brand-neutral) 0.35 0.015 h);
554
- --accent: var(--brand-accent);
555
- --accent-foreground: oklch(from var(--brand-neutral) 0.25 0.01 h);
556
- --accent-solid: var(--brand-accent-solid);
557
- --accent-solid-text: oklch(from var(--brand-accent-solid) calc(l - 0.14) calc(c + 0.02) h);
558
-
559
- /* Default button gradient (light) */
560
- --default-button-gradient-start: #fff;
561
- --default-button-gradient-end: #f2f2f2;
562
- --default-button-active: oklch(0.91 0 0);
563
- --button-primary-shadow:
564
- inset 0 -1px 0 rgba(255, 255, 255, 1), 0 0 0 1px rgb(0 0 0 / 0.1), 0 1px 1px rgba(0, 0, 0, 0.1);
565
- --button-outline-shadow: 0 0 0 1px var(--border), 0 1px 2px rgb(0 0 0 / 0.18);
566
- --button-ghost-shadow:
567
- inset 0 1px 0 0px rgba(255, 255, 255, 1), 0 1px 0px rgba(0, 0, 0, 0.1),
568
- 0 1px 2px rgba(0, 0, 0, 0.2);
569
- --button-primary-gradient: linear-gradient(to bottom, #fff 0%, #f2f2f2 100%);
570
- --button-primary-gradient-hover: linear-gradient(to bottom, #fafafa 0%, #e0e0e0 100%);
571
-
572
- /* Charts */
573
- --chart-1: var(--brand-primary);
574
- --chart-2: var(--brand-accent);
575
- --chart-3: var(--brand-muted);
576
- --chart-4: oklch(from var(--brand-primary) calc(l + 0.12) calc(c - 0.01) h);
577
- --chart-5: oklch(from var(--brand-accent) calc(l + 0.12) calc(c - 0.01) h);
578
-
579
- /* ─── Fixed Semantic (light variants) ─── */
580
- /* Darker text (L=0.35) for better contrast on light backgrounds */
581
- --success-text: oklch(0.35 0.16 145);
582
- --success-bg-subtle: oklch(0.96 0.03 145);
583
- --success-bg-muted: oklch(0.9 0.08 145);
584
- --success-border: oklch(0.75 0.12 145);
585
-
586
- --warning-text: oklch(0.35 0.17 85);
587
- --warning-bg-subtle: oklch(0.96 0.03 85);
588
- --warning-bg-muted: oklch(0.9 0.1 85);
589
- --warning-border: oklch(0.75 0.12 85);
274
+ :root,
275
+ .light,
276
+ .dark {
277
+ --card-foreground: var(--foreground);
278
+ --popover: var(--card);
279
+ --popover-foreground: var(--foreground);
280
+ --secondary: var(--accent);
281
+ --secondary-foreground: var(--foreground);
282
+ --accent-foreground: var(--foreground);
283
+ --destructive-foreground: var(--gray-0);
284
+ --input: var(--border);
285
+ --focus: color-mix(in oklab, var(--ring) 50%, transparent);
286
+ --hover-bg: color-mix(in oklab, var(--foreground) 5%, transparent);
590
287
  --warning-card-surface: color-mix(in oklab, var(--warning) 10%, transparent);
591
-
592
- /* Finance (light variants) — darkened for legibility on light surfaces */
593
- --finance-cash: oklch(0.43 0.055 128);
594
- --finance-debt: oklch(0.45 0.09 5);
595
- --finance-investment: oklch(0.44 0.05 200);
596
-
597
- --destructive-foreground: oklch(1 0 0);
598
- --error-text: oklch(0.35 0.14 30);
599
- --error-bg-subtle: oklch(0.96 0.02 30);
600
- --error-bg-muted: oklch(0.9 0.06 30);
601
- --error-border: oklch(0.75 0.08 30);
602
288
  --danger-card-surface: color-mix(in oklab, var(--destructive) 10%, transparent);
603
289
 
604
- --info-text: oklch(0.35 0.1 250);
605
- --info-bg-subtle: oklch(0.96 0.02 250);
606
- --info-bg-muted: oklch(0.9 0.06 250);
607
- --info-border: oklch(0.75 0.06 250);
290
+ --sidebar: var(--background);
291
+ --sidebar-foreground: var(--foreground);
292
+ --sidebar-primary: var(--primary);
293
+ --sidebar-primary-foreground: var(--primary-foreground);
294
+ --sidebar-accent-foreground: var(--foreground);
295
+ --sidebar-border: var(--border);
296
+ --sidebar-ring: var(--ring);
608
297
 
609
- /* ─── Effects (light mode) ─── */
610
- --overlay-subtle: rgb(0 0 0 / 0.05);
611
- --shadow-card-edge-tight: rgb(0 0 0 / 0.08);
612
- --overlay-light: rgb(0 0 0 / 0.1);
613
- --overlay-medium: rgb(0 0 0 / 0.2);
614
- --overlay-strong: rgb(0 0 0 / 0.25);
615
- --overlay-heavy: rgb(0 0 0 / 0.33);
616
-
617
- --highlight-subtle: rgb(255 255 255 / 0.3);
618
- --highlight-light: rgb(255 255 255 / 0.5);
619
- --highlight-medium: rgb(255 255 255 / 0.8);
620
- --highlight-strong: rgb(255 255 255 / 1);
621
-
622
- --glass-background: rgb(0 0 0 / 0.02);
623
- --glass-border: rgb(255 255 255 / 0.5);
624
- --backdrop-blur: rgb(0 0 0 / 0.1);
625
-
626
- /* Shadows (light mode) */
627
- --shadow-2xs: 0px 1px 2px 0px var(--overlay-subtle);
628
- --shadow-xs: 0px 1px 2px 0px var(--overlay-subtle);
629
- --shadow-sm: 0px 1px 2px 0px var(--overlay-light), 0px 1px 2px -1px var(--overlay-light);
630
- --shadow: 0px 1px 2px 0px var(--overlay-light), 0px 1px 2px -1px var(--overlay-light);
631
- --shadow-md: 0px 1px 2px 0px var(--overlay-light), 0px 2px 4px -1px var(--overlay-light);
632
- --shadow-lg: 0px 1px 2px 0px var(--overlay-light), 0px 4px 6px -1px var(--overlay-light);
633
- --shadow-xl: 0px 1px 2px 0px var(--overlay-light), 0px 8px 10px -1px var(--overlay-light);
634
- --shadow-2xl: 0px 1px 2px 0px var(--overlay-strong);
298
+ --shadow-sm: 0 1px 2px 0 var(--shadow-color), 0 1px 2px -1px var(--shadow-color);
299
+ --shadow-md: 0 1px 2px 0 var(--shadow-color), 0 2px 4px -1px var(--shadow-color);
300
+ --shadow-lg: 0 1px 2px 0 var(--shadow-color), 0 4px 6px -1px var(--shadow-color);
301
+ --shadow-border:
302
+ 0 -1px 0 0 var(--card-edge-border, var(--border)),
303
+ 1px 0 0 0 var(--card-edge-border, var(--border)),
304
+ -1px 0 0 0 var(--card-edge-border, var(--border)),
305
+ 0 1px 0 0 color-mix(in oklab, var(--card-edge-border, var(--border)) 50%, black),
306
+ 0 1px 2px -1px var(--black-10), 0 2px 4px 0 var(--black-5);
635
307
  }
636
308
 
637
309
  /* ════════════════════════════════════════════════════════════════════════════
638
310
  TAILWIND THEME MAPPING
639
311
  ════════════════════════════════════════════════════════════════════════════ */
640
312
  @theme inline {
641
- /* Core colors */
642
313
  --color-background: var(--background);
643
314
  --color-foreground: var(--foreground);
644
315
  --color-card: var(--card);
@@ -647,9 +318,6 @@
647
318
  --color-popover-foreground: var(--popover-foreground);
648
319
  --color-primary: var(--primary);
649
320
  --color-primary-foreground: var(--primary-foreground);
650
- --color-apple-button-background: var(--apple-button-background);
651
- --color-apple-button-foreground: var(--apple-button-foreground);
652
- --color-apple-button-hover: var(--apple-button-hover);
653
321
  --color-secondary: var(--secondary);
654
322
  --color-secondary-foreground: var(--secondary-foreground);
655
323
  --color-muted: var(--muted);
@@ -657,56 +325,37 @@
657
325
  --color-tertiary-foreground: var(--tertiary-foreground);
658
326
  --color-accent: var(--accent);
659
327
  --color-accent-foreground: var(--accent-foreground);
660
- --color-accent-solid: var(--accent-solid);
661
- --color-accent-solid-text: var(--accent-solid-text);
662
328
  --color-destructive: var(--destructive);
663
329
  --color-destructive-foreground: var(--destructive-foreground);
664
330
  --color-success: var(--success);
665
331
  --color-warning: var(--warning);
666
- --color-danger: var(--danger);
667
- --color-logo-accent: var(--logo-accent);
668
- --color-logo-gradient-start: var(--logo-gradient-start);
669
- --color-logo-gradient-end: var(--logo-gradient-end);
670
332
 
671
- /* Semantic color derivatives */
672
333
  --color-success-text: var(--success-text);
673
334
  --color-success-bg-subtle: var(--success-bg-subtle);
674
- --color-success-bg-muted: var(--success-bg-muted);
675
335
  --color-success-border: var(--success-border);
676
336
  --color-error-text: var(--error-text);
677
337
  --color-error-bg-subtle: var(--error-bg-subtle);
678
- --color-error-bg-muted: var(--error-bg-muted);
679
338
  --color-error-border: var(--error-border);
680
339
  --color-warning-text: var(--warning-text);
681
340
  --color-warning-bg-subtle: var(--warning-bg-subtle);
682
- --color-warning-bg-muted: var(--warning-bg-muted);
683
341
  --color-warning-border: var(--warning-border);
684
342
  --color-info-text: var(--info-text);
685
343
  --color-info-bg-subtle: var(--info-bg-subtle);
686
- --color-info-bg-muted: var(--info-bg-muted);
687
344
  --color-info-border: var(--info-border);
688
345
  --color-finance-cash: var(--finance-cash);
689
346
  --color-finance-debt: var(--finance-debt);
690
347
  --color-finance-investment: var(--finance-investment);
691
348
 
692
- /* UI elements */
693
349
  --color-border: var(--border);
694
350
  --color-input: var(--input);
695
351
  --color-ring: var(--ring);
696
- --color-focus: var(--focus);
697
- --color-active: var(--active);
698
-
699
- /* Section alternating background */
700
- --color-section-alt: var(--section-alt);
701
352
 
702
- /* Charts */
703
353
  --color-chart-1: var(--chart-1);
704
354
  --color-chart-2: var(--chart-2);
705
355
  --color-chart-3: var(--chart-3);
706
356
  --color-chart-4: var(--chart-4);
707
357
  --color-chart-5: var(--chart-5);
708
358
 
709
- /* Sidebar */
710
359
  --color-sidebar: var(--sidebar);
711
360
  --color-sidebar-foreground: var(--sidebar-foreground);
712
361
  --color-sidebar-primary: var(--sidebar-primary);
@@ -716,60 +365,24 @@
716
365
  --color-sidebar-border: var(--sidebar-border);
717
366
  --color-sidebar-ring: var(--sidebar-ring);
718
367
 
719
- /* Overlay & Effects */
720
- --color-overlay-subtle: var(--overlay-subtle);
721
- --color-overlay-light: var(--overlay-light);
722
- --color-overlay-medium: var(--overlay-medium);
723
- --color-overlay-strong: var(--overlay-strong);
724
- --color-overlay-heavy: var(--overlay-heavy);
725
- --color-highlight-subtle: var(--highlight-subtle);
726
- --color-highlight-light: var(--highlight-light);
727
- --color-highlight-medium: var(--highlight-medium);
728
- --color-highlight-strong: var(--highlight-strong);
729
- --color-glass-background: var(--glass-background);
730
- --color-glass-border: var(--glass-border);
731
- --color-backdrop-blur: var(--backdrop-blur);
732
-
733
- /* Typography */
734
- --font-heading: var(--font-heading);
735
368
  --font-sans: var(--font-sans);
736
369
  --font-mono: var(--font-mono);
737
- --font-serif: var(--font-serif);
738
- --font-display: var(--font-display);
739
- --font-editorial: var(--font-editorial-sans);
740
- --font-marketing: var(--font-marketing-sans);
741
-
742
- /* Border Radius */
743
- --radius-xs: calc(var(--radius) - 0.375rem);
744
- --radius-sm: calc(var(--radius) - 0.25rem);
745
- --radius: var(--radius);
746
- --radius-md: var(--radius);
747
- --radius-lg: calc(var(--radius) + 0.25rem);
748
- --radius-xl: calc(var(--radius) + 0.5rem);
749
- --radius-interactive: var(--radius-interactive);
750
-
751
- /* Shadows */
752
- --shadow-2xs: var(--shadow-2xs);
753
- --shadow-xs: var(--shadow-xs);
370
+
371
+ --radius-xs: var(--radius-sm);
372
+ --radius-sm: var(--radius-sm);
373
+ --radius: var(--radius-md);
374
+ --radius-md: var(--radius-md);
375
+ --radius-lg: var(--radius-lg);
376
+ --radius-xl: var(--radius-xl);
377
+ --radius-full: var(--radius-full);
378
+
379
+ --shadow-2xs: var(--shadow-sm);
380
+ --shadow-xs: var(--shadow-sm);
754
381
  --shadow-sm: var(--shadow-sm);
755
- --shadow: var(--shadow);
382
+ --shadow: var(--shadow-sm);
756
383
  --shadow-md: var(--shadow-md);
757
384
  --shadow-lg: var(--shadow-lg);
758
- --shadow-xl: var(--shadow-xl);
759
- --shadow-2xl: var(--shadow-2xl);
760
- --shadow-card-edge:
761
- var(--shadow-border), inset 0 1px rgba(255, 255, 255, 1), inset 1px 0 rgba(255, 255, 255, 0.5),
762
- inset -1px 0 rgba(255, 255, 255, 0.5);
763
- }
764
-
765
- /* Dark cards use an outer highlight instead of the light inset highlight. */
766
- .dark {
767
- --shadow-card-edge:
768
- var(--shadow-border), 0 1px rgba(255, 255, 255, 0.2), 1px 0 rgba(255, 255, 255, 0.1),
769
- -1px 0 rgba(255, 255, 255, 0.1);
770
- }
771
-
772
- /* Dark cards use one simple outer edge highlight. */
773
- .dark .shadow-card-edge {
774
- --tw-shadow: 0 -1px 0 #333;
385
+ --shadow-xl: var(--shadow-lg);
386
+ --shadow-2xl: var(--shadow-lg);
387
+ --shadow-card-edge: var(--shadow-card-edge);
775
388
  }