@praxisui/core 10.0.0-rc.7 → 10.0.0-rc.70

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.
@@ -27,6 +27,12 @@
27
27
  $on-tertiary: _get-token($config, 'on-tertiary', var(--tertiary-foreground, #ffffff));
28
28
  $error: _get-token($config, 'error', var(--destructive, var(--error, #ba1a1a)));
29
29
  $on-error: _get-token($config, 'on-error', var(--destructive-foreground, var(--on-error, #ffffff)));
30
+ $info: _get-token($config, 'info', var(--info, var(--category-sky, #0369a1)));
31
+ $on-info: _get-token($config, 'on-info', var(--info-foreground, #ffffff));
32
+ $warning: _get-token($config, 'warning', var(--warning, #92400e));
33
+ $on-warning: _get-token($config, 'on-warning', var(--warning-foreground, #ffffff));
34
+ $success: _get-token($config, 'success', var(--ready, var(--success, #166534)));
35
+ $on-success: _get-token($config, 'on-success', var(--success-foreground, #ffffff));
30
36
 
31
37
  $surface: _get-token($config, 'surface', var(--card, var(--surface, #fbfcfc)));
32
38
  $background: _get-token($config, 'background', var(--background, #f2f6f5));
@@ -50,6 +56,15 @@
50
56
  $error-container: _get-token($config, 'error-container', color-mix(in oklab, #{$error} 18%, #{$surface}));
51
57
  $on-error-container: _get-token($config, 'on-error-container', #{$error});
52
58
 
59
+ $info-container: _get-token($config, 'info-container', color-mix(in oklab, #{$info} 14%, #{$surface}));
60
+ $on-info-container: _get-token($config, 'on-info-container', var(--info-container-foreground, #075985));
61
+
62
+ $warning-container: _get-token($config, 'warning-container', color-mix(in oklab, #{$warning} 14%, #{$surface}));
63
+ $on-warning-container: _get-token($config, 'on-warning-container', var(--warning-container-foreground, #78350f));
64
+
65
+ $success-container: _get-token($config, 'success-container', color-mix(in oklab, #{$success} 14%, #{$surface}));
66
+ $on-success-container: _get-token($config, 'on-success-container', var(--success-container-foreground, #14532d));
67
+
53
68
  $surface-lowest: _get-token($config, 'surface-container-lowest', #{$surface});
54
69
  $surface-low: _get-token($config, 'surface-container-low', color-mix(in oklab, #{$surface} 95%, #{$background}));
55
70
  $surface-container: _get-token($config, 'surface-container', color-mix(in oklab, #{$surface} 90%, #{$background}));
@@ -172,7 +187,6 @@
172
187
  --pdx-overlay-state-layer: color-mix(in oklab, #{$primary} 10%, transparent);
173
188
 
174
189
  // 3. Dynamic Widget Page & Widget Shell Tokens (--pdx-page-*, --pdx-shell-*)
175
- --pdx-page-bg: transparent;
176
190
  --pdx-page-surface: #{$surface};
177
191
  --pdx-page-gap: 20px;
178
192
  --pdx-page-card-radius: #{$radius-lg};
@@ -197,12 +211,60 @@
197
211
  --prx-rich-card-tone-bg: color-mix(in oklab, #{$surface} 80%, transparent);
198
212
  --prx-rich-content-inline-gap: 8px;
199
213
 
200
- // 5. Legacy Praxis Component Bridge Tokens
214
+ // 5. Legacy Praxis Component Bridge Tokens & Canonical Status / Layer Scale
201
215
  --praxis-color-primary: #{$primary};
202
216
  --praxis-color-surface: #{$surface};
203
217
  --praxis-color-text: #{$foreground};
204
218
  --praxis-color-border: #{$border};
205
219
  --pdx-shell-fullscreen-bg: #{$surface};
220
+
221
+ --praxis-info: #{$info};
222
+ --praxis-on-info: #{$on-info};
223
+ --praxis-info-container: #{$info-container};
224
+ --praxis-on-info-container: #{$on-info-container};
225
+ --praxis-warning: #{$warning};
226
+ --praxis-on-warning: #{$on-warning};
227
+ --praxis-warning-container: #{$warning-container};
228
+ --praxis-on-warning-container: #{$on-warning-container};
229
+ --praxis-success: #{$success};
230
+ --praxis-on-success: #{$on-success};
231
+ --praxis-success-container: #{$success-container};
232
+ --praxis-on-success-container: #{$on-success-container};
233
+ --praxis-error: #{$error};
234
+ --praxis-on-error: #{$on-error};
235
+ --praxis-error-container: #{$error-container};
236
+
237
+ --praxis-z-base: 0;
238
+ --praxis-z-sticky: var(--praxis-layer-sticky-local, 100);
239
+ --praxis-z-floating: var(--praxis-layer-floating-local, 200);
240
+ --praxis-z-dropdown: 1100;
241
+ --praxis-z-backdrop: var(--praxis-layer-cdk-overlay-backdrop, 1200);
242
+ --praxis-z-drawer: 1215;
243
+ --praxis-z-settings-panel: var(--praxis-layer-settings-panel, 1220);
244
+ --praxis-z-widget-shell: var(--praxis-layer-widget-shell-backdrop, 1280);
245
+ --praxis-z-dialog: var(--praxis-layer-dialog, 1300);
246
+ --praxis-z-command-palette: 1350;
247
+ --praxis-z-popover: var(--praxis-layer-popup, 1400);
248
+ --praxis-z-tooltip: 1500;
249
+ --praxis-z-toast: 1600;
250
+ --praxis-z-loading: var(--praxis-layer-loading-blocking, 2000);
251
+
252
+ // 6. Praxis Active Loading & AI Thinking Text Shimmer Tokens
253
+ --pdx-text-shimmer-duration: 2.6s;
254
+ --pdx-text-shimmer-base: color-mix(in oklab, #{$muted-foreground} 82%, #{$foreground} 18%);
255
+ --pdx-text-shimmer-cool: color-mix(in oklab, #{$tertiary} 74%, #7c3aed 26%);
256
+ --pdx-text-shimmer-peak: color-mix(in oklab, #{$foreground} 90%, #{$primary} 10%);
257
+ --pdx-text-shimmer-warm: color-mix(in oklab, #{$primary} 74%, #db2777 26%);
258
+ --pdx-text-shimmer-gradient: linear-gradient(
259
+ 105deg,
260
+ var(--pdx-text-shimmer-base) 0%,
261
+ var(--pdx-text-shimmer-base) 26%,
262
+ var(--pdx-text-shimmer-cool) 40%,
263
+ var(--pdx-text-shimmer-peak) 50%,
264
+ var(--pdx-text-shimmer-warm) 60%,
265
+ var(--pdx-text-shimmer-base) 74%,
266
+ var(--pdx-text-shimmer-base) 100%
267
+ );
206
268
  }
207
269
 
208
270
  /// Emits canonical dark theme token overrides.
@@ -219,6 +281,12 @@
219
281
  $on-tertiary: _get-token($config, 'on-tertiary', var(--tertiary-foreground, #1a314b));
220
282
  $error: _get-token($config, 'error', var(--destructive, var(--error, #ffb4ab)));
221
283
  $on-error: _get-token($config, 'on-error', var(--destructive-foreground, var(--on-error, #690005)));
284
+ $info: _get-token($config, 'info', var(--info, var(--category-sky, #38bdf8)));
285
+ $on-info: _get-token($config, 'on-info', var(--info-foreground, #082f49));
286
+ $warning: _get-token($config, 'warning', var(--warning, #fbbf24));
287
+ $on-warning: _get-token($config, 'on-warning', var(--warning-foreground, #451a03));
288
+ $success: _get-token($config, 'success', var(--ready, var(--success, #4ade80)));
289
+ $on-success: _get-token($config, 'on-success', var(--success-foreground, #052e16));
222
290
 
223
291
  $surface: _get-token($config, 'surface', var(--card, var(--surface, #1e2222)));
224
292
  $foreground: _get-token($config, 'foreground', var(--foreground, #e0e3e2));
@@ -241,6 +309,15 @@
241
309
  $error-container: _get-token($config, 'error-container', color-mix(in oklab, #{$error} 25%, #{$surface}));
242
310
  $on-error-container: _get-token($config, 'on-error-container', #{$on-error});
243
311
 
312
+ $info-container: _get-token($config, 'info-container', color-mix(in oklab, #{$info} 20%, #{$surface}));
313
+ $on-info-container: _get-token($config, 'on-info-container', var(--info-container-foreground, #e0f2fe));
314
+
315
+ $warning-container: _get-token($config, 'warning-container', color-mix(in oklab, #{$warning} 20%, #{$surface}));
316
+ $on-warning-container: _get-token($config, 'on-warning-container', var(--warning-container-foreground, #fef3c7));
317
+
318
+ $success-container: _get-token($config, 'success-container', color-mix(in oklab, #{$success} 20%, #{$surface}));
319
+ $on-success-container: _get-token($config, 'on-success-container', var(--success-container-foreground, #dcfce7));
320
+
244
321
  $surface-lowest: _get-token($config, 'surface-container-lowest', oklch(0.12 0.025 264));
245
322
  $surface-low: _get-token($config, 'surface-container-low', oklch(0.15 0.03 260));
246
323
  $surface-container: _get-token($config, 'surface-container', #{$surface});
@@ -336,7 +413,6 @@
336
413
  --pdx-overlay-state-layer: color-mix(in oklab, #{$primary} 15%, transparent);
337
414
 
338
415
  // 3. Dark Mode: Dynamic Widget Page & Widget Shell Tokens
339
- --pdx-page-bg: transparent;
340
416
  --pdx-page-surface: #{$surface};
341
417
  --pdx-page-accent: #{$primary};
342
418
 
@@ -354,172 +430,371 @@
354
430
  // 4. Dark Mode: Rich Content Tokens
355
431
  --prx-rich-card-tone-bg: color-mix(in oklab, #{$surface} 65%, transparent);
356
432
 
357
- // 5. Dark Mode: Legacy Praxis Component Bridge Tokens
433
+ // 5. Dark Mode: Legacy Praxis Component Bridge Tokens & Canonical Status Tokens
358
434
  --praxis-color-primary: #{$primary};
359
435
  --praxis-color-surface: #{$surface};
360
436
  --praxis-color-text: #{$foreground};
361
437
  --praxis-color-border: #{$border};
362
438
  --pdx-shell-fullscreen-bg: #{$surface};
439
+
440
+ --praxis-info: #{$info};
441
+ --praxis-on-info: #{$on-info};
442
+ --praxis-info-container: #{$info-container};
443
+ --praxis-on-info-container: #{$on-info-container};
444
+ --praxis-warning: #{$warning};
445
+ --praxis-on-warning: #{$on-warning};
446
+ --praxis-warning-container: #{$warning-container};
447
+ --praxis-on-warning-container: #{$on-warning-container};
448
+ --praxis-success: #{$success};
449
+ --praxis-on-success: #{$on-success};
450
+ --praxis-success-container: #{$success-container};
451
+ --praxis-on-success-container: #{$on-success-container};
452
+ --praxis-error: #{$error};
453
+ --praxis-on-error: #{$on-error};
454
+ --praxis-error-container: #{$error-container};
455
+
456
+ // 6. Dark Mode: Praxis Active Loading & AI Thinking Text Shimmer Tokens
457
+ --pdx-text-shimmer-duration: 2.6s;
458
+ --pdx-text-shimmer-base: color-mix(in oklab, #{$muted-foreground} 80%, #{$foreground} 20%);
459
+ --pdx-text-shimmer-cool: color-mix(in oklab, #{$tertiary} 64%, #c084fc 36%);
460
+ --pdx-text-shimmer-peak: #ffffff;
461
+ --pdx-text-shimmer-warm: color-mix(in oklab, #{$primary} 68%, #f472b6 32%);
462
+ --pdx-text-shimmer-gradient: linear-gradient(
463
+ 105deg,
464
+ var(--pdx-text-shimmer-base) 0%,
465
+ var(--pdx-text-shimmer-base) 26%,
466
+ var(--pdx-text-shimmer-cool) 40%,
467
+ var(--pdx-text-shimmer-peak) 50%,
468
+ var(--pdx-text-shimmer-warm) 60%,
469
+ var(--pdx-text-shimmer-base) 74%,
470
+ var(--pdx-text-shimmer-base) 100%
471
+ );
363
472
  }
364
473
 
365
474
  /// Emits responsive and solid surface styling for Widget Shell expanded and fullscreen modes.
366
475
  @mixin praxis-shell-styles() {
367
- .pdx-shell-backdrop {
368
- position: fixed !important;
369
- inset: 0 !important;
370
- z-index: 1280 !important;
371
- background: color-mix(in oklab, var(--overlay, rgba(0, 0, 0, 0.6)) 85%, black) !important;
372
- backdrop-filter: blur(14px) saturate(130%) !important;
373
- -webkit-backdrop-filter: blur(14px) saturate(130%) !important;
476
+ :root body .pdx-shell-backdrop.pdx-shell-backdrop {
477
+ position: fixed;
478
+ inset: 0;
479
+ z-index: var(--praxis-z-widget-shell, var(--praxis-layer-widget-shell-backdrop, 1280));
480
+ background: color-mix(in oklab, var(--overlay, rgba(0, 0, 0, 0.6)) 85%, black);
481
+ backdrop-filter: blur(14px) saturate(130%);
482
+ -webkit-backdrop-filter: blur(14px) saturate(130%);
483
+ contain: layout style;
484
+ isolation: isolate;
374
485
  }
375
486
 
376
- .pdx-shell.fullscreen,
377
- .pdx-shell.expanded {
378
- background: var(--pdx-shell-fullscreen-bg, var(--card, #ffffff)) !important;
379
- color: var(--pdx-shell-body-color, var(--foreground, inherit)) !important;
380
- border: 1px solid var(--pdx-shell-card-border, var(--border, rgba(0, 0, 0, 0.12))) !important;
381
- box-shadow: var(--shadow-command, var(--md-sys-elevation-level3, 0 4px 12px rgba(0, 0, 0, 0.18))) !important;
487
+ :root body .pdx-shell.pdx-shell.dashboard:not(.expanded):not(.fullscreen),
488
+ :root body .pdx-shell.pdx-shell--backdrop:not(.expanded):not(.fullscreen) {
489
+ contain: layout paint style;
490
+ isolation: isolate;
382
491
  }
383
492
 
384
- .pdx-shell.fullscreen {
385
- inset: 24px !important;
386
- width: auto !important;
387
- height: auto !important;
388
- border-radius: var(--radius-xl, 20px) !important;
389
- overflow: hidden !important;
493
+ :root body .pdx-shell.pdx-shell.fullscreen,
494
+ :root body .pdx-shell.pdx-shell.expanded {
495
+ background: var(--pdx-shell-fullscreen-bg, var(--card, #ffffff));
496
+ color: var(--pdx-shell-body-color, var(--foreground, inherit));
497
+ border: 1px solid var(--pdx-shell-card-border, var(--border, rgba(0, 0, 0, 0.12)));
498
+ box-shadow: var(--shadow-command, var(--md-sys-elevation-level3, 0 4px 12px rgba(0, 0, 0, 0.18)));
499
+ }
500
+
501
+ :root body .pdx-shell.pdx-shell.fullscreen {
502
+ inset: 24px;
503
+ width: auto;
504
+ height: auto;
505
+ border-radius: var(--radius-xl, 20px);
506
+ overflow: hidden;
390
507
  }
391
508
 
392
509
  @media (max-width: 768px), (max-height: 800px) {
393
- .pdx-shell.fullscreen {
394
- inset: 12px !important;
395
- border-radius: var(--radius-lg, 14px) !important;
510
+ :root body .pdx-shell.pdx-shell.fullscreen {
511
+ inset: 12px;
512
+ border-radius: var(--radius-lg, 14px);
396
513
  }
397
514
  }
398
515
 
399
- .pdx-shell.fullscreen > .pdx-shell-header,
400
- .pdx-shell.expanded > .pdx-shell-header {
401
- padding: 16px 24px !important;
402
- background: color-mix(in oklab, var(--pdx-shell-fullscreen-bg, var(--card, #ffffff)) 95%, var(--background, #f2f6f5)) !important;
403
- border-bottom: 1px solid var(--pdx-shell-card-border, var(--border, rgba(0, 0, 0, 0.12))) !important;
516
+ :root body .pdx-shell.pdx-shell.fullscreen > .pdx-shell-header.pdx-shell-header,
517
+ :root body .pdx-shell.pdx-shell.expanded > .pdx-shell-header.pdx-shell-header {
518
+ padding: 16px 24px;
519
+ background: var(--pdx-shell-fullscreen-header-bg, color-mix(in oklab, var(--pdx-shell-fullscreen-bg, var(--card, #ffffff)) 95%, var(--background, #f2f6f5)));
520
+ border-bottom: 1px solid var(--pdx-shell-header-border, var(--pdx-shell-card-border, var(--border, rgba(0, 0, 0, 0.12))));
404
521
 
405
- .pdx-shell-title-text {
406
- font-family: var(--font-display, inherit) !important;
407
- font-size: 1.15rem !important;
408
- font-weight: 700 !important;
522
+ .pdx-shell-title-text.pdx-shell-title-text {
523
+ font-family: var(--font-display, inherit);
524
+ font-size: 1.15rem;
525
+ font-weight: var(--pdx-shell-title-weight, var(--mat-sys-title-medium-weight, 500));
409
526
  }
410
527
 
411
- .pdx-shell-subtitle {
412
- font-size: 0.85rem !important;
413
- color: var(--pdx-shell-subtitle-color, var(--muted-foreground, #666666)) !important;
528
+ .pdx-shell-subtitle.pdx-shell-subtitle {
529
+ font-size: 0.85rem;
530
+ color: var(--pdx-shell-subtitle-color, var(--muted-foreground, #666666));
414
531
  }
415
532
  }
416
533
 
417
534
  @media (max-height: 800px) {
418
- .pdx-shell.fullscreen > .pdx-shell-header,
419
- .pdx-shell.expanded > .pdx-shell-header {
420
- padding: 10px 18px !important;
535
+ :root body .pdx-shell.pdx-shell.fullscreen > .pdx-shell-header.pdx-shell-header,
536
+ :root body .pdx-shell.pdx-shell.expanded > .pdx-shell-header.pdx-shell-header {
537
+ padding: 10px 18px;
421
538
  }
422
539
  }
423
540
 
424
- .pdx-shell.fullscreen > .pdx-shell-body,
425
- .pdx-shell.expanded > .pdx-shell-body {
426
- padding: 24px 32px !important;
427
- background: var(--pdx-shell-fullscreen-bg, var(--card, #ffffff)) !important;
541
+ :root body .pdx-shell.pdx-shell.fullscreen > .pdx-shell-body.pdx-shell-body,
542
+ :root body .pdx-shell.pdx-shell.expanded > .pdx-shell-body.pdx-shell-body {
543
+ padding: 24px 32px;
544
+ background: var(--pdx-shell-fullscreen-bg, var(--card, #ffffff));
428
545
  }
429
546
 
430
547
  @media (max-height: 800px) {
431
- .pdx-shell.fullscreen > .pdx-shell-body,
432
- .pdx-shell.expanded > .pdx-shell-body {
433
- padding: 14px 20px !important;
548
+ :root body .pdx-shell.pdx-shell.fullscreen > .pdx-shell-body.pdx-shell-body,
549
+ :root body .pdx-shell.pdx-shell.expanded > .pdx-shell-body.pdx-shell-body {
550
+ padding: 14px 20px;
551
+ }
552
+ }
553
+
554
+ :root body .pdx-shell.pdx-shell.fullscreen praxis-chart,
555
+ :root body .pdx-shell.pdx-shell.expanded praxis-chart {
556
+ width: 100%;
557
+ height: 100%;
558
+ display: block;
559
+ }
560
+
561
+ @media (prefers-reduced-transparency: reduce) {
562
+ :root body .pdx-shell-backdrop.pdx-shell-backdrop {
563
+ backdrop-filter: none;
564
+ -webkit-backdrop-filter: none;
565
+ }
566
+
567
+ :root body .pdx-shell.pdx-shell.dashboard,
568
+ :root body .pdx-shell.pdx-shell--backdrop {
569
+ backdrop-filter: none;
570
+ -webkit-backdrop-filter: none;
571
+ background: var(--pdx-shell-card-fallback-bg, var(--md-sys-color-surface, var(--card, #fbfcfc)));
434
572
  }
435
573
  }
436
574
 
437
- .pdx-shell.fullscreen praxis-chart,
438
- .pdx-shell.expanded praxis-chart {
439
- width: 100% !important;
440
- height: 100% !important;
441
- display: block !important;
575
+ @media (forced-colors: active) {
576
+ :root body .pdx-shell-backdrop.pdx-shell-backdrop {
577
+ backdrop-filter: none;
578
+ -webkit-backdrop-filter: none;
579
+ background: Canvas;
580
+ opacity: 0.75;
581
+ }
582
+
583
+ :root body .pdx-shell.pdx-shell.dashboard,
584
+ :root body .pdx-shell.pdx-shell.fullscreen,
585
+ :root body .pdx-shell.pdx-shell.expanded {
586
+ background: Canvas;
587
+ color: CanvasText;
588
+ border: 1px solid ButtonBorder;
589
+ box-shadow: none;
590
+ backdrop-filter: none;
591
+ -webkit-backdrop-filter: none;
592
+ }
442
593
  }
443
594
  }
444
595
 
445
596
  /// Emits solid surface and high-contrast refinements for Angular Material Tooltips.
446
597
  @mixin praxis-tooltip-styles() {
447
- .mat-mdc-tooltip-surface {
448
- background-color: var(--mat-tooltip-container-color, var(--mat-sys-inverse-surface, oklch(0.24 0.03 260))) !important;
449
- color: var(--mat-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface, oklch(0.98 0.005 240))) !important;
450
- border-radius: var(--radius-sm, 8px) !important;
451
- padding: 6px 12px !important;
452
- box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25), 0 1px 3px rgba(0, 0, 0, 0.12) !important;
453
- border: 1px solid color-mix(in oklab, var(--border, rgba(255, 255, 255, 0.15)) 45%, transparent) !important;
454
- font-family: var(--font-sans, inherit) !important;
455
- font-size: 12px !important;
456
- font-weight: 500 !important;
457
- line-height: 1.35 !important;
458
- letter-spacing: 0.01em !important;
459
- backdrop-filter: blur(8px) !important;
460
- -webkit-backdrop-filter: blur(8px) !important;
598
+ :root body .mat-mdc-tooltip-surface.mat-mdc-tooltip-surface {
599
+ background-color: var(--mat-tooltip-container-color, var(--mat-sys-inverse-surface, oklch(0.24 0.03 260)));
600
+ color: var(--mat-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface, oklch(0.98 0.005 240)));
601
+ border-radius: var(--radius-sm, 8px);
602
+ padding: 6px 12px;
603
+ box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25), 0 1px 3px rgba(0, 0, 0, 0.12);
604
+ border: 1px solid color-mix(in oklab, var(--border, rgba(255, 255, 255, 0.15)) 45%, transparent);
605
+ font-family: var(--font-sans, inherit);
606
+ font-size: 12px;
607
+ font-weight: 500;
608
+ line-height: 1.35;
609
+ letter-spacing: 0.01em;
610
+ backdrop-filter: blur(8px);
611
+ -webkit-backdrop-filter: blur(8px);
612
+ }
613
+
614
+ @media (prefers-reduced-transparency: reduce) {
615
+ :root body .mat-mdc-tooltip-surface.mat-mdc-tooltip-surface {
616
+ backdrop-filter: none;
617
+ -webkit-backdrop-filter: none;
618
+ }
619
+ }
620
+
621
+ @media (forced-colors: active) {
622
+ :root body .mat-mdc-tooltip-surface.mat-mdc-tooltip-surface {
623
+ background-color: Canvas;
624
+ color: CanvasText;
625
+ border: 1px solid ButtonBorder;
626
+ box-shadow: none;
627
+ backdrop-filter: none;
628
+ -webkit-backdrop-filter: none;
629
+ }
461
630
  }
462
631
  }
463
632
 
464
633
  /// Emits refined surface styling, command shadow, backdrop filter,
465
634
  /// and state layer hover animations for Angular Material Menus.
466
635
  @mixin praxis-menu-styles() {
467
- .mat-mdc-menu-panel {
468
- border-radius: var(--radius-md, 14px) !important;
469
- background: color-mix(in oklab, var(--mat-menu-container-color, var(--card, var(--surface, #ffffff))) 92%, var(--background, #f2f6f5)) !important;
470
- border: 1px solid var(--border, var(--md-sys-color-outline-variant, rgba(0, 0, 0, 0.12))) !important;
471
- box-shadow: var(--shadow-command, var(--md-sys-elevation-level3, 0 4px 12px rgba(0, 0, 0, 0.18))), 0 12px 32px rgba(0, 0, 0, 0.18) !important;
472
- backdrop-filter: blur(18px) saturate(140%) !important;
473
- -webkit-backdrop-filter: blur(18px) saturate(140%) !important;
474
- padding: 6px !important;
475
- overflow: hidden !important;
636
+ :root body .mat-mdc-menu-panel.mat-mdc-menu-panel {
637
+ border-radius: var(--radius-md, 14px);
638
+ background: color-mix(in oklab, var(--mat-menu-container-color, var(--card, var(--surface, #ffffff))) 92%, var(--background, #f2f6f5));
639
+ border: 1px solid var(--border, var(--md-sys-color-outline-variant, rgba(0, 0, 0, 0.12)));
640
+ box-shadow: var(--shadow-command, var(--md-sys-elevation-level3, 0 4px 12px rgba(0, 0, 0, 0.18))), 0 12px 32px rgba(0, 0, 0, 0.18);
641
+ backdrop-filter: blur(18px) saturate(140%);
642
+ -webkit-backdrop-filter: blur(18px) saturate(140%);
643
+ padding: 6px;
644
+ overflow: hidden;
476
645
  }
477
646
 
478
- .mat-mdc-menu-item {
479
- min-height: 40px !important;
480
- border-radius: var(--radius-sm, 10px) !important;
481
- margin: 2px 0 !important;
482
- padding: 0 14px !important;
483
- font-family: var(--font-sans, inherit) !important;
484
- font-size: 0.85rem !important;
485
- font-weight: 500 !important;
486
- color: var(--mat-menu-item-label-text-color, var(--foreground, inherit)) !important;
487
- transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease !important;
647
+ :root body .mat-mdc-menu-item.mat-mdc-menu-item {
648
+ min-height: 40px;
649
+ border-radius: var(--radius-sm, 10px);
650
+ margin: 2px 0;
651
+ padding: 0 14px;
652
+ font-family: var(--font-sans, inherit);
653
+ font-size: 0.85rem;
654
+ font-weight: 500;
655
+ color: var(--mat-menu-item-label-text-color, var(--foreground, inherit));
656
+ transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
488
657
 
489
658
  .mat-icon {
490
- margin-right: 12px !important;
491
- color: var(--mat-menu-item-icon-color, var(--muted-foreground, inherit)) !important;
492
- font-size: 20px !important;
493
- width: 20px !important;
494
- height: 20px !important;
495
- transition: color 0.15s ease, transform 0.15s ease !important;
659
+ margin-right: 12px;
660
+ color: var(--mat-menu-item-icon-color, var(--muted-foreground, inherit));
661
+ font-size: 20px;
662
+ width: 20px;
663
+ height: 20px;
664
+ transition: color 0.15s ease, transform 0.15s ease;
496
665
  }
497
666
 
498
667
  &:hover:not([disabled]) {
499
- background-color: var(--mat-menu-item-hover-state-layer-color, color-mix(in oklab, var(--primary) 12%, transparent)) !important;
500
- color: var(--foreground, inherit) !important;
668
+ background-color: var(--mat-menu-item-hover-state-layer-color, color-mix(in oklab, var(--primary) 12%, transparent));
669
+ color: var(--foreground, inherit);
501
670
  transform: translateX(3px);
502
671
 
503
672
  .mat-icon {
504
- color: var(--primary, var(--md-sys-color-primary)) !important;
673
+ color: var(--primary, var(--md-sys-color-primary));
505
674
  transform: scale(1.08);
506
675
  }
507
676
  }
508
677
 
509
678
  &:focus-visible:not([disabled]),
510
679
  &.cdk-program-focused:not([disabled]) {
511
- background-color: var(--mat-menu-item-focus-state-layer-color, color-mix(in oklab, var(--primary) 18%, transparent)) !important;
512
- outline: 2px solid var(--primary, var(--md-sys-color-primary)) !important;
680
+ background-color: var(--mat-menu-item-focus-state-layer-color, color-mix(in oklab, var(--primary) 18%, transparent));
681
+ outline: 2px solid var(--primary, var(--md-sys-color-primary));
513
682
  outline-offset: -2px;
514
683
  }
515
684
 
516
685
  &[disabled] {
517
- opacity: 0.42 !important;
518
- cursor: not-allowed !important;
519
- pointer-events: none !important;
520
- transform: none !important;
686
+ opacity: 0.42;
687
+ cursor: not-allowed;
688
+ pointer-events: none;
689
+ transform: none;
521
690
  }
522
691
  }
692
+
693
+ @media (prefers-reduced-transparency: reduce) {
694
+ :root body .mat-mdc-menu-panel.mat-mdc-menu-panel {
695
+ backdrop-filter: none;
696
+ -webkit-backdrop-filter: none;
697
+ }
698
+ }
699
+
700
+ @media (prefers-reduced-motion: reduce) {
701
+ :root body .mat-mdc-menu-item.mat-mdc-menu-item {
702
+ transition: none;
703
+
704
+ .mat-icon {
705
+ transition: none;
706
+ }
707
+
708
+ &:hover:not([disabled]) {
709
+ transform: none;
710
+
711
+ .mat-icon {
712
+ transform: none;
713
+ }
714
+ }
715
+ }
716
+ }
717
+
718
+ @media (forced-colors: active) {
719
+ :root body .mat-mdc-menu-panel.mat-mdc-menu-panel {
720
+ background: Canvas;
721
+ color: CanvasText;
722
+ border: 1px solid ButtonBorder;
723
+ box-shadow: none;
724
+ backdrop-filter: none;
725
+ -webkit-backdrop-filter: none;
726
+ }
727
+
728
+ :root body .mat-mdc-menu-item.mat-mdc-menu-item {
729
+ color: CanvasText;
730
+
731
+ &:focus-visible:not([disabled]),
732
+ &.cdk-program-focused:not([disabled]) {
733
+ outline: 2px solid Highlight;
734
+ }
735
+ }
736
+ }
737
+ }
738
+
739
+ /// Reusable mixin for Lovable-inspired multi-stop color-shifting gradient text
740
+ /// on active loading and AI thinking/streaming indicators.
741
+ @mixin praxis-text-shimmer() {
742
+ color: var(--pdx-text-shimmer-base, var(--md-sys-color-on-surface-variant, currentColor));
743
+ text-shadow: none;
744
+
745
+ @supports ((-webkit-background-clip: text) or (background-clip: text)) {
746
+ background-image: var(
747
+ --pdx-text-shimmer-gradient,
748
+ linear-gradient(
749
+ 105deg,
750
+ color-mix(in oklab, var(--md-sys-color-on-surface-variant, #64748b) 78%, var(--md-sys-color-on-surface, #0f172a) 22%) 0%,
751
+ color-mix(in oklab, var(--md-sys-color-on-surface-variant, #64748b) 78%, var(--md-sys-color-on-surface, #0f172a) 22%) 26%,
752
+ color-mix(in oklab, var(--md-sys-color-tertiary, #6366f1) 66%, #a855f7 34%) 40%,
753
+ var(--md-sys-color-on-surface, #ffffff) 50%,
754
+ color-mix(in oklab, var(--md-sys-color-primary, #006a6a) 66%, #ec4899 34%) 60%,
755
+ color-mix(in oklab, var(--md-sys-color-on-surface-variant, #64748b) 78%, var(--md-sys-color-on-surface, #0f172a) 22%) 74%,
756
+ color-mix(in oklab, var(--md-sys-color-on-surface-variant, #64748b) 78%, var(--md-sys-color-on-surface, #0f172a) 22%) 100%
757
+ )
758
+ );
759
+ background-size: 300% 100%;
760
+ background-position: 100% 50%;
761
+ background-repeat: no-repeat;
762
+ -webkit-background-clip: text;
763
+ background-clip: text;
764
+ -webkit-text-fill-color: transparent;
765
+ color: transparent;
766
+ animation: pdx-text-shimmer-sweep var(--pdx-text-shimmer-duration, 2.6s) linear infinite;
767
+ will-change: background-position;
768
+ }
769
+
770
+ @media (prefers-reduced-motion: reduce), (forced-colors: active), print {
771
+ animation: none !important;
772
+ background-image: none !important;
773
+ -webkit-text-fill-color: currentColor !important;
774
+ color: var(--md-sys-color-primary, currentColor) !important;
775
+ will-change: auto;
776
+ }
777
+
778
+ @media (forced-colors: active) {
779
+ color: CanvasText !important;
780
+ -webkit-text-fill-color: CanvasText !important;
781
+ }
782
+ }
783
+
784
+ /// Emits global keyframes and `.pdx-text-shimmer` utility class.
785
+ @mixin praxis-text-shimmer-styles() {
786
+ @keyframes pdx-text-shimmer-sweep {
787
+ 0% {
788
+ background-position: 100% 50%;
789
+ }
790
+ 100% {
791
+ background-position: 0% 50%;
792
+ }
793
+ }
794
+
795
+ .pdx-text-shimmer {
796
+ @include praxis-text-shimmer();
797
+ }
523
798
  }
524
799
 
525
800
  /// Convenience mixin that bundles all theme definitions, dark mode overrides,
@@ -528,7 +803,11 @@
528
803
  /// @param {Map} $config Optional overrides for root theme tokens.
529
804
  /// @param {Map} $dark-config Optional overrides for dark theme tokens.
530
805
  /// @param {String} $dark-selector Selector used for dark mode (defaults to '.dark').
531
- @mixin praxis-theme-bundle($config: (), $dark-config: (), $dark-selector: '.dark') {
806
+ @mixin praxis-theme-bundle(
807
+ $config: (),
808
+ $dark-config: (),
809
+ $dark-selector: '.dark, [data-theme="dark"], [data-theme="dark-tech"]'
810
+ ) {
532
811
  :root {
533
812
  @include define-praxis-theme($config);
534
813
  }
@@ -540,4 +819,5 @@
540
819
  @include praxis-shell-styles();
541
820
  @include praxis-tooltip-styles();
542
821
  @include praxis-menu-styles();
822
+ @include praxis-text-shimmer-styles();
543
823
  }
@@ -1 +1,2 @@
1
1
  @forward 'theming';
2
+ @forward 'micro-visualization';