@praxisui/core 10.0.0-rc.47 → 10.0.0-rc.49

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.
@@ -0,0 +1,519 @@
1
+ /* ==========================================================================
2
+ Praxis Platform — Executive Workspace Theme Palettes & 3-Tier Gradient Architecture
3
+
4
+ Gradient & Surface Token Hierarchy:
5
+ 1. --surface-gradient:
6
+ Expressive ambient/banner surface gradient for low-repetition hero cards
7
+ and executive banners.
8
+ 2. --header-surface-gradient:
9
+ Balanced, low-chroma structural header gradient for high-repetition chrome
10
+ (WidgetShell headers, Table Toolbars, Modal/Dialog title bars) to preserve
11
+ visual continuity without chromatic fatigue on multi-widget dashboards.
12
+ 3. --table-column-header-bg:
13
+ Solid, horizontally uniform elevated surface for table column headers (<tr>/<th>)
14
+ so adjacent cells never produce vertical gradient "sawtooth" seams.
15
+ 4. --command-gradient:
16
+ High-emphasis interactive gradient reserved exclusively for the primary
17
+ Call-to-Action button in a surface.
18
+ ========================================================================== */
19
+ $cosmos-action: #066afe;
20
+
21
+ :root[data-theme="classic"] {
22
+ --format-orange: #ad4b15;
23
+ --format-amber: #886009;
24
+ color-scheme: light;
25
+ --overlay: oklch(0.2 0.01 260 / 0.3);
26
+ --background: oklch(1 0 0);
27
+ --foreground: oklch(0.30610771 0.03497958 257.11003942);
28
+ --card: oklch(1 0 0);
29
+ --card-foreground: oklch(0.129 0.042 264.695);
30
+ --popover: oklch(1 0 0);
31
+ --popover-foreground: oklch(0.129 0.042 264.695);
32
+ --primary: oklch(0.54614972 0.21520775 262.88091714);
33
+ --primary-deep: oklch(0.48819831 0.21716546 264.37630409);
34
+ --primary-foreground: oklch(1 0 0);
35
+ --secondary: oklch(0.968 0.007 247.896);
36
+ --secondary-foreground: oklch(0.208 0.042 265.755);
37
+ --muted: oklch(0.968 0.007 247.896);
38
+ --muted-foreground: oklch(0.52 0.028 257);
39
+ --accent: oklch(0.968 0.007 247.896);
40
+ --accent-foreground: oklch(0.208 0.042 265.755);
41
+ --destructive: oklch(0.577 0.245 27.325);
42
+ --destructive-foreground: oklch(0.984 0.003 247.858);
43
+ --border: oklch(0.917 0.01 257);
44
+ --input: oklch(0.88 0.008 260);
45
+ --ring: var(--primary);
46
+ --canvas: oklch(0.97817619 0.00341787 247.85782574);
47
+ --workspace-surface: var(--background);
48
+ --category-teal: oklch(0.57852931 0.09591004 196.66336446);
49
+ --category-sky: oklch(0.52 0.12 230);
50
+ --category-violet: oklch(0.53 0.16 294);
51
+ --category-indigo: oklch(0.5 0.15 275);
52
+ --category-event: oklch(0.53 0.15 330);
53
+ --state-success: oklch(0.49 0.08 150);
54
+ --state-warning: oklch(0.56 0.12 77);
55
+ --node-shadow: 0 3px 8px oklch(0.30610771 0.03497958 257.11003942 / 0.05);
56
+ --float-shadow: 0 8px 24px oklch(0.30610771 0.03497958 257.11003942 / 0.09);
57
+ --command-gradient: linear-gradient(135deg, var(--primary), var(--primary-deep));
58
+ --surface-gradient: linear-gradient(100deg, var(--background), var(--canvas));
59
+ --header-surface-gradient: linear-gradient(180deg, oklch(0.996 0.002 257) 0%, oklch(0.978 0.005 257) 100%);
60
+ --table-column-header-bg: oklch(0.968 0.007 257);
61
+ }
62
+
63
+ :root[data-theme="light-tech"] {
64
+ --format-orange: #ad4b15;
65
+ --format-amber: #886009;
66
+ color-scheme: light;
67
+ --overlay: oklch(0.2 0.01 260 / 0.3);
68
+ --background: oklch(0.994 0.003 240);
69
+ --foreground: oklch(0.28 0.035 245);
70
+ --card: oklch(1 0 0);
71
+ --card-foreground: var(--foreground);
72
+ --popover: oklch(1 0 0);
73
+ --popover-foreground: var(--foreground);
74
+ --primary: oklch(0.45 0.092 232);
75
+ --primary-deep: oklch(0.39 0.095 243);
76
+ --primary-foreground: oklch(1 0 0);
77
+ --secondary: oklch(0.954 0.016 240);
78
+ --secondary-foreground: var(--foreground);
79
+ --muted: oklch(0.958 0.01 240);
80
+ --muted-foreground: oklch(0.49 0.027 245);
81
+ --accent: oklch(0.939 0.022 230);
82
+ --accent-foreground: var(--primary);
83
+ --destructive: oklch(0.577 0.245 27.325);
84
+ --destructive-foreground: oklch(0.984 0.003 247.858);
85
+ --border: oklch(0.884 0.018 240);
86
+ --input: oklch(0.75 0.023 240);
87
+ --ring: var(--primary);
88
+ --canvas: oklch(0.96 0.013 240);
89
+ --workspace-surface: oklch(0.982 0.008 240);
90
+ --category-teal: oklch(0.46 0.085 195);
91
+ --category-sky: oklch(0.46 0.115 233);
92
+ --category-violet: oklch(0.48 0.16 295);
93
+ --category-indigo: oklch(0.46 0.14 274);
94
+ --category-event: oklch(0.46 0.13 333);
95
+ --state-success: oklch(0.44 0.09 163);
96
+ --state-warning: oklch(0.49 0.105 65);
97
+ --node-shadow: 0 2px 3px oklch(0.28 0.035 245 / 0.04), 0 8px 18px oklch(0.28 0.035 245 / 0.045);
98
+ --float-shadow: 0 8px 30px oklch(0.28 0.035 245 / 0.12);
99
+ --command-gradient: linear-gradient(135deg, var(--primary), var(--primary-deep));
100
+ --surface-gradient: linear-gradient(120deg, var(--card), var(--workspace-surface));
101
+ --header-surface-gradient: linear-gradient(120deg, var(--card), var(--workspace-surface));
102
+ --table-column-header-bg: oklch(0.966 0.011 240);
103
+ }
104
+
105
+ :root[data-theme="dark-tech"] {
106
+ --format-orange: #ffae79;
107
+ --format-amber: #e9c76a;
108
+ color-scheme: dark;
109
+ --overlay: oklch(0.1 0.012 250 / 0.7);
110
+ --background: oklch(0.215 0.019 250);
111
+ --foreground: oklch(0.945 0.009 235);
112
+ --card: oklch(0.255 0.022 250);
113
+ --card-foreground: var(--foreground);
114
+ --popover: oklch(0.29 0.025 250);
115
+ --popover-foreground: var(--foreground);
116
+ --primary: oklch(0.8 0.1 220);
117
+ --primary-deep: oklch(0.75 0.11 235);
118
+ --primary-foreground: oklch(0.2 0.03 250);
119
+ --secondary: oklch(0.31 0.025 250);
120
+ --secondary-foreground: var(--foreground);
121
+ --muted: oklch(0.28 0.019 250);
122
+ --muted-foreground: oklch(0.755 0.025 245);
123
+ --accent: oklch(0.33 0.037 240);
124
+ --accent-foreground: var(--foreground);
125
+ --destructive: oklch(0.75 0.14 25);
126
+ --destructive-foreground: oklch(0.2 0.035 25);
127
+ --border: oklch(0.385 0.025 250);
128
+ --input: oklch(0.48 0.03 250);
129
+ --ring: var(--primary);
130
+ --canvas: oklch(0.18 0.015 250);
131
+ --workspace-surface: oklch(0.255 0.02 250);
132
+ --category-teal: oklch(0.8 0.105 190);
133
+ --category-sky: oklch(0.81 0.105 233);
134
+ --category-violet: oklch(0.8 0.115 295);
135
+ --category-indigo: oklch(0.79 0.105 274);
136
+ --category-event: oklch(0.8 0.115 333);
137
+ --state-success: oklch(0.79 0.12 162);
138
+ --state-warning: oklch(0.83 0.13 80);
139
+ --node-shadow: 0 2px 5px oklch(0.1 0.012 250 / 0.3), 0 8px 20px oklch(0.1 0.012 250 / 0.18);
140
+ --float-shadow: 0 12px 40px oklch(0.1 0.012 250 / 0.45);
141
+ --command-gradient: linear-gradient(125deg, oklch(0.84 0.11 205), oklch(0.77 0.125 252));
142
+ --surface-gradient: linear-gradient(
143
+ 112deg,
144
+ oklch(0.285 0.052 242),
145
+ oklch(0.25 0.045 270) 58%,
146
+ oklch(0.265 0.043 295)
147
+ );
148
+ --header-surface-gradient: linear-gradient(
149
+ 115deg,
150
+ oklch(0.272 0.024 245) 0%,
151
+ oklch(0.252 0.021 252) 58%,
152
+ oklch(0.258 0.022 262) 100%
153
+ );
154
+ --table-column-header-bg: oklch(0.232 0.019 250);
155
+ --dark-panel-gradient: linear-gradient(
156
+ 155deg,
157
+ oklch(0.29 0.037 247),
158
+ var(--workspace-surface) 45%,
159
+ oklch(0.255 0.031 280)
160
+ );
161
+ --dark-canvas-gradient: radial-gradient(ellipse at 8% 0%, oklch(0.26 0.045 238 / 0.65), transparent 55%),
162
+ radial-gradient(ellipse at 100% 100%, oklch(0.25 0.04 285 / 0.45), transparent 60%);
163
+ }
164
+
165
+ :root {
166
+ --workspace-card-surface: var(--dark-panel-gradient, linear-gradient(var(--card), var(--card)));
167
+ --workspace-card-outline: linear-gradient(
168
+ 135deg,
169
+ color-mix(in oklab, var(--primary) 42%, var(--border)),
170
+ var(--border) 56%,
171
+ color-mix(in oklab, var(--primary) 18%, var(--border))
172
+ );
173
+ --workspace-card-outline-hover: linear-gradient(
174
+ 135deg,
175
+ color-mix(in oklab, var(--primary) 75%, var(--border)),
176
+ var(--border) 56%,
177
+ color-mix(in oklab, var(--primary) 38%, var(--border))
178
+ );
179
+ --workspace-card-frame: var(--workspace-card-surface) padding-box,
180
+ var(--workspace-card-outline) border-box;
181
+ --font-sans: 'Source Sans 3', 'IBM Plex Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
182
+ --font-display: var(--font-sans);
183
+ --font-mono: 'JetBrains Mono', monospace;
184
+ --radius: 0.625rem;
185
+ --radius-sm: 6px;
186
+ --radius-md: 8px;
187
+ --radius-lg: 10px;
188
+ --radius-xl: 14px;
189
+ --radius-2xl: 18px;
190
+ --command-gradient: linear-gradient(135deg, var(--primary), var(--primary-deep, var(--primary)));
191
+ --surface-gradient: linear-gradient(120deg, var(--card), var(--workspace-surface, var(--background)));
192
+ --header-surface-gradient: var(--surface-gradient);
193
+ --table-column-header-bg: var(--muted);
194
+ --sidebar: var(--workspace-surface);
195
+ --sidebar-foreground: var(--foreground);
196
+ --sidebar-primary: var(--primary);
197
+ --sidebar-primary-foreground: var(--primary-foreground);
198
+ --sidebar-accent: var(--accent);
199
+ --sidebar-accent-foreground: var(--accent-foreground);
200
+ --sidebar-border: var(--border);
201
+ --ready: var(--state-success, oklch(0.45 0.1 163));
202
+ --warning: var(--state-warning, oklch(0.49 0.105 65));
203
+ --alert: var(--destructive);
204
+ --rh: var(--category-sky);
205
+ --operations: var(--warning);
206
+ --assets: var(--ready);
207
+ --supplies: var(--category-violet);
208
+ --risk: var(--destructive);
209
+ --cobalt: var(--category-indigo);
210
+ --command: var(--popover);
211
+ --command-foreground: var(--popover-foreground);
212
+ --shadow-panel: var(--node-shadow, 0 2px 8px oklch(0.3 0.03 245 / 0.08));
213
+ --shadow-command: var(--float-shadow, 0 8px 30px oklch(0.3 0.03 245 / 0.12));
214
+ --pdx-loading-overlay-bg: color-mix(in oklab, var(--card) 85%, transparent);
215
+ --pdx-loading-text: var(--foreground);
216
+ --pdx-loading-text-shadow: none;
217
+ --pdx-loading-spinner-track: color-mix(in oklab, var(--primary) 20%, transparent);
218
+ --pdx-loading-spinner-accent: var(--primary);
219
+ --pdx-loading-topbar-gradient: var(--command-gradient);
220
+ --pdx-loading-topbar-height: 3px;
221
+ --pdx-loading-topbar-text: var(--muted-foreground);
222
+ --pdx-loading-inline-bg: var(--card);
223
+ --pdx-loading-inline-border: 1px solid var(--border);
224
+ --praxis-layer-loading-blocking: 99999;
225
+ --praxis-layer-loading-inline: 120;
226
+ --prx-micro-tone-info: var(--category-sky);
227
+ --prx-micro-tone-info-text: var(--category-sky);
228
+ --prx-micro-tone-success: var(--ready);
229
+ --prx-micro-tone-success-text: var(--ready);
230
+ --prx-micro-tone-warning: var(--warning);
231
+ --prx-micro-tone-warning-text: var(--warning);
232
+ --prx-micro-tone-danger: var(--alert);
233
+ --prx-micro-tone-danger-text: var(--alert);
234
+ --prx-micro-track-color: var(--muted);
235
+ --prx-micro-text-color: var(--foreground);
236
+ --prx-micro-label-color: var(--muted-foreground);
237
+ --prx-micro-target-color: var(--foreground);
238
+ }
239
+
240
+ /* Brasa — warm editorial amber and parchment day palette. */
241
+ :root[data-theme="brasa"] {
242
+ color-scheme: light;
243
+ --overlay: rgb(52 40 30 / 28%);
244
+ --background: #f4efe7;
245
+ --foreground: #282a29;
246
+ --card: #fcf9f4;
247
+ --card-foreground: var(--foreground);
248
+ --popover: #fcf9f4;
249
+ --popover-foreground: var(--foreground);
250
+ --primary: #a4472f;
251
+ --primary-deep: #8e3b28;
252
+ --primary-foreground: #ffffff;
253
+ --secondary: #ebe4da;
254
+ --secondary-foreground: var(--foreground);
255
+ --muted: #ebe4da;
256
+ --muted-foreground: #68635d;
257
+ --accent: #f2d0bb;
258
+ --accent-foreground: var(--foreground);
259
+ --destructive: #a33335;
260
+ --destructive-foreground: #ffffff;
261
+ --border: #d9d0c4;
262
+ --input: #887c6c;
263
+ --ring: var(--primary);
264
+ --canvas: #f4efe7;
265
+ --workspace-surface: #fcf9f4;
266
+ --sidebar: var(--card);
267
+ --sidebar-accent-foreground: var(--foreground);
268
+ --category-teal: #3f634a;
269
+ --category-sky: #41677b;
270
+ --category-violet: #6b527b;
271
+ --category-indigo: #4f5b7b;
272
+ --category-event: #a74d74;
273
+ --state-success: #3f634a;
274
+ --state-warning: #78520d;
275
+ --format-orange: #a4472f;
276
+ --format-amber: #78520d;
277
+ --node-shadow: 0 5px 10px rgb(89 67 42 / 3%), 0 17px 35px rgb(89 67 42 / 3%);
278
+ --float-shadow: 0 12px 32px rgb(89 67 42 / 14%);
279
+ --command-gradient: linear-gradient(150deg, var(--primary), var(--primary-deep));
280
+ --surface-gradient: linear-gradient(120deg, var(--card), var(--background));
281
+ --header-surface-gradient: linear-gradient(var(--card), var(--card));
282
+ --table-column-header-bg: var(--muted);
283
+ --font-sans: 'Source Sans 3', 'IBM Plex Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
284
+ --font-display: 'Source Sans 3', 'IBM Plex Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
285
+ --hero-reading-font: var(--font-sans);
286
+ --hero-small-text: 12px;
287
+ --hero-strong-weight: 600;
288
+ --radius-lg: 12px;
289
+ --radius-xl: 14px;
290
+ }
291
+
292
+ /* Aura — spatial frosted pearl-iris glass over an organic chromatic mesh backlight harmonized
293
+ with a royal ultramarine (#2a2991) + aqua-lagoon + soft orchid & pearl-sage palette,
294
+ tactile grain, specular 1px light edges, and Newsreader editorial display.
295
+ Calibrated to WCAG 2.1 AA across both opaque fallbacks and alpha-composited glass. */
296
+ :root[data-theme="aura"] {
297
+ color-scheme: light;
298
+ --overlay: rgb(18 20 58 / 30%);
299
+ --background: #e9ecf7;
300
+ --canvas: #e1e6f4;
301
+ --workspace-surface: #f2f4fc;
302
+ --foreground: #1d2045;
303
+ --workspace-title: #131340;
304
+ --card: #f7f8fd;
305
+ --card-foreground: var(--foreground);
306
+ --popover: #fafbff;
307
+ --popover-foreground: var(--foreground);
308
+ --primary: #2a2991;
309
+ --primary-deep: #1e1d6e;
310
+ --primary-foreground: #f8f9ff;
311
+ --secondary: #e7eaf7;
312
+ --secondary-foreground: var(--foreground);
313
+ --muted: #e7eaf7;
314
+ --muted-foreground: #484d72;
315
+ --accent: #dfe4fa;
316
+ --accent-foreground: var(--workspace-title);
317
+ --destructive: #a32a3c;
318
+ --destructive-foreground: #ffffff;
319
+ --workspace-error-surface: rgb(253 228 234 / 84%);
320
+ --workspace-success-surface: rgb(220 244 236 / 84%);
321
+ --workspace-warning-surface: rgb(250 239 214 / 86%);
322
+ --border: rgb(74 82 138 / 18%);
323
+ --workspace-chrome-divider: 1px solid rgb(255 255 255 / 66%);
324
+ --input: #5a608a;
325
+ --ring: var(--primary);
326
+ --sidebar: linear-gradient(180deg, rgb(255 255 255 / 32%) 0%, rgb(242 245 255 / 14%) 100%);
327
+ --sidebar-foreground: var(--foreground);
328
+ --sidebar-primary: var(--primary);
329
+ --sidebar-primary-foreground: var(--primary-foreground);
330
+ --sidebar-accent: rgb(255 255 255 / 56%);
331
+ --sidebar-accent-foreground: var(--workspace-title);
332
+ --sidebar-border: rgb(255 255 255 / 68%);
333
+ --category-teal: #166570;
334
+ --category-sky: #1b5e91;
335
+ --category-violet: #583b8a;
336
+ --category-indigo: #2a2991;
337
+ --category-event: #843668;
338
+ --state-success: #1b654c;
339
+ --state-warning: #7c5310;
340
+ --format-orange: #8c481c;
341
+ --format-amber: #7c5310;
342
+ --aura-specular-border: 1px solid rgb(255 255 255 / 88%);
343
+ --aura-specular-border-subtle: 1px solid rgb(255 255 255 / 70%);
344
+ --aura-specular-highlight: inset 0 1px 0 rgb(255 255 255 / 96%), inset 1px 0 0 rgb(255 255 255 / 50%);
345
+ --aura-glass-card-bg: linear-gradient(155deg, rgb(255 255 255 / 76%) 0%, rgb(244 246 253 / 60%) 100%);
346
+ --aura-glass-elevated-bg: linear-gradient(145deg, rgb(255 255 255 / 90%) 0%, rgb(245 247 254 / 76%) 100%);
347
+ --aura-glass-overlay-bg: linear-gradient(155deg, rgb(250 251 255 / 86%) 0%, rgb(239 243 252 / 76%) 100%);
348
+ --aura-noise-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.85'/%3E%3C/svg%3E");
349
+ --aura-mesh-gradient:
350
+ radial-gradient(ellipse 62% 54% at 8% 96%, rgb(104 202 214 / 72%) 0%, rgb(142 216 212 / 34%) 46%, transparent 76%),
351
+ radial-gradient(ellipse 50% 46% at 38% 100%, rgb(212 220 176 / 54%) 0%, rgb(198 220 194 / 24%) 48%, transparent 76%),
352
+ radial-gradient(ellipse 56% 58% at 95% 80%, rgb(196 162 232 / 68%) 0%, rgb(210 176 228 / 30%) 48%, transparent 78%),
353
+ radial-gradient(ellipse 64% 52% at 88% 12%, rgb(166 196 244 / 74%) 0%, rgb(186 208 246 / 36%) 48%, transparent 78%),
354
+ radial-gradient(ellipse 58% 50% at 14% 8%, rgb(156 166 242 / 74%) 0%, rgb(178 188 246 / 32%) 50%, transparent 76%),
355
+ linear-gradient(145deg, #d7def4 0%, #e7eaf7 50%, #dcebe9 100%);
356
+ --node-shadow:
357
+ inset 0 1px 0 rgb(255 255 255 / 95%),
358
+ inset 1px 0 0 rgb(255 255 255 / 48%),
359
+ 0 16px 38px -16px rgb(24 26 78 / 12%),
360
+ 0 4px 12px -2px rgb(24 26 78 / 5%);
361
+ --float-shadow:
362
+ inset 0 1px 0 rgb(255 255 255 / 96%),
363
+ 0 26px 60px -16px rgb(20 22 68 / 22%),
364
+ 0 8px 20px -4px rgb(20 22 68 / 9%);
365
+ --command-gradient: linear-gradient(135deg, #4147bd 0%, #2a2991 54%, #1d1c6b 100%);
366
+ --command-shadow: 0 10px 24px -6px rgb(42 41 145 / 34%), inset 0 1px 0 rgb(244 246 255 / 44%);
367
+ --command-hover-shadow: 0 14px 28px -6px rgb(30 29 110 / 42%), inset 0 1px 0 rgb(244 246 255 / 54%);
368
+ --surface-gradient: var(--aura-glass-card-bg);
369
+ --header-surface-gradient: linear-gradient(180deg, rgb(255 255 255 / 60%) 0%, rgb(242 245 253 / 40%) 100%);
370
+ --table-column-header-bg: rgb(236 240 251 / 66%);
371
+ --dark-canvas-gradient: var(--aura-mesh-gradient);
372
+ --workspace-card-surface: var(--aura-glass-card-bg);
373
+ --workspace-card-outline: linear-gradient(
374
+ 145deg,
375
+ rgb(255 255 255 / 96%) 0%,
376
+ rgb(255 255 255 / 74%) 52%,
377
+ rgb(236 241 255 / 86%) 100%
378
+ );
379
+ --workspace-card-outline-hover: linear-gradient(
380
+ 145deg,
381
+ #ffffff 0%,
382
+ rgb(246 248 255 / 88%) 48%,
383
+ rgb(112 122 218 / 72%) 100%
384
+ );
385
+ --font-sans: 'Plus Jakarta Sans', 'Source Sans 3', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
386
+ --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
387
+ --hero-reading-font: var(--font-sans);
388
+ --hero-small-text: 12px;
389
+ --hero-strong-weight: 500;
390
+ --hero-emphasis-weight: 600;
391
+ --hero-label-tracking: 0.08em;
392
+ --radius: 0.9375rem;
393
+ --radius-sm: 9px;
394
+ --radius-md: 12px;
395
+ --radius-lg: 16px;
396
+ --radius-xl: 20px;
397
+ --radius-2xl: 26px;
398
+ }
399
+
400
+ /* Azul Cosmos — structured enterprise daylight palette. */
401
+ :root[data-theme="azul-cosmos"] {
402
+ color-scheme: light;
403
+ --overlay: rgb(0 22 66 / 28%);
404
+ --background: #f3f3f3;
405
+ --foreground: #181818;
406
+ --workspace-title: #001642;
407
+ --card: #ffffff;
408
+ --card-foreground: var(--foreground);
409
+ --popover: var(--card);
410
+ --popover-foreground: var(--foreground);
411
+ --primary: #0250d9;
412
+ --primary-deep: #022ac0;
413
+ --primary-foreground: #ffffff;
414
+ --secondary: var(--background);
415
+ --secondary-foreground: var(--foreground);
416
+ --muted: var(--background);
417
+ --muted-foreground: #5c5c5c;
418
+ --accent: #edf4ff;
419
+ --accent-foreground: var(--primary);
420
+ --destructive: #b60554;
421
+ --destructive-foreground: #ffffff;
422
+ --workspace-error-surface: #fddde3;
423
+ --workspace-success-surface: #acf3e4;
424
+ --workspace-warning-surface: #f9e3b6;
425
+ --border: #c9c9c9;
426
+ --workspace-chrome-divider: 1px solid var(--border);
427
+ --input: #757575;
428
+ --ring: #{$cosmos-action};
429
+ --canvas: var(--background);
430
+ --workspace-surface: var(--card);
431
+ --category-teal: var(--ready);
432
+ --category-sky: #0b5cab;
433
+ --category-violet: #5a1ba9;
434
+ --category-indigo: var(--primary);
435
+ --category-event: var(--destructive);
436
+ --state-success: #056764;
437
+ --state-warning: #8c4b02;
438
+ --format-orange: var(--warning);
439
+ --format-amber: var(--warning);
440
+ --node-shadow: none;
441
+ --float-shadow: 0 8px 24px rgb(0 22 66 / 13%);
442
+ --command-gradient: #{$cosmos-action};
443
+ --command-hover-background: var(--primary);
444
+ --command-shadow: none;
445
+ --command-hover-shadow: none;
446
+ --command-hover-filter: none;
447
+ --command-hover-transform: none;
448
+ --surface-gradient: var(--card);
449
+ --table-column-header-bg: var(--background);
450
+ --font-sans: system-ui, 'Segoe UI', sans-serif;
451
+ --hero-reading-font: var(--font-sans);
452
+ --hero-small-text: 12px;
453
+ --hero-strong-weight: 600;
454
+ --hero-emphasis-weight: 600;
455
+ --hero-label-tracking: normal;
456
+ --radius: 8px;
457
+ --radius-sm: 4px;
458
+ --radius-lg: 12px;
459
+ --radius-xl: 12px;
460
+ --radius-2xl: 20px;
461
+ }
462
+
463
+ /* Insígnia — navy sidebar & warm parchment enterprise palette. */
464
+ :root[data-theme="insignia"] {
465
+ color-scheme: light;
466
+ --overlay: rgb(13 27 42 / 35%);
467
+ --background: #f9f7f1;
468
+ --foreground: #0d1b2a;
469
+ --card: #f9f7f1;
470
+ --card-foreground: var(--foreground);
471
+ --popover: #f9f7f1;
472
+ --popover-foreground: var(--foreground);
473
+ --primary: #0d1b2a;
474
+ --primary-deep: #415a77;
475
+ --primary-foreground: #f9f7f1;
476
+ --secondary: #e6dcc6;
477
+ --secondary-foreground: var(--foreground);
478
+ --muted: #e6dcc6;
479
+ --muted-foreground: #415a77;
480
+ --accent: #e6dcc6;
481
+ --accent-foreground: var(--foreground);
482
+ --destructive: #a33335;
483
+ --destructive-foreground: #ffffff;
484
+ --border: #d2cbbd;
485
+ --input: #415a77;
486
+ --ring: #415a77;
487
+ --canvas: #f9f7f1;
488
+ --workspace-surface: #f9f7f1;
489
+ --sidebar: #0d1b2a;
490
+ --sidebar-foreground: #f9f7f1;
491
+ --sidebar-primary: #e6dcc6;
492
+ --sidebar-primary-foreground: #0d1b2a;
493
+ --sidebar-accent: #b8860b;
494
+ --sidebar-accent-foreground: #0d1b2a;
495
+ --sidebar-border: #415a77;
496
+ --category-teal: #3f634a;
497
+ --category-sky: #415a77;
498
+ --category-violet: #6b527b;
499
+ --category-indigo: #415a77;
500
+ --category-event: #954363;
501
+ --state-success: #3f634a;
502
+ --state-warning: #78520d;
503
+ --format-orange: #8a4b14;
504
+ --format-amber: #78520d;
505
+ --node-shadow: 0 3px 12px rgb(13 27 42 / 4%);
506
+ --float-shadow: 0 10px 28px rgb(13 27 42 / 14%);
507
+ --command-gradient: linear-gradient(#415a77, #415a77);
508
+ --hero-command-foreground: #f9f7f1;
509
+ --surface-gradient: linear-gradient(var(--card), var(--card));
510
+ --header-surface-gradient: linear-gradient(var(--card), var(--card));
511
+ --table-column-header-bg: var(--muted);
512
+ --font-sans: 'Source Sans 3', 'IBM Plex Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
513
+ --font-display: 'Source Sans 3', 'IBM Plex Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
514
+ --hero-reading-font: var(--font-sans);
515
+ --hero-small-text: 12px;
516
+ --hero-strong-weight: 600;
517
+ --radius-lg: 12px;
518
+ --radius-xl: 14px;
519
+ }
@@ -3055,20 +3055,24 @@ interface PraxisAnalyticalDrawerSchema {
3055
3055
  /**
3056
3056
  * Papel semântico de uma etapa dentro de uma trilha de memória de cálculo.
3057
3057
  */
3058
- type PraxisAnalyticalDrawerCalculationStepRole = 'base' | 'factor' | 'cap' | 'target' | 'deduction' | 'addition' | 'result' | 'custom';
3058
+ type PraxisAnalyticalDrawerCalculationStepRole = 'base' | 'factor' | 'cap' | 'target' | 'deduction' | 'addition' | 'subtotal' | 'result' | 'custom';
3059
3059
  /**
3060
3060
  * Etapa individual na sequência algorítmica de memória de cálculo
3061
3061
  * (`Base -> Fator/Alíquota -> Trava/Teto -> Resultado`).
3062
3062
  */
3063
3063
  interface PraxisAnalyticalDrawerCalculationStep {
3064
- /** Papel semântico da etapa (ex.: 'base', 'factor', 'cap', 'result'). */
3064
+ /** Papel semântico da etapa (ex.: 'base', 'factor', 'cap', 'subtotal', 'result'). */
3065
3065
  role?: PraxisAnalyticalDrawerCalculationStepRole;
3066
+ /** Discriminador canônico de etapa emitido por `@CalculationStep` (`x-ui.calculationMemory`). */
3067
+ kind?: PraxisAnalyticalDrawerCalculationStepRole;
3066
3068
  /** Rótulo exibido na etapa (ex.: 'Base de Cálculo', 'Fator / Alíquota', 'Trava / Teto', 'Resultado'). */
3067
3069
  label: string;
3068
3070
  /** Valor estático opcional quando não derivado por expressão. */
3069
3071
  value?: unknown;
3070
3072
  /** Expressão avaliada contra `{ row, relations, env }` via `SafeExpressionEvaluator`. */
3071
3073
  valueExpr?: string;
3074
+ /** Alias direto de expressão emitido por `@CalculationStep`. */
3075
+ expr?: string;
3072
3076
  /** Operador matemático ou lógico exibido antes da etapa (ex.: '×', '÷', '+', '-', '≤', '='). */
3073
3077
  operator?: string;
3074
3078
  /** Formato de apresentação ('currency:BRL', 'percent', 'number', 'integer', 'text'). */
@@ -3077,6 +3081,8 @@ interface PraxisAnalyticalDrawerCalculationStep {
3077
3081
  hint?: string;
3078
3082
  /** Expressão opcional para nota/fórmula curta auxiliar. */
3079
3083
  hintExpr?: string;
3084
+ /** Referência normativa específica da etapa (`@CalculationStep.legalBasis`). */
3085
+ legalBasis?: string;
3080
3086
  /** Ícone Material opcional da etapa. */
3081
3087
  icon?: string;
3082
3088
  /** Tom visual da etapa (ex.: 'neutral', 'info', 'warning', 'success', 'danger', 'primary'). */
@@ -4310,6 +4316,8 @@ interface FieldOption {
4310
4316
  icon?: string;
4311
4317
  /** Tooltip text for option */
4312
4318
  tooltip?: string;
4319
+ /** Optional semantic visual tone mapped by UI consumers. */
4320
+ tone?: string;
4313
4321
  /**
4314
4322
  * Secondary business/domain description rendered on a dedicated line in rich selectors.
4315
4323
  * Do not concatenate `code` or `badge` here when those properties are populated separately.
@@ -4501,6 +4509,24 @@ interface FieldMetadata extends ComponentMetadata {
4501
4509
  fieldAccess?: FieldAccessMetadata;
4502
4510
  /** Field is hidden from display */
4503
4511
  hidden?: boolean;
4512
+ /** Hidden specifically in collection table columns (`x-ui.tableHidden`). */
4513
+ tableHidden?: boolean;
4514
+ /** Hidden specifically inside generated forms (`x-ui.formHidden`). */
4515
+ formHidden?: boolean;
4516
+ /** Explicit column sort order inside collection tables (`x-ui.tableOrder`). */
4517
+ tableOrder?: number;
4518
+ /** Explicit sticky side inside collection tables (`x-ui.pinned`). */
4519
+ pinned?: 'start' | 'end';
4520
+ /** Marks field as primary quick-search filter target (`x-ui.primarySearch`). */
4521
+ primarySearch?: boolean;
4522
+ /** Explicit 12-column responsive grid span (`x-ui.colSpan`, `1..12`). */
4523
+ colSpan?: number;
4524
+ /** Active workspace context binding contract (`x-ui.contextBinding`). */
4525
+ contextBinding?: PraxisContextBindingContract;
4526
+ /** Indicates field value must clear when cloning a draft (`x-ui.draftCleared`). */
4527
+ draftCleared?: boolean;
4528
+ /** Resource-state mutability rules (`x-ui.resourceState`). */
4529
+ resourceState?: PraxisResourceStateContract;
4504
4530
  /** Canonical conditional visibility guard for metadata-driven forms. */
4505
4531
  hiddenCondition?: JsonLogicExpression | null;
4506
4532
  /** Default value when form initializes */
@@ -4578,6 +4604,10 @@ interface FieldMetadata extends ComponentMetadata {
4578
4604
  * heuristics.
4579
4605
  */
4580
4606
  valuePresentation?: ValuePresentationConfig;
4607
+ /** Micro-visualization metadata published via `x-ui.microVisualization`. */
4608
+ microVisualization?: PraxisPresentationVisualizationConfig;
4609
+ /** Numeric format directive (`auto`, `integer`, `decimal`, `currency`, `percent`). */
4610
+ numericFormat?: 'auto' | 'integer' | 'decimal' | 'currency' | 'percent' | string;
4581
4611
  /**
4582
4612
  * Semantic presentation metadata for read-only/display surfaces.
4583
4613
  *
@@ -4613,6 +4643,8 @@ interface FieldMetadata extends ComponentMetadata {
4613
4643
  conditionalRequired?: JsonLogicExpression | null;
4614
4644
  /** Canonical conditional visibility guard for metadata-driven forms. */
4615
4645
  conditionalDisplay?: JsonLogicExpression | null;
4646
+ /** Conditional read-only guard (`x-ui.conditionalReadOnly`). */
4647
+ conditionalReadOnly?: JsonLogicExpression | string | null;
4616
4648
  /** Reset value when dependency changes */
4617
4649
  resetOnDependentChange?: boolean;
4618
4650
  /** Enable native field-to-field dependency cascade inside the same form */
@@ -4645,10 +4677,6 @@ interface FieldMetadata extends ComponentMetadata {
4645
4677
  textTransformApply?: 'displayOnly' | 'saveOnly' | 'both';
4646
4678
  /** Contexts where field should be visible */
4647
4679
  visibleIn?: Array<'form' | 'filter' | 'table' | 'dialog'>;
4648
- /** Hide in specific form contexts */
4649
- formHidden?: boolean;
4650
- /** Hide in table contexts */
4651
- tableHidden?: boolean;
4652
4680
  /** Hide in filter contexts */
4653
4681
  filterHidden?: boolean;
4654
4682
  /** ARIA label for screen readers */
@@ -4667,6 +4695,16 @@ interface FieldAccessMetadata {
4667
4695
  reason?: string;
4668
4696
  }
4669
4697
 
4698
+ type PraxisContextBindingDimension = 'organization' | 'company_group' | 'unit' | 'person' | 'bond' | 'contract';
4699
+ interface PraxisContextBindingContract {
4700
+ dimension: PraxisContextBindingDimension;
4701
+ lockWhenActive: boolean;
4702
+ targetField?: string;
4703
+ }
4704
+ interface PraxisResourceStateContract {
4705
+ initialStates?: string[];
4706
+ putMutableStates?: string[];
4707
+ }
4670
4708
  /**
4671
4709
  * Contrato de saída do normalizador de esquema (SchemaNormalizerService):
4672
4710
  * - Converte metadados `x-ui` em FieldDefinition tipado.
@@ -4714,11 +4752,24 @@ interface FieldDefinition {
4714
4752
  sortable?: boolean;
4715
4753
  /** Json Logic canônico que define obrigatoriedade condicional. */
4716
4754
  conditionalRequired?: JsonLogicExpression | null;
4755
+ /** Expressão condicional de somente leitura publicada em `x-ui.conditionalReadOnly`. */
4756
+ conditionalReadOnly?: JsonLogicExpression | string | null;
4757
+ /** Span explícito em grid de 12 colunas (`1..12`). */
4758
+ colSpan?: number;
4759
+ /** Vínculo com contexto ativo de workspace (`x-ui.contextBinding`). */
4760
+ contextBinding?: PraxisContextBindingContract;
4761
+ /** Indica limpeza do campo ao clonar rascunho (`x-ui.draftCleared`). */
4762
+ draftCleared?: boolean;
4763
+ /** Regras declarativas de mutabilidade por estado (`x-ui.resourceState`). */
4764
+ resourceState?: PraxisResourceStateContract;
4717
4765
  viewOnlyStyle?: string;
4718
4766
  /** Lista de gatilhos de validação, ex.: ["blur", "change"]. */
4719
4767
  validationTriggers?: string[];
4720
4768
  hidden?: boolean;
4721
4769
  tableHidden?: boolean;
4770
+ tableOrder?: number;
4771
+ pinned?: 'start' | 'end';
4772
+ primarySearch?: boolean;
4722
4773
  formHidden?: boolean;
4723
4774
  filterable?: boolean;
4724
4775
  /** Json Logic canônico que controla se o campo é exibido. */
@@ -4752,6 +4803,10 @@ interface FieldDefinition {
4752
4803
  key: string;
4753
4804
  value: string;
4754
4805
  label?: string;
4806
+ icon?: string;
4807
+ tone?: string;
4808
+ description?: string;
4809
+ disabled?: boolean;
4755
4810
  [key: string]: any;
4756
4811
  }[];
4757
4812
  filter?: any;
@@ -4762,8 +4817,10 @@ interface FieldDefinition {
4762
4817
  optionLabelKey?: string;
4763
4818
  optionValueKey?: string;
4764
4819
  filterOptions?: any[];
4765
- numericFormat?: string;
4820
+ numericFormat?: 'auto' | 'integer' | 'decimal' | 'currency' | 'percent' | string;
4766
4821
  valuePresentation?: ValuePresentationConfig;
4822
+ /** Micro-visualização declarada em `x-ui.microVisualization`. */
4823
+ microVisualization?: PraxisPresentationVisualizationConfig;
4767
4824
  /** Semantic read-only/list presentation metadata from canonical x-ui.presentation. */
4768
4825
  presentation?: FieldPresentationConfig;
4769
4826
  /** Conditional presentation overrides for read-only/list consumers. */