@webority/theme 0.32.0 → 0.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webority/theme",
3
- "version": "0.32.0",
3
+ "version": "0.33.0",
4
4
  "description": "Webority shared design system — Bootstrap 5.3 SCSS overrides, --wui-* tokens, and shared component CSS. The single source of brand chrome for React portals and Razor sites.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "publishConfig": {
@@ -21,6 +21,9 @@
21
21
  --color-progress-track: var(--wui-progress-track);
22
22
  // Label text inside a progress bar fill.
23
23
  --color-progress-label: var(--wui-bg-light);
24
+ // Ink on a solid status fill (success, warning, danger, info): near-black in both modes, since
25
+ // white fails AA on the bright fills.
26
+ --color-on-status-fill: #0F0F0F;
24
27
 
25
28
  // Text ramp
26
29
  --color-text: var(--wui-text-heading);
@@ -842,27 +842,27 @@ a.info-row:hover .info-value {
842
842
  background: var(--color-surface);
843
843
  box-shadow: inset 0 0 0 2px var(--color-border);
844
844
  }
845
- // Solid status discs with a light glyph (a dark ink in dark mode, where white fails on the bright fills) and a soft concentric halo ring in the
845
+ // Solid status discs with a near-black glyph (white fails AA on the bright fills) and a soft concentric halo ring in the
846
846
  // dot's own hue. The fill is softened a touch (mixed toward the surface) so the
847
847
  // states read gentler than the raw brand tones.
848
848
  .timeline--progress .timeline-item.is-done .timeline-dot {
849
- color: var(--color-progress-label);
849
+ color: var(--color-on-status-fill);
850
850
  background: color-mix(in srgb, var(--color-success) 82%, var(--color-surface));
851
851
  box-shadow: 0 0 0 var(--wui-timeline-halo) var(--color-success-soft);
852
852
  }
853
853
  .timeline--progress .timeline-item.is-current .timeline-dot {
854
- color: var(--color-progress-label);
854
+ color: var(--color-on-status-fill);
855
855
  background: color-mix(in srgb, var(--color-warning) 82%, var(--color-surface));
856
856
  box-shadow: 0 0 0 var(--wui-timeline-halo) var(--color-warning-soft);
857
857
  }
858
858
  .timeline--progress .timeline-item.is-rejected .timeline-dot {
859
- color: var(--color-progress-label);
859
+ color: var(--color-on-status-fill);
860
860
  background: color-mix(in srgb, var(--color-danger) 82%, var(--color-surface));
861
861
  box-shadow: 0 0 0 var(--wui-timeline-halo) var(--color-danger-soft);
862
862
  }
863
863
  // Blocked / waiting on an external action — informational blue.
864
864
  .timeline--progress .timeline-item.is-on-hold .timeline-dot {
865
- color: var(--color-progress-label);
865
+ color: var(--color-on-status-fill);
866
866
  background: color-mix(in srgb, var(--color-info) 82%, var(--color-surface));
867
867
  box-shadow: 0 0 0 var(--wui-timeline-halo) var(--color-info-soft);
868
868
  }
@@ -91,16 +91,18 @@
91
91
  font-weight: 600;
92
92
  color: var(--color-text-subtle);
93
93
  }
94
+ // An untoned wizard sets no --wui-step-* vars, so the ink fallback must pair with the primary
95
+ // fill fallback: white on the dark theme's light primary is under AA.
94
96
  .step.active .step-circle {
95
97
  border-color: var(--wui-step-accent, var(--color-primary));
96
98
  background: var(--wui-step-accent, var(--color-primary));
97
- color: var(--wui-step-accent-fg, var(--color-on-scrim));
99
+ color: var(--wui-step-accent-fg, var(--color-primary-text));
98
100
  box-shadow: 0 0 0 4px var(--wui-step-soft, var(--color-primary-soft));
99
101
  }
100
102
  .step.done .step-circle {
101
103
  border-color: var(--wui-step-done-accent, var(--wui-step-accent, var(--color-primary)));
102
104
  background: var(--wui-step-done-accent, var(--wui-step-accent, var(--color-primary)));
103
- color: var(--wui-step-done-accent-fg, var(--wui-step-accent-fg, var(--color-on-scrim)));
105
+ color: var(--wui-step-done-accent-fg, var(--wui-step-accent-fg, var(--color-primary-text)));
104
106
  }
105
107
  .step-label {
106
108
  max-width: 130px;
@@ -225,7 +227,7 @@ button.step.done:focus-visible .step-circle {
225
227
  }
226
228
  .stepper-journey .step.active .step-circle {
227
229
  background: var(--wui-step-accent, var(--color-primary));
228
- color: var(--wui-step-accent-fg, var(--color-on-scrim));
230
+ color: var(--wui-step-accent-fg, var(--color-primary-text));
229
231
  box-shadow: none;
230
232
  transform: scale(1.06);
231
233
  }
@@ -415,7 +417,7 @@ button.step.done:focus-visible .step-circle {
415
417
  // shared --wui-step-* vars, so a `.wui-step-tone-*` class or an override recolours it.
416
418
  .stepper-icons .step.active .step-circle {
417
419
  background: var(--wui-step-accent, var(--color-primary));
418
- color: var(--wui-step-accent-fg, var(--color-on-scrim));
420
+ color: var(--wui-step-accent-fg, var(--color-primary-text));
419
421
  // The compact variant rings the active circle; here the solid fill carries it, so
420
422
  // drop the ring to match the flat badge look.
421
423
  box-shadow: none;
@@ -532,28 +534,28 @@ button.step.done:focus-visible .step-circle {
532
534
  --wui-step-soft: var(--color-primary-soft);
533
535
  --wui-step-soft-fg: var(--color-primary);
534
536
  }
535
- // Text on a bright status fill: white in light mode, a dark ink in dark mode, where white fails AA.
537
+ // Text on a bright status fill: a near-black ink in both modes, where white fails AA.
536
538
  .wui-step-tone-success {
537
539
  --wui-step-accent: var(--color-success);
538
- --wui-step-accent-fg: var(--color-progress-label);
540
+ --wui-step-accent-fg: var(--color-on-status-fill);
539
541
  --wui-step-soft: var(--color-success-soft);
540
542
  --wui-step-soft-fg: var(--color-success-text);
541
543
  }
542
544
  .wui-step-tone-warning {
543
545
  --wui-step-accent: var(--color-warning);
544
- --wui-step-accent-fg: var(--color-progress-label);
546
+ --wui-step-accent-fg: var(--color-on-status-fill);
545
547
  --wui-step-soft: var(--color-warning-soft);
546
548
  --wui-step-soft-fg: var(--color-warning-text);
547
549
  }
548
550
  .wui-step-tone-danger {
549
551
  --wui-step-accent: var(--color-danger);
550
- --wui-step-accent-fg: var(--color-progress-label);
552
+ --wui-step-accent-fg: var(--color-on-status-fill);
551
553
  --wui-step-soft: var(--color-danger-soft);
552
554
  --wui-step-soft-fg: var(--color-danger-text);
553
555
  }
554
556
  .wui-step-tone-info {
555
557
  --wui-step-accent: var(--color-info);
556
- --wui-step-accent-fg: var(--color-progress-label);
558
+ --wui-step-accent-fg: var(--color-on-status-fill);
557
559
  --wui-step-soft: var(--color-info-soft);
558
560
  --wui-step-soft-fg: var(--color-info-text);
559
561
  }
@@ -571,25 +573,25 @@ button.step.done:focus-visible .step-circle {
571
573
  }
572
574
  .wui-step-done-tone-success {
573
575
  --wui-step-done-accent: var(--color-success);
574
- --wui-step-done-accent-fg: var(--color-progress-label);
576
+ --wui-step-done-accent-fg: var(--color-on-status-fill);
575
577
  --wui-step-done-soft: var(--color-success-soft);
576
578
  --wui-step-done-soft-fg: var(--color-success-text);
577
579
  }
578
580
  .wui-step-done-tone-warning {
579
581
  --wui-step-done-accent: var(--color-warning);
580
- --wui-step-done-accent-fg: var(--color-progress-label);
582
+ --wui-step-done-accent-fg: var(--color-on-status-fill);
581
583
  --wui-step-done-soft: var(--color-warning-soft);
582
584
  --wui-step-done-soft-fg: var(--color-warning-text);
583
585
  }
584
586
  .wui-step-done-tone-danger {
585
587
  --wui-step-done-accent: var(--color-danger);
586
- --wui-step-done-accent-fg: var(--color-progress-label);
588
+ --wui-step-done-accent-fg: var(--color-on-status-fill);
587
589
  --wui-step-done-soft: var(--color-danger-soft);
588
590
  --wui-step-done-soft-fg: var(--color-danger-text);
589
591
  }
590
592
  .wui-step-done-tone-info {
591
593
  --wui-step-done-accent: var(--color-info);
592
- --wui-step-done-accent-fg: var(--color-progress-label);
594
+ --wui-step-done-accent-fg: var(--color-on-status-fill);
593
595
  --wui-step-done-soft: var(--color-info-soft);
594
596
  --wui-step-done-soft-fg: var(--color-info-text);
595
597
  }