pi-kiosk-shared 2.2.32 → 2.2.35
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 +78 -78
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +2 -1
- package/dist/api.js.map +1 -1
- package/dist/auditEventCodes.d.ts +1 -1
- package/dist/auditEventCodes.d.ts.map +1 -1
- package/dist/auditEventCodes.js +10 -0
- package/dist/auditEventCodes.js.map +1 -1
- package/dist/auditEventDescriptions.d.ts.map +1 -1
- package/dist/auditEventDescriptions.js +40 -0
- package/dist/auditEventDescriptions.js.map +1 -1
- package/dist/auditEventLabels.d.ts.map +1 -1
- package/dist/auditEventLabels.js +40 -0
- package/dist/auditEventLabels.js.map +1 -1
- package/dist/auditMetadataDisplayFields.d.ts.map +1 -1
- package/dist/auditMetadataDisplayFields.js +28 -0
- package/dist/auditMetadataDisplayFields.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/permissions/canonicalCapabilityIds.d.ts +15 -0
- package/dist/permissions/canonicalCapabilityIds.d.ts.map +1 -0
- package/dist/permissions/canonicalCapabilityIds.js +15 -0
- package/dist/permissions/canonicalCapabilityIds.js.map +1 -0
- package/dist/permissions/capabilityBridgeRules.d.ts.map +1 -1
- package/dist/permissions/capabilityBridgeRules.js +5 -1
- package/dist/permissions/capabilityBridgeRules.js.map +1 -1
- package/dist/sentry/correlationTagBridge.d.ts +16 -0
- package/dist/sentry/correlationTagBridge.d.ts.map +1 -0
- package/dist/sentry/correlationTagBridge.js +20 -0
- package/dist/sentry/correlationTagBridge.js.map +1 -0
- package/dist/sentry/initSentry.d.ts +1 -5
- package/dist/sentry/initSentry.d.ts.map +1 -1
- package/dist/sentry/initSentry.js +5 -10
- package/dist/sentry/initSentry.js.map +1 -1
- package/package.json +313 -291
- package/patches/jsdom+27.4.0.patch +13 -13
- package/scripts/applyMonorepoPatches.mjs +24 -24
- package/src/tokens/__tests__/theme-exports.test.mjs +27 -27
- package/src/tokens/__tests__/theme-light-override.test.mjs +21 -21
- package/src/tokens/admin-theme.css +158 -158
- package/src/tokens/brand-bridge.css +49 -49
- package/src/tokens/responsive.css +85 -85
- package/src/tokens/theme.css +137 -137
|
@@ -1,85 +1,85 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* pi-kiosk-shared responsive contract — custom media aliases (Tailwind v4 Option A).
|
|
3
|
-
* Import after theme.css. wide (1440) is NOT a token here — test viewport only.
|
|
4
|
-
*
|
|
5
|
-
* Breakpoint block generated from breakpoints.ts — run: npm run generate:responsive-css -- --write
|
|
6
|
-
* Drift: gate:responsive-css-generation + gate:responsive-breakpoint-drift
|
|
7
|
-
*/
|
|
8
|
-
:root {
|
|
9
|
-
--rp-breakpoint-sm: 640px;
|
|
10
|
-
--rp-breakpoint-md: 768px;
|
|
11
|
-
--rp-breakpoint-lg: 1024px;
|
|
12
|
-
--rp-breakpoint-xl: 1280px;
|
|
13
|
-
--rp-breakpoint-2xl: 1536px;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
@custom-media --rp-sm-up (min-width: 640px);
|
|
17
|
-
@custom-media --rp-md-up (min-width: 768px);
|
|
18
|
-
@custom-media --rp-lg-up (min-width: 1024px);
|
|
19
|
-
@custom-media --rp-xl-up (min-width: 1280px);
|
|
20
|
-
@custom-media --rp-2xl-up (min-width: 1536px);
|
|
21
|
-
@custom-media --rp-max-lg (max-width: 1023px);
|
|
22
|
-
|
|
23
|
-
/* Container query naming tokens */
|
|
24
|
-
:root {
|
|
25
|
-
--rp-container-card: rp-card;
|
|
26
|
-
--rp-container-kpi: rp-kpi;
|
|
27
|
-
--rp-container-table: rp-table;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.rp-card-container {
|
|
31
|
-
container-type: inline-size;
|
|
32
|
-
container-name: rp-card;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.rp-card-container-inner {
|
|
36
|
-
--rp-card-content-gap: 0.5rem;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.rp-kpi-container {
|
|
40
|
-
container-type: inline-size;
|
|
41
|
-
container-name: rp-kpi;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.rp-table-container {
|
|
45
|
-
container-type: inline-size;
|
|
46
|
-
container-name: rp-table;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.rp-drawer-body {
|
|
50
|
-
container-type: inline-size;
|
|
51
|
-
container-name: rp-drawer-body;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/* Shared Card density — CQ layout (not cosmetic) with viewport fallback */
|
|
55
|
-
.rp-card-container-inner > * + * {
|
|
56
|
-
margin-block-start: var(--rp-card-content-gap);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
@supports (container-type: inline-size) {
|
|
60
|
-
@container rp-card (min-width: 20rem) {
|
|
61
|
-
.rp-card-container-inner {
|
|
62
|
-
--rp-card-content-gap: 0.75rem;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
@container rp-card (min-width: 28rem) {
|
|
67
|
-
.rp-card-container-inner {
|
|
68
|
-
--rp-card-content-gap: 1rem;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
@supports not (container-type: inline-size) {
|
|
74
|
-
@media (min-width: 640px) {
|
|
75
|
-
.rp-card-container-inner {
|
|
76
|
-
--rp-card-content-gap: 0.75rem;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
@media (min-width: 1024px) {
|
|
81
|
-
.rp-card-container-inner {
|
|
82
|
-
--rp-card-content-gap: 1rem;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* pi-kiosk-shared responsive contract — custom media aliases (Tailwind v4 Option A).
|
|
3
|
+
* Import after theme.css. wide (1440) is NOT a token here — test viewport only.
|
|
4
|
+
*
|
|
5
|
+
* Breakpoint block generated from breakpoints.ts — run: npm run generate:responsive-css -- --write
|
|
6
|
+
* Drift: gate:responsive-css-generation + gate:responsive-breakpoint-drift
|
|
7
|
+
*/
|
|
8
|
+
:root {
|
|
9
|
+
--rp-breakpoint-sm: 640px;
|
|
10
|
+
--rp-breakpoint-md: 768px;
|
|
11
|
+
--rp-breakpoint-lg: 1024px;
|
|
12
|
+
--rp-breakpoint-xl: 1280px;
|
|
13
|
+
--rp-breakpoint-2xl: 1536px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@custom-media --rp-sm-up (min-width: 640px);
|
|
17
|
+
@custom-media --rp-md-up (min-width: 768px);
|
|
18
|
+
@custom-media --rp-lg-up (min-width: 1024px);
|
|
19
|
+
@custom-media --rp-xl-up (min-width: 1280px);
|
|
20
|
+
@custom-media --rp-2xl-up (min-width: 1536px);
|
|
21
|
+
@custom-media --rp-max-lg (max-width: 1023px);
|
|
22
|
+
|
|
23
|
+
/* Container query naming tokens */
|
|
24
|
+
:root {
|
|
25
|
+
--rp-container-card: rp-card;
|
|
26
|
+
--rp-container-kpi: rp-kpi;
|
|
27
|
+
--rp-container-table: rp-table;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.rp-card-container {
|
|
31
|
+
container-type: inline-size;
|
|
32
|
+
container-name: rp-card;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.rp-card-container-inner {
|
|
36
|
+
--rp-card-content-gap: 0.5rem;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.rp-kpi-container {
|
|
40
|
+
container-type: inline-size;
|
|
41
|
+
container-name: rp-kpi;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.rp-table-container {
|
|
45
|
+
container-type: inline-size;
|
|
46
|
+
container-name: rp-table;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.rp-drawer-body {
|
|
50
|
+
container-type: inline-size;
|
|
51
|
+
container-name: rp-drawer-body;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/* Shared Card density — CQ layout (not cosmetic) with viewport fallback */
|
|
55
|
+
.rp-card-container-inner > * + * {
|
|
56
|
+
margin-block-start: var(--rp-card-content-gap);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
@supports (container-type: inline-size) {
|
|
60
|
+
@container rp-card (min-width: 20rem) {
|
|
61
|
+
.rp-card-container-inner {
|
|
62
|
+
--rp-card-content-gap: 0.75rem;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@container rp-card (min-width: 28rem) {
|
|
67
|
+
.rp-card-container-inner {
|
|
68
|
+
--rp-card-content-gap: 1rem;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@supports not (container-type: inline-size) {
|
|
74
|
+
@media (min-width: 640px) {
|
|
75
|
+
.rp-card-container-inner {
|
|
76
|
+
--rp-card-content-gap: 0.75rem;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
@media (min-width: 1024px) {
|
|
81
|
+
.rp-card-container-inner {
|
|
82
|
+
--rp-card-content-gap: 1rem;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
package/src/tokens/theme.css
CHANGED
|
@@ -1,137 +1,137 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Customer / kiosk / pickup design tokens — import from pi-kiosk-shared/theme.css
|
|
3
|
-
* Apps: @import "pi-kiosk-shared/theme.css" after tailwindcss in globals entry.
|
|
4
|
-
*
|
|
5
|
-
* MFE-v3-S-01: brand-bridge.css supplies --brand-* SSOT; @theme maps semantic tokens.
|
|
6
|
-
* MFE-v3-S-2: DECISION-2 C-Hybrid — prefers-color-scheme + `.dark` override blocks.
|
|
7
|
-
*/
|
|
8
|
-
@import './brand-bridge.css';
|
|
9
|
-
|
|
10
|
-
@theme {
|
|
11
|
-
--color-surface: #ffffff;
|
|
12
|
-
--color-surface-muted: #f8fafc;
|
|
13
|
-
--color-surface-elevated: #ffffff;
|
|
14
|
-
--color-surface-hover: #f1f5f9;
|
|
15
|
-
--color-on-surface: #0f172a;
|
|
16
|
-
--color-on-surface-muted: #475569;
|
|
17
|
-
--color-on-surface-disabled: #94a3b8;
|
|
18
|
-
--color-primary: #0f172a;
|
|
19
|
-
--color-primary-foreground: #f8fafc;
|
|
20
|
-
--color-accent: var(--brand-consumer-accent);
|
|
21
|
-
--color-accent-foreground: var(--brand-consumer-accent-foreground);
|
|
22
|
-
--color-accent-hover: #001a33;
|
|
23
|
-
--color-success: #16a34a;
|
|
24
|
-
--color-success-foreground: #ecfdf5;
|
|
25
|
-
--color-danger: #dc2626;
|
|
26
|
-
--color-danger-foreground: #fef2f2;
|
|
27
|
-
--color-warning: #d97706;
|
|
28
|
-
--color-warning-foreground: #fffbeb;
|
|
29
|
-
--color-border: #e2e8f0;
|
|
30
|
-
--color-border-strong: #cbd5e1;
|
|
31
|
-
--color-focus-ring: var(--brand-consumer-accent);
|
|
32
|
-
--color-qr-render-dark: #000000;
|
|
33
|
-
--color-qr-render-light: #ffffff;
|
|
34
|
-
--color-disabled-opacity: 0.55;
|
|
35
|
-
--radius-sm: 0.375rem;
|
|
36
|
-
--radius-md: 0.5rem;
|
|
37
|
-
--radius-lg: 0.75rem;
|
|
38
|
-
--radius-xl: 1rem;
|
|
39
|
-
--shadow-card: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.04);
|
|
40
|
-
--shadow-popover: 0 6px 24px rgba(15, 23, 42, 0.12);
|
|
41
|
-
--motion-duration-fast: 120ms;
|
|
42
|
-
--motion-duration-base: 200ms;
|
|
43
|
-
--motion-easing-standard: cubic-bezier(0.2, 0.8, 0.2, 1);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
@media (prefers-color-scheme: dark) {
|
|
47
|
-
@theme {
|
|
48
|
-
--color-surface: #0b1220;
|
|
49
|
-
--color-surface-muted: #0f172a;
|
|
50
|
-
--color-surface-elevated: #111a2e;
|
|
51
|
-
--color-surface-hover: #162031;
|
|
52
|
-
--color-on-surface: #e2e8f0;
|
|
53
|
-
--color-on-surface-muted: #94a3b8;
|
|
54
|
-
--color-on-surface-disabled: #64748b;
|
|
55
|
-
--color-primary: #f8fafc;
|
|
56
|
-
--color-primary-foreground: #0f172a;
|
|
57
|
-
--color-accent: var(--brand-consumer-accent);
|
|
58
|
-
--color-accent-foreground: var(--brand-consumer-accent-foreground);
|
|
59
|
-
--color-accent-hover: var(--brand-consumer-accent-soft);
|
|
60
|
-
--color-success: #22c55e;
|
|
61
|
-
--color-success-foreground: #052e16;
|
|
62
|
-
--color-danger: #f87171;
|
|
63
|
-
--color-danger-foreground: #450a0a;
|
|
64
|
-
--color-warning: #fbbf24;
|
|
65
|
-
--color-warning-foreground: #451a03;
|
|
66
|
-
--color-border: #1f2937;
|
|
67
|
-
--color-border-strong: #334155;
|
|
68
|
-
--color-focus-ring: var(--brand-consumer-accent-soft);
|
|
69
|
-
--color-disabled-opacity: 0.5;
|
|
70
|
-
--shadow-card: 0 1px 2px rgba(0, 0, 0, 0.28), 0 4px 12px rgba(0, 0, 0, 0.2);
|
|
71
|
-
--shadow-popover: 0 6px 24px rgba(0, 0, 0, 0.36);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* C-Hybrid user override — same values as prefers-color-scheme dark.
|
|
77
|
-
* Wired by ThemeProvider (MFE-v3-S-3) via `.dark` on documentElement.
|
|
78
|
-
*/
|
|
79
|
-
.dark {
|
|
80
|
-
color-scheme: dark;
|
|
81
|
-
--color-surface: #0b1220;
|
|
82
|
-
--color-surface-muted: #0f172a;
|
|
83
|
-
--color-surface-elevated: #111a2e;
|
|
84
|
-
--color-surface-hover: #162031;
|
|
85
|
-
--color-on-surface: #e2e8f0;
|
|
86
|
-
--color-on-surface-muted: #94a3b8;
|
|
87
|
-
--color-on-surface-disabled: #64748b;
|
|
88
|
-
--color-primary: #f8fafc;
|
|
89
|
-
--color-primary-foreground: #0f172a;
|
|
90
|
-
--color-accent: var(--brand-consumer-accent);
|
|
91
|
-
--color-accent-foreground: var(--brand-consumer-accent-foreground);
|
|
92
|
-
--color-accent-hover: var(--brand-consumer-accent-soft);
|
|
93
|
-
--color-success: #22c55e;
|
|
94
|
-
--color-success-foreground: #052e16;
|
|
95
|
-
--color-danger: #f87171;
|
|
96
|
-
--color-danger-foreground: #450a0a;
|
|
97
|
-
--color-warning: #fbbf24;
|
|
98
|
-
--color-warning-foreground: #451a03;
|
|
99
|
-
--color-border: #1f2937;
|
|
100
|
-
--color-border-strong: #334155;
|
|
101
|
-
--color-focus-ring: var(--brand-consumer-accent-soft);
|
|
102
|
-
--color-disabled-opacity: 0.5;
|
|
103
|
-
--shadow-card: 0 1px 2px rgba(0, 0, 0, 0.28), 0 4px 12px rgba(0, 0, 0, 0.2);
|
|
104
|
-
--shadow-popover: 0 6px 24px rgba(0, 0, 0, 0.36);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* Explicit light override — wins over `@media (prefers-color-scheme: dark)` when
|
|
109
|
-
* user selects Light while OS is dark (Theme Contract / customer_theme_light_fix_v1).
|
|
110
|
-
*/
|
|
111
|
-
.light {
|
|
112
|
-
color-scheme: light;
|
|
113
|
-
--color-surface: #ffffff;
|
|
114
|
-
--color-surface-muted: #f8fafc;
|
|
115
|
-
--color-surface-elevated: #ffffff;
|
|
116
|
-
--color-surface-hover: #f1f5f9;
|
|
117
|
-
--color-on-surface: #0f172a;
|
|
118
|
-
--color-on-surface-muted: #475569;
|
|
119
|
-
--color-on-surface-disabled: #94a3b8;
|
|
120
|
-
--color-primary: #0f172a;
|
|
121
|
-
--color-primary-foreground: #f8fafc;
|
|
122
|
-
--color-accent: var(--brand-consumer-accent);
|
|
123
|
-
--color-accent-foreground: var(--brand-consumer-accent-foreground);
|
|
124
|
-
--color-accent-hover: #001a33;
|
|
125
|
-
--color-success: #16a34a;
|
|
126
|
-
--color-success-foreground: #ecfdf5;
|
|
127
|
-
--color-danger: #dc2626;
|
|
128
|
-
--color-danger-foreground: #fef2f2;
|
|
129
|
-
--color-warning: #d97706;
|
|
130
|
-
--color-warning-foreground: #fffbeb;
|
|
131
|
-
--color-border: #e2e8f0;
|
|
132
|
-
--color-border-strong: #cbd5e1;
|
|
133
|
-
--color-focus-ring: var(--brand-consumer-accent);
|
|
134
|
-
--color-disabled-opacity: 0.55;
|
|
135
|
-
--shadow-card: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.04);
|
|
136
|
-
--shadow-popover: 0 6px 24px rgba(15, 23, 42, 0.12);
|
|
137
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* Customer / kiosk / pickup design tokens — import from pi-kiosk-shared/theme.css
|
|
3
|
+
* Apps: @import "pi-kiosk-shared/theme.css" after tailwindcss in globals entry.
|
|
4
|
+
*
|
|
5
|
+
* MFE-v3-S-01: brand-bridge.css supplies --brand-* SSOT; @theme maps semantic tokens.
|
|
6
|
+
* MFE-v3-S-2: DECISION-2 C-Hybrid — prefers-color-scheme + `.dark` override blocks.
|
|
7
|
+
*/
|
|
8
|
+
@import './brand-bridge.css';
|
|
9
|
+
|
|
10
|
+
@theme {
|
|
11
|
+
--color-surface: #ffffff;
|
|
12
|
+
--color-surface-muted: #f8fafc;
|
|
13
|
+
--color-surface-elevated: #ffffff;
|
|
14
|
+
--color-surface-hover: #f1f5f9;
|
|
15
|
+
--color-on-surface: #0f172a;
|
|
16
|
+
--color-on-surface-muted: #475569;
|
|
17
|
+
--color-on-surface-disabled: #94a3b8;
|
|
18
|
+
--color-primary: #0f172a;
|
|
19
|
+
--color-primary-foreground: #f8fafc;
|
|
20
|
+
--color-accent: var(--brand-consumer-accent);
|
|
21
|
+
--color-accent-foreground: var(--brand-consumer-accent-foreground);
|
|
22
|
+
--color-accent-hover: #001a33;
|
|
23
|
+
--color-success: #16a34a;
|
|
24
|
+
--color-success-foreground: #ecfdf5;
|
|
25
|
+
--color-danger: #dc2626;
|
|
26
|
+
--color-danger-foreground: #fef2f2;
|
|
27
|
+
--color-warning: #d97706;
|
|
28
|
+
--color-warning-foreground: #fffbeb;
|
|
29
|
+
--color-border: #e2e8f0;
|
|
30
|
+
--color-border-strong: #cbd5e1;
|
|
31
|
+
--color-focus-ring: var(--brand-consumer-accent);
|
|
32
|
+
--color-qr-render-dark: #000000;
|
|
33
|
+
--color-qr-render-light: #ffffff;
|
|
34
|
+
--color-disabled-opacity: 0.55;
|
|
35
|
+
--radius-sm: 0.375rem;
|
|
36
|
+
--radius-md: 0.5rem;
|
|
37
|
+
--radius-lg: 0.75rem;
|
|
38
|
+
--radius-xl: 1rem;
|
|
39
|
+
--shadow-card: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.04);
|
|
40
|
+
--shadow-popover: 0 6px 24px rgba(15, 23, 42, 0.12);
|
|
41
|
+
--motion-duration-fast: 120ms;
|
|
42
|
+
--motion-duration-base: 200ms;
|
|
43
|
+
--motion-easing-standard: cubic-bezier(0.2, 0.8, 0.2, 1);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@media (prefers-color-scheme: dark) {
|
|
47
|
+
@theme {
|
|
48
|
+
--color-surface: #0b1220;
|
|
49
|
+
--color-surface-muted: #0f172a;
|
|
50
|
+
--color-surface-elevated: #111a2e;
|
|
51
|
+
--color-surface-hover: #162031;
|
|
52
|
+
--color-on-surface: #e2e8f0;
|
|
53
|
+
--color-on-surface-muted: #94a3b8;
|
|
54
|
+
--color-on-surface-disabled: #64748b;
|
|
55
|
+
--color-primary: #f8fafc;
|
|
56
|
+
--color-primary-foreground: #0f172a;
|
|
57
|
+
--color-accent: var(--brand-consumer-accent);
|
|
58
|
+
--color-accent-foreground: var(--brand-consumer-accent-foreground);
|
|
59
|
+
--color-accent-hover: var(--brand-consumer-accent-soft);
|
|
60
|
+
--color-success: #22c55e;
|
|
61
|
+
--color-success-foreground: #052e16;
|
|
62
|
+
--color-danger: #f87171;
|
|
63
|
+
--color-danger-foreground: #450a0a;
|
|
64
|
+
--color-warning: #fbbf24;
|
|
65
|
+
--color-warning-foreground: #451a03;
|
|
66
|
+
--color-border: #1f2937;
|
|
67
|
+
--color-border-strong: #334155;
|
|
68
|
+
--color-focus-ring: var(--brand-consumer-accent-soft);
|
|
69
|
+
--color-disabled-opacity: 0.5;
|
|
70
|
+
--shadow-card: 0 1px 2px rgba(0, 0, 0, 0.28), 0 4px 12px rgba(0, 0, 0, 0.2);
|
|
71
|
+
--shadow-popover: 0 6px 24px rgba(0, 0, 0, 0.36);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* C-Hybrid user override — same values as prefers-color-scheme dark.
|
|
77
|
+
* Wired by ThemeProvider (MFE-v3-S-3) via `.dark` on documentElement.
|
|
78
|
+
*/
|
|
79
|
+
.dark {
|
|
80
|
+
color-scheme: dark;
|
|
81
|
+
--color-surface: #0b1220;
|
|
82
|
+
--color-surface-muted: #0f172a;
|
|
83
|
+
--color-surface-elevated: #111a2e;
|
|
84
|
+
--color-surface-hover: #162031;
|
|
85
|
+
--color-on-surface: #e2e8f0;
|
|
86
|
+
--color-on-surface-muted: #94a3b8;
|
|
87
|
+
--color-on-surface-disabled: #64748b;
|
|
88
|
+
--color-primary: #f8fafc;
|
|
89
|
+
--color-primary-foreground: #0f172a;
|
|
90
|
+
--color-accent: var(--brand-consumer-accent);
|
|
91
|
+
--color-accent-foreground: var(--brand-consumer-accent-foreground);
|
|
92
|
+
--color-accent-hover: var(--brand-consumer-accent-soft);
|
|
93
|
+
--color-success: #22c55e;
|
|
94
|
+
--color-success-foreground: #052e16;
|
|
95
|
+
--color-danger: #f87171;
|
|
96
|
+
--color-danger-foreground: #450a0a;
|
|
97
|
+
--color-warning: #fbbf24;
|
|
98
|
+
--color-warning-foreground: #451a03;
|
|
99
|
+
--color-border: #1f2937;
|
|
100
|
+
--color-border-strong: #334155;
|
|
101
|
+
--color-focus-ring: var(--brand-consumer-accent-soft);
|
|
102
|
+
--color-disabled-opacity: 0.5;
|
|
103
|
+
--shadow-card: 0 1px 2px rgba(0, 0, 0, 0.28), 0 4px 12px rgba(0, 0, 0, 0.2);
|
|
104
|
+
--shadow-popover: 0 6px 24px rgba(0, 0, 0, 0.36);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Explicit light override — wins over `@media (prefers-color-scheme: dark)` when
|
|
109
|
+
* user selects Light while OS is dark (Theme Contract / customer_theme_light_fix_v1).
|
|
110
|
+
*/
|
|
111
|
+
.light {
|
|
112
|
+
color-scheme: light;
|
|
113
|
+
--color-surface: #ffffff;
|
|
114
|
+
--color-surface-muted: #f8fafc;
|
|
115
|
+
--color-surface-elevated: #ffffff;
|
|
116
|
+
--color-surface-hover: #f1f5f9;
|
|
117
|
+
--color-on-surface: #0f172a;
|
|
118
|
+
--color-on-surface-muted: #475569;
|
|
119
|
+
--color-on-surface-disabled: #94a3b8;
|
|
120
|
+
--color-primary: #0f172a;
|
|
121
|
+
--color-primary-foreground: #f8fafc;
|
|
122
|
+
--color-accent: var(--brand-consumer-accent);
|
|
123
|
+
--color-accent-foreground: var(--brand-consumer-accent-foreground);
|
|
124
|
+
--color-accent-hover: #001a33;
|
|
125
|
+
--color-success: #16a34a;
|
|
126
|
+
--color-success-foreground: #ecfdf5;
|
|
127
|
+
--color-danger: #dc2626;
|
|
128
|
+
--color-danger-foreground: #fef2f2;
|
|
129
|
+
--color-warning: #d97706;
|
|
130
|
+
--color-warning-foreground: #fffbeb;
|
|
131
|
+
--color-border: #e2e8f0;
|
|
132
|
+
--color-border-strong: #cbd5e1;
|
|
133
|
+
--color-focus-ring: var(--brand-consumer-accent);
|
|
134
|
+
--color-disabled-opacity: 0.55;
|
|
135
|
+
--shadow-card: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.04);
|
|
136
|
+
--shadow-popover: 0 6px 24px rgba(15, 23, 42, 0.12);
|
|
137
|
+
}
|