@warmio/design 1.0.0 → 1.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 +9 -0
- package/package.json +2 -2
- package/theme.css +53 -1
package/README.md
CHANGED
|
@@ -11,3 +11,12 @@ The default product typefaces are Geist and Geist Mono. The `font-editorial`
|
|
|
11
11
|
utility uses Inter and should be reserved for deliberate editorial accents.
|
|
12
12
|
|
|
13
13
|
This package has no JavaScript entry point or runtime dependencies.
|
|
14
|
+
|
|
15
|
+
## Releases
|
|
16
|
+
|
|
17
|
+
The `1.0.0` cutover is done. Bump this `package.json` version whenever fonts, colors,
|
|
18
|
+
spacing, or theme tokens in this folder change, then follow
|
|
19
|
+
[docs/reference/DESIGN_PACKAGE.md](../../docs/reference/DESIGN_PACKAGE.md).
|
|
20
|
+
|
|
21
|
+
App uses the workspace package immediately. Chat and Warm Static stay on the last
|
|
22
|
+
published npm version until that release is bumped the same day.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@warmio/design",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Warm's public CSS-only design contract.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -35,4 +35,4 @@
|
|
|
35
35
|
"scripts": {
|
|
36
36
|
"pack:check": "node ../../tools/tasks/check-design-package.mjs"
|
|
37
37
|
}
|
|
38
|
-
}
|
|
38
|
+
}
|
package/theme.css
CHANGED
|
@@ -117,6 +117,13 @@
|
|
|
117
117
|
oklch(from var(--warning) l calc(c + 0.08) h) 18%
|
|
118
118
|
);
|
|
119
119
|
|
|
120
|
+
/* Finance = legible on-surface tones of WARM_COLORS.finance
|
|
121
|
+
(libraries/app-core/utils/colors.ts): cash=sage, debt=mauve, investment=seafoam.
|
|
122
|
+
Darkened from the raw palette hues so they meet AA as text on light surfaces. */
|
|
123
|
+
--finance-cash: oklch(0.43 0.055 128);
|
|
124
|
+
--finance-debt: oklch(0.45 0.09 5);
|
|
125
|
+
--finance-investment: oklch(0.44 0.05 200);
|
|
126
|
+
|
|
120
127
|
/* Destructive/Error = Red (H: 30) */
|
|
121
128
|
--destructive: oklch(0.55 0.12 30);
|
|
122
129
|
--destructive-foreground: oklch(1 0 0);
|
|
@@ -156,6 +163,11 @@
|
|
|
156
163
|
--glass-border: rgb(255 255 255 / 0.5);
|
|
157
164
|
--backdrop-blur: rgb(0 0 0 / 0.1);
|
|
158
165
|
|
|
166
|
+
/* Auth coastal backdrop */
|
|
167
|
+
--auth-backdrop-overlay-start: oklch(0.98 0.018 300 / 0.94);
|
|
168
|
+
--auth-backdrop-overlay-end: oklch(0.94 0.035 266 / 0.72);
|
|
169
|
+
--auth-backdrop-overlay-accent: oklch(0.82 0.1 318 / 0.5);
|
|
170
|
+
|
|
159
171
|
/* Shadows */
|
|
160
172
|
--shadow-2xs: 0px 1px 2px 0px var(--overlay-subtle);
|
|
161
173
|
--shadow-xs: 0px 1px 2px 0px var(--overlay-subtle);
|
|
@@ -166,7 +178,8 @@
|
|
|
166
178
|
--shadow-xl: 0px 1px 2px 0px var(--overlay-light), 0px 8px 10px -1px var(--overlay-light);
|
|
167
179
|
--shadow-2xl: 0px 1px 2px 0px var(--overlay-strong);
|
|
168
180
|
--shadow-border:
|
|
169
|
-
0 0 0 1px var(--border), 0 1px 2px -1px var(--overlay-subtle),
|
|
181
|
+
0 0 0 1px var(--card-edge-border, var(--border)), 0 1px 2px -1px var(--overlay-subtle),
|
|
182
|
+
0 2px 4px 0 var(--overlay-subtle);
|
|
170
183
|
|
|
171
184
|
/* ══════════════════════════════════════════════════════════════════════════
|
|
172
185
|
NON-COLOR TOKENS (shared across all themes)
|
|
@@ -208,6 +221,9 @@
|
|
|
208
221
|
--button-primary-border: oklch(0 0 0 / 0.18);
|
|
209
222
|
--button-primary-hover: oklch(from var(--primary) calc(l + 0.08) c h);
|
|
210
223
|
--button-primary-active: oklch(from var(--primary) calc(l - 0.04) c h);
|
|
224
|
+
--apple-button-background: var(--foreground);
|
|
225
|
+
--apple-button-foreground: var(--background);
|
|
226
|
+
--apple-button-hover: var(--apple-button-background);
|
|
211
227
|
|
|
212
228
|
/* Form Specific */
|
|
213
229
|
--input-height: 2.25rem;
|
|
@@ -234,6 +250,10 @@
|
|
|
234
250
|
/* Card Specific */
|
|
235
251
|
--card-padding: 1rem;
|
|
236
252
|
--card-header-padding: 1.5rem;
|
|
253
|
+
--pricing-plan-min-width: 17.5rem;
|
|
254
|
+
|
|
255
|
+
/* Overlay Sizing */
|
|
256
|
+
--select-content-max-width: calc(100vw - var(--spacing-2xl));
|
|
237
257
|
|
|
238
258
|
/* Border Radius */
|
|
239
259
|
--radius: 0.5rem;
|
|
@@ -283,6 +303,10 @@
|
|
|
283
303
|
/* Alternating section backgrounds - notably darker for visual distinction */
|
|
284
304
|
--section-alt: oklch(0.2 0 0);
|
|
285
305
|
|
|
306
|
+
/* Date-group header band: a higher-contrast card surface so grouped date rows
|
|
307
|
+
read as clear section dividers in dark mode (light mode uses bg-muted/40). */
|
|
308
|
+
--date-group-surface: color-mix(in oklch, var(--card), white 8%);
|
|
309
|
+
|
|
286
310
|
/* ─── Primary (brighter for dark mode) ─── */
|
|
287
311
|
--primary: oklch(from var(--brand-primary) calc(l + 0.115) calc(c - 0.01) h);
|
|
288
312
|
--primary-foreground: var(--background);
|
|
@@ -302,6 +326,9 @@
|
|
|
302
326
|
--button-primary-border: oklch(1 0 0 / 0.18);
|
|
303
327
|
--button-primary-hover: oklch(1 0 0);
|
|
304
328
|
--button-primary-active: oklch(0.94 0 0);
|
|
329
|
+
--apple-button-background: oklch(0 0 0);
|
|
330
|
+
--apple-button-foreground: oklch(1 0 0);
|
|
331
|
+
--apple-button-hover: var(--apple-button-background);
|
|
305
332
|
|
|
306
333
|
/* Sidebar = solid dark surface */
|
|
307
334
|
--sidebar: var(--background);
|
|
@@ -335,6 +362,11 @@
|
|
|
335
362
|
oklch(from var(--warning) l calc(c + 0.06) h) 20%
|
|
336
363
|
);
|
|
337
364
|
|
|
365
|
+
/* Finance (dark variants) — lightened for legibility on dark surfaces */
|
|
366
|
+
--finance-cash: oklch(0.74 0.06 128);
|
|
367
|
+
--finance-debt: oklch(0.76 0.08 5);
|
|
368
|
+
--finance-investment: oklch(0.73 0.05 200);
|
|
369
|
+
|
|
338
370
|
--destructive-foreground: oklch(1 0 0);
|
|
339
371
|
--error-text: oklch(0.7 0.12 30);
|
|
340
372
|
--error-bg-subtle: oklch(0.2 0.05 30);
|
|
@@ -367,6 +399,11 @@
|
|
|
367
399
|
--glass-border: rgb(255 255 255 / 0.08);
|
|
368
400
|
--backdrop-blur: rgb(0 0 0 / 0.33);
|
|
369
401
|
|
|
402
|
+
/* Auth coastal backdrop */
|
|
403
|
+
--auth-backdrop-overlay-start: oklch(0.13 0.035 270 / 0.84);
|
|
404
|
+
--auth-backdrop-overlay-end: oklch(0.19 0.045 314 / 0.72);
|
|
405
|
+
--auth-backdrop-overlay-accent: oklch(0.33 0.1 318 / 0.52);
|
|
406
|
+
|
|
370
407
|
/* Shadows (stronger in dark) */
|
|
371
408
|
--shadow-2xs: 0px 1px 2px 0px var(--overlay-strong);
|
|
372
409
|
--shadow-xs: 0px 1px 2px 0px var(--overlay-strong);
|
|
@@ -396,6 +433,9 @@
|
|
|
396
433
|
/* ─── Primary (standard for light mode) ─── */
|
|
397
434
|
--primary: var(--brand-primary);
|
|
398
435
|
--primary-foreground: oklch(1 0 0);
|
|
436
|
+
--apple-button-background: var(--foreground);
|
|
437
|
+
--apple-button-foreground: var(--background);
|
|
438
|
+
--apple-button-hover: var(--apple-button-background);
|
|
399
439
|
|
|
400
440
|
/* ─── Secondary/Accent ─── */
|
|
401
441
|
--secondary: oklch(from var(--brand-primary) calc(l + 0.27) calc(c - 0.025) h);
|
|
@@ -432,6 +472,11 @@
|
|
|
432
472
|
oklch(from var(--warning) l calc(c + 0.08) h) 18%
|
|
433
473
|
);
|
|
434
474
|
|
|
475
|
+
/* Finance (light variants) — darkened for legibility on light surfaces */
|
|
476
|
+
--finance-cash: oklch(0.43 0.055 128);
|
|
477
|
+
--finance-debt: oklch(0.45 0.09 5);
|
|
478
|
+
--finance-investment: oklch(0.44 0.05 200);
|
|
479
|
+
|
|
435
480
|
--destructive-foreground: oklch(1 0 0);
|
|
436
481
|
--error-text: oklch(0.35 0.14 30);
|
|
437
482
|
--error-bg-subtle: oklch(0.96 0.02 30);
|
|
@@ -488,6 +533,9 @@
|
|
|
488
533
|
--color-popover-foreground: var(--popover-foreground);
|
|
489
534
|
--color-primary: var(--primary);
|
|
490
535
|
--color-primary-foreground: var(--primary-foreground);
|
|
536
|
+
--color-apple-button-background: var(--apple-button-background);
|
|
537
|
+
--color-apple-button-foreground: var(--apple-button-foreground);
|
|
538
|
+
--color-apple-button-hover: var(--apple-button-hover);
|
|
491
539
|
--color-secondary: var(--secondary);
|
|
492
540
|
--color-secondary-foreground: var(--secondary-foreground);
|
|
493
541
|
--color-muted: var(--muted);
|
|
@@ -520,6 +568,9 @@
|
|
|
520
568
|
--color-info-bg-subtle: var(--info-bg-subtle);
|
|
521
569
|
--color-info-bg-muted: var(--info-bg-muted);
|
|
522
570
|
--color-info-border: var(--info-border);
|
|
571
|
+
--color-finance-cash: var(--finance-cash);
|
|
572
|
+
--color-finance-debt: var(--finance-debt);
|
|
573
|
+
--color-finance-investment: var(--finance-investment);
|
|
523
574
|
|
|
524
575
|
/* UI elements */
|
|
525
576
|
--color-border: var(--border);
|
|
@@ -589,4 +640,5 @@
|
|
|
589
640
|
--shadow-lg: var(--shadow-lg);
|
|
590
641
|
--shadow-xl: var(--shadow-xl);
|
|
591
642
|
--shadow-2xl: var(--shadow-2xl);
|
|
643
|
+
--shadow-card-edge: var(--shadow-border);
|
|
592
644
|
}
|