@praxisui/core 10.0.0-rc.8 → 10.0.0-rc.81

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,364 @@
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;
434
551
  }
435
552
  }
436
553
 
437
- .pdx-shell.fullscreen praxis-chart,
438
- .pdx-shell.expanded praxis-chart {
439
- width: 100% !important;
440
- height: 100% !important;
441
- display: block !important;
554
+ @media (prefers-reduced-transparency: reduce) {
555
+ :root body .pdx-shell-backdrop.pdx-shell-backdrop {
556
+ backdrop-filter: none;
557
+ -webkit-backdrop-filter: none;
558
+ }
559
+
560
+ :root body .pdx-shell.pdx-shell.dashboard,
561
+ :root body .pdx-shell.pdx-shell--backdrop {
562
+ backdrop-filter: none;
563
+ -webkit-backdrop-filter: none;
564
+ background: var(--pdx-shell-card-fallback-bg, var(--md-sys-color-surface, var(--card, #fbfcfc)));
565
+ }
566
+ }
567
+
568
+ @media (forced-colors: active) {
569
+ :root body .pdx-shell-backdrop.pdx-shell-backdrop {
570
+ backdrop-filter: none;
571
+ -webkit-backdrop-filter: none;
572
+ background: Canvas;
573
+ opacity: 0.75;
574
+ }
575
+
576
+ :root body .pdx-shell.pdx-shell.dashboard,
577
+ :root body .pdx-shell.pdx-shell.fullscreen,
578
+ :root body .pdx-shell.pdx-shell.expanded {
579
+ background: Canvas;
580
+ color: CanvasText;
581
+ border: 1px solid ButtonBorder;
582
+ box-shadow: none;
583
+ backdrop-filter: none;
584
+ -webkit-backdrop-filter: none;
585
+ }
442
586
  }
443
587
  }
444
588
 
445
589
  /// Emits solid surface and high-contrast refinements for Angular Material Tooltips.
446
590
  @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;
591
+ :root body .mat-mdc-tooltip-surface.mat-mdc-tooltip-surface {
592
+ background-color: var(--mat-tooltip-container-color, var(--mat-sys-inverse-surface, oklch(0.24 0.03 260)));
593
+ color: var(--mat-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface, oklch(0.98 0.005 240)));
594
+ border-radius: var(--radius-sm, 8px);
595
+ padding: 6px 12px;
596
+ box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25), 0 1px 3px rgba(0, 0, 0, 0.12);
597
+ border: 1px solid color-mix(in oklab, var(--border, rgba(255, 255, 255, 0.15)) 45%, transparent);
598
+ font-family: var(--font-sans, inherit);
599
+ font-size: 12px;
600
+ font-weight: 500;
601
+ line-height: 1.35;
602
+ letter-spacing: 0.01em;
603
+ backdrop-filter: blur(8px);
604
+ -webkit-backdrop-filter: blur(8px);
605
+ }
606
+
607
+ @media (prefers-reduced-transparency: reduce) {
608
+ :root body .mat-mdc-tooltip-surface.mat-mdc-tooltip-surface {
609
+ backdrop-filter: none;
610
+ -webkit-backdrop-filter: none;
611
+ }
612
+ }
613
+
614
+ @media (forced-colors: active) {
615
+ :root body .mat-mdc-tooltip-surface.mat-mdc-tooltip-surface {
616
+ background-color: Canvas;
617
+ color: CanvasText;
618
+ border: 1px solid ButtonBorder;
619
+ box-shadow: none;
620
+ backdrop-filter: none;
621
+ -webkit-backdrop-filter: none;
622
+ }
461
623
  }
462
624
  }
463
625
 
464
626
  /// Emits refined surface styling, command shadow, backdrop filter,
465
627
  /// and state layer hover animations for Angular Material Menus.
466
628
  @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;
629
+ :root body .mat-mdc-menu-panel.mat-mdc-menu-panel {
630
+ border-radius: var(--radius-md, 14px);
631
+ background: color-mix(in oklab, var(--mat-menu-container-color, var(--card, var(--surface, #ffffff))) 92%, var(--background, #f2f6f5));
632
+ border: 1px solid var(--border, var(--md-sys-color-outline-variant, rgba(0, 0, 0, 0.12)));
633
+ 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);
634
+ backdrop-filter: blur(18px) saturate(140%);
635
+ -webkit-backdrop-filter: blur(18px) saturate(140%);
636
+ padding: 6px;
637
+ overflow: hidden;
476
638
  }
477
639
 
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;
640
+ :root body .mat-mdc-menu-item.mat-mdc-menu-item {
641
+ min-height: 40px;
642
+ border-radius: var(--radius-sm, 10px);
643
+ margin: 2px 0;
644
+ padding: 0 14px;
645
+ font-family: var(--font-sans, inherit);
646
+ font-size: 0.85rem;
647
+ font-weight: 500;
648
+ color: var(--mat-menu-item-label-text-color, var(--foreground, inherit));
649
+ transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
488
650
 
489
651
  .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;
652
+ margin-right: 12px;
653
+ color: var(--mat-menu-item-icon-color, var(--muted-foreground, inherit));
654
+ font-size: 20px;
655
+ width: 20px;
656
+ height: 20px;
657
+ transition: color 0.15s ease, transform 0.15s ease;
496
658
  }
497
659
 
498
660
  &: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;
661
+ background-color: var(--mat-menu-item-hover-state-layer-color, color-mix(in oklab, var(--primary) 12%, transparent));
662
+ color: var(--foreground, inherit);
501
663
  transform: translateX(3px);
502
664
 
503
665
  .mat-icon {
504
- color: var(--primary, var(--md-sys-color-primary)) !important;
666
+ color: var(--primary, var(--md-sys-color-primary));
505
667
  transform: scale(1.08);
506
668
  }
507
669
  }
508
670
 
509
671
  &:focus-visible:not([disabled]),
510
672
  &.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;
673
+ background-color: var(--mat-menu-item-focus-state-layer-color, color-mix(in oklab, var(--primary) 18%, transparent));
674
+ outline: 2px solid var(--primary, var(--md-sys-color-primary));
513
675
  outline-offset: -2px;
514
676
  }
515
677
 
516
678
  &[disabled] {
517
- opacity: 0.42 !important;
518
- cursor: not-allowed !important;
519
- pointer-events: none !important;
520
- transform: none !important;
679
+ opacity: 0.42;
680
+ cursor: not-allowed;
681
+ pointer-events: none;
682
+ transform: none;
521
683
  }
522
684
  }
685
+
686
+ @media (prefers-reduced-transparency: reduce) {
687
+ :root body .mat-mdc-menu-panel.mat-mdc-menu-panel {
688
+ backdrop-filter: none;
689
+ -webkit-backdrop-filter: none;
690
+ }
691
+ }
692
+
693
+ @media (prefers-reduced-motion: reduce) {
694
+ :root body .mat-mdc-menu-item.mat-mdc-menu-item {
695
+ transition: none;
696
+
697
+ .mat-icon {
698
+ transition: none;
699
+ }
700
+
701
+ &:hover:not([disabled]) {
702
+ transform: none;
703
+
704
+ .mat-icon {
705
+ transform: none;
706
+ }
707
+ }
708
+ }
709
+ }
710
+
711
+ @media (forced-colors: active) {
712
+ :root body .mat-mdc-menu-panel.mat-mdc-menu-panel {
713
+ background: Canvas;
714
+ color: CanvasText;
715
+ border: 1px solid ButtonBorder;
716
+ box-shadow: none;
717
+ backdrop-filter: none;
718
+ -webkit-backdrop-filter: none;
719
+ }
720
+
721
+ :root body .mat-mdc-menu-item.mat-mdc-menu-item {
722
+ color: CanvasText;
723
+
724
+ &:focus-visible:not([disabled]),
725
+ &.cdk-program-focused:not([disabled]) {
726
+ outline: 2px solid Highlight;
727
+ }
728
+ }
729
+ }
730
+ }
731
+
732
+ /// Reusable mixin for Lovable-inspired multi-stop color-shifting gradient text
733
+ /// on active loading and AI thinking/streaming indicators.
734
+ @mixin praxis-text-shimmer() {
735
+ color: var(--pdx-text-shimmer-base, var(--md-sys-color-on-surface-variant, currentColor));
736
+ text-shadow: none;
737
+
738
+ @supports ((-webkit-background-clip: text) or (background-clip: text)) {
739
+ background-image: var(
740
+ --pdx-text-shimmer-gradient,
741
+ linear-gradient(
742
+ 105deg,
743
+ color-mix(in oklab, var(--md-sys-color-on-surface-variant, #64748b) 78%, var(--md-sys-color-on-surface, #0f172a) 22%) 0%,
744
+ color-mix(in oklab, var(--md-sys-color-on-surface-variant, #64748b) 78%, var(--md-sys-color-on-surface, #0f172a) 22%) 26%,
745
+ color-mix(in oklab, var(--md-sys-color-tertiary, #6366f1) 66%, #a855f7 34%) 40%,
746
+ var(--md-sys-color-on-surface, #ffffff) 50%,
747
+ color-mix(in oklab, var(--md-sys-color-primary, #006a6a) 66%, #ec4899 34%) 60%,
748
+ color-mix(in oklab, var(--md-sys-color-on-surface-variant, #64748b) 78%, var(--md-sys-color-on-surface, #0f172a) 22%) 74%,
749
+ color-mix(in oklab, var(--md-sys-color-on-surface-variant, #64748b) 78%, var(--md-sys-color-on-surface, #0f172a) 22%) 100%
750
+ )
751
+ );
752
+ background-size: 300% 100%;
753
+ background-position: 100% 50%;
754
+ background-repeat: no-repeat;
755
+ -webkit-background-clip: text;
756
+ background-clip: text;
757
+ -webkit-text-fill-color: transparent;
758
+ color: transparent;
759
+ animation: pdx-text-shimmer-sweep var(--pdx-text-shimmer-duration, 2.6s) linear infinite;
760
+ will-change: background-position;
761
+ }
762
+
763
+ @media (prefers-reduced-motion: reduce), (forced-colors: active), print {
764
+ animation: none !important;
765
+ background-image: none !important;
766
+ -webkit-text-fill-color: currentColor !important;
767
+ color: var(--md-sys-color-primary, currentColor) !important;
768
+ will-change: auto;
769
+ }
770
+
771
+ @media (forced-colors: active) {
772
+ color: CanvasText !important;
773
+ -webkit-text-fill-color: CanvasText !important;
774
+ }
775
+ }
776
+
777
+ /// Emits global keyframes and `.pdx-text-shimmer` utility class.
778
+ @mixin praxis-text-shimmer-styles() {
779
+ @keyframes pdx-text-shimmer-sweep {
780
+ 0% {
781
+ background-position: 100% 50%;
782
+ }
783
+ 100% {
784
+ background-position: 0% 50%;
785
+ }
786
+ }
787
+
788
+ .pdx-text-shimmer {
789
+ @include praxis-text-shimmer();
790
+ }
523
791
  }
524
792
 
525
793
  /// Convenience mixin that bundles all theme definitions, dark mode overrides,
@@ -528,7 +796,11 @@
528
796
  /// @param {Map} $config Optional overrides for root theme tokens.
529
797
  /// @param {Map} $dark-config Optional overrides for dark theme tokens.
530
798
  /// @param {String} $dark-selector Selector used for dark mode (defaults to '.dark').
531
- @mixin praxis-theme-bundle($config: (), $dark-config: (), $dark-selector: '.dark') {
799
+ @mixin praxis-theme-bundle(
800
+ $config: (),
801
+ $dark-config: (),
802
+ $dark-selector: '.dark, [data-theme="dark"], [data-theme="dark-tech"]'
803
+ ) {
532
804
  :root {
533
805
  @include define-praxis-theme($config);
534
806
  }
@@ -540,4 +812,5 @@
540
812
  @include praxis-shell-styles();
541
813
  @include praxis-tooltip-styles();
542
814
  @include praxis-menu-styles();
815
+ @include praxis-text-shimmer-styles();
543
816
  }
@@ -1 +1,2 @@
1
1
  @forward 'theming';
2
+ @forward 'micro-visualization';