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