@webority/theme 0.165.0 → 0.167.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.
Files changed (54) hide show
  1. package/README.md +86 -1
  2. package/dist/published-theme.json +2 -0
  3. package/dist/purge-safelist.json +21 -11
  4. package/dist/webority-modes.css +1 -0
  5. package/dist/webority-theme.css +1 -1
  6. package/dist/webority-tokens.css +1 -1
  7. package/package.json +13 -6
  8. package/scss/_bootstrap.generated.scss +1 -1
  9. package/scss/_components.scss +33 -25
  10. package/scss/_modes.scss +17 -0
  11. package/scss/_tokens-modes.generated.scss +170 -0
  12. package/scss/_tokens.generated.scss +11 -6
  13. package/scss/wui/_cell.scss +1 -1
  14. package/scss/wui/_choice.scss +18 -8
  15. package/scss/wui/_controls.scss +138 -18
  16. package/scss/wui/_data.scss +2 -2
  17. package/scss/wui/_display.scss +8 -4
  18. package/scss/wui/_entry-grid.scss +60 -0
  19. package/scss/wui/_field-floor.scss +6 -6
  20. package/scss/wui/_field-sizes.scss +9 -4
  21. package/scss/wui/_flow.scss +1 -0
  22. package/scss/wui/_forced-colors.scss +15 -0
  23. package/scss/wui/_groups.scss +8 -0
  24. package/scss/wui/_navigation.scss +26 -10
  25. package/scss/wui/_print.scss +15 -0
  26. package/scss/wui/_select.scss +9 -2
  27. package/scss/wui/forced-colors/_base.scss +95 -0
  28. package/scss/wui/forced-colors/_choice.scss +59 -0
  29. package/scss/wui/forced-colors/_controls.scss +90 -0
  30. package/scss/wui/forced-colors/_data.scss +57 -0
  31. package/scss/wui/forced-colors/_display.scss +77 -0
  32. package/scss/wui/forced-colors/_media.scss +63 -0
  33. package/scss/wui/forced-colors/_navigation.scss +40 -0
  34. package/scss/wui/forced-colors/_overlays.scss +41 -0
  35. package/scss/wui/modes/_calendar.scss +24 -0
  36. package/scss/wui/modes/_command-palette.scss +23 -0
  37. package/scss/wui/modes/_dock.scss +21 -0
  38. package/scss/wui/modes/_file-viewer.scss +19 -0
  39. package/scss/wui/modes/_image-crop.scss +21 -0
  40. package/scss/wui/modes/_kanban.scss +36 -0
  41. package/scss/wui/modes/_org-tree.scss +18 -0
  42. package/scss/wui/modes/_rich-text.scss +25 -0
  43. package/scss/wui/modes/_tour.scss +30 -0
  44. package/scss/wui/modes/_tree.scss +17 -0
  45. package/scss/wui/modes/_workspace.scss +19 -0
  46. package/scss/wui/print/_chrome.scss +43 -0
  47. package/scss/wui/print/_content.scss +73 -0
  48. package/scss/wui/print/_dark.scss +105 -0
  49. package/scss/wui/print/_data.scss +80 -0
  50. package/scss/wui/print/_overlays.scss +46 -0
  51. package/scss/wui/print/_page.scss +11 -0
  52. package/scss/wui/print/_status.scss +42 -0
  53. package/scss/wui/print/_surfaces.scss +56 -0
  54. package/token-meanings.json +3 -2
@@ -2,18 +2,23 @@
2
2
 
3
3
  // Size steps for fields that had none: textarea, checkbox, switch, OTP. Part of the wui-components layer, see _wui-components.scss for load order.
4
4
 
5
- // .textarea sets its own padding and height after .input-sm/.input-lg, so the shared step classes
5
+ // .textarea sets its own padding and height after .wui-input-sm/.wui-input-lg, so the shared step classes
6
6
  // need restating with the textarea's specificity.
7
- // A small text area takes its text size from .input-sm, so iOS zooms on focus as it does for that field.
8
- .textarea.input-sm {
7
+ // A small text area takes its text size from .wui-input-sm, so iOS zooms on focus as it does for that field.
8
+ .textarea.wui-input-sm {
9
9
  padding: var(--wui-space-sm) var(--wui-space-md) var(--wui-space-sm);
10
10
  border-radius: var(--wui-field-sm-radius);
11
11
  }
12
- .textarea.input-lg {
12
+ .textarea.wui-input-lg {
13
13
  padding: var(--wui-space-md) var(--wui-space-lg) var(--wui-space-lg);
14
14
  font-size: var(--wui-fs-lg);
15
15
  border-radius: var(--wui-field-lg-radius);
16
16
  }
17
+ .textarea.wui-input-xl {
18
+ padding: var(--wui-space-md) var(--wui-space-lg) var(--wui-space-lg);
19
+ font-size: var(--wui-fs-lg);
20
+ border-radius: var(--wui-field-xl-radius);
21
+ }
17
22
 
18
23
  .form-check.form-check-sm .form-check-input {
19
24
  width: 16px;
@@ -1197,6 +1197,7 @@ button.wui-step-tile-body:hover .step-label {
1197
1197
  // density="compact": small-tier controls and tighter gaps, for admin screens and dialogs.
1198
1198
  .wui-form-compact {
1199
1199
  --wui-control-md: var(--wui-control-sm);
1200
+ --wui-button-md-height: var(--wui-button-sm-height);
1200
1201
  gap: 12px;
1201
1202
  }
1202
1203
  .wui-form-compact .form-section-body,
@@ -0,0 +1,15 @@
1
+ @use "sass:meta";
2
+
3
+ // The forced-colours layer: rules that apply only under a system contrast theme.
4
+ // The browser already forces text, background, border and outline colours and drops shadows;
5
+ // these rules restore what that loses. System colours only, never a token colour.
6
+ @media (forced-colors: active) {
7
+ @include meta.load-css("forced-colors/base");
8
+ @include meta.load-css("forced-colors/controls");
9
+ @include meta.load-css("forced-colors/choice");
10
+ @include meta.load-css("forced-colors/navigation");
11
+ @include meta.load-css("forced-colors/data");
12
+ @include meta.load-css("forced-colors/display");
13
+ @include meta.load-css("forced-colors/overlays");
14
+ @include meta.load-css("forced-colors/media");
15
+ }
@@ -92,6 +92,11 @@
92
92
  padding-inline: 1.25rem;
93
93
  font-size: 1rem;
94
94
  }
95
+ .wui-addon-group-xl .wui-addon {
96
+ min-height: var(--wui-control-xl);
97
+ padding-inline: var(--wui-space-lg);
98
+ font-size: var(--wui-fs-lg);
99
+ }
95
100
  .wui-addon-group > .btn {
96
101
  height: var(--wui-control-md);
97
102
  }
@@ -101,6 +106,9 @@
101
106
  .wui-addon-group-lg > .btn {
102
107
  height: var(--wui-control-lg);
103
108
  }
109
+ .wui-addon-group-xl > .btn {
110
+ height: var(--wui-control-xl);
111
+ }
104
112
 
105
113
  // Square the sides that meet, and let the shared border overlap.
106
114
  .wui-addon-group > :not(:first-child),
@@ -691,14 +691,18 @@
691
691
  color: var(--color-text-muted);
692
692
  cursor: pointer;
693
693
  }
694
- .search-wrap.search-sm .wui-search-toggle {
694
+ .search-wrap.wui-search-sm .wui-search-toggle {
695
695
  width: 32px;
696
696
  height: 32px;
697
697
  }
698
- .search-wrap.search-lg .wui-search-toggle {
698
+ .search-wrap.wui-search-lg .wui-search-toggle {
699
699
  width: 44px;
700
700
  height: 44px;
701
701
  }
702
+ .search-wrap.wui-search-xl .wui-search-toggle {
703
+ width: var(--wui-control-xl);
704
+ height: var(--wui-control-xl);
705
+ }
702
706
  .wui-search-toggle:hover {
703
707
  color: var(--color-text);
704
708
  }
@@ -723,33 +727,45 @@
723
727
  appearance: none;
724
728
  display: none;
725
729
  }
726
- // Sizes — sm / lg around the default, mirroring AppInput. The leading icon and clear button
730
+ // Sizes: sm, lg and xl around the default, mirroring AppInput. The leading icon and clear button
727
731
  // track the height so they stay centred and clear of the text.
728
- .search-wrap.search-sm .search-input {
732
+ .search-wrap.wui-search-sm .search-input {
729
733
  height: var(--wui-control-sm);
730
734
  padding-left: calc(13px + var(--wui-search-icon-size, 12px) + 9px);
731
735
  padding-right: 32px;
732
736
  font-size: 13px;
733
737
  }
734
- .search-wrap.search-sm > .search-icon,
735
- .search-wrap.search-sm .search-spinner {
738
+ .search-wrap.wui-search-sm > .search-icon,
739
+ .search-wrap.wui-search-sm .search-spinner {
736
740
  left: 11px;
737
741
  }
738
- .search-wrap.search-sm .search-clear {
742
+ .search-wrap.wui-search-sm .search-clear {
739
743
  width: 22px;
740
744
  height: 22px;
741
745
  right: 6px;
742
746
  }
743
- .search-wrap.search-lg .search-input {
747
+ .search-wrap.wui-search-lg .search-input,
748
+ .search-wrap.wui-search-xl .search-input {
744
749
  height: var(--wui-control-lg);
745
750
  padding-left: calc(13px + var(--wui-search-icon-size, 24px) + 9px);
746
751
  padding-right: 40px;
747
752
  font-size: 16px;
748
753
  }
749
- .search-wrap.search-lg > .search-icon,
750
- .search-wrap.search-lg .search-spinner {
754
+ .search-wrap.wui-search-lg > .search-icon,
755
+ .search-wrap.wui-search-lg .search-spinner {
751
756
  left: 16px;
752
757
  }
758
+ .search-wrap.wui-search-xl .search-input {
759
+ // Room kept clear for the clear button at the right; a layout constant, not a spacing step.
760
+ --wui-search-clear-room: 44px;
761
+ height: var(--wui-control-xl);
762
+ padding-right: var(--wui-search-clear-room);
763
+ font-size: var(--wui-fs-lg);
764
+ }
765
+ .search-wrap.wui-search-xl > .search-icon,
766
+ .search-wrap.wui-search-xl .search-spinner {
767
+ left: var(--wui-space-lg);
768
+ }
753
769
  // Loading — a spinner replaces the leading glyph while a search is in flight.
754
770
  .search-wrap.is-loading > .search-icon {
755
771
  display: none;
@@ -0,0 +1,15 @@
1
+ @use "sass:meta";
2
+
3
+ // The print layer: rules that apply only when the page is printed or saved as PDF.
4
+ // Each family file holds plain rules; this index is the only place that names the media query,
5
+ // so a family rule cannot reach the screen. Loaded last in the modes file so it wins every tie.
6
+ @media print {
7
+ @include meta.load-css("print/page");
8
+ @include meta.load-css("print/chrome");
9
+ @include meta.load-css("print/surfaces");
10
+ @include meta.load-css("print/data");
11
+ @include meta.load-css("print/content");
12
+ @include meta.load-css("print/overlays");
13
+ @include meta.load-css("print/status");
14
+ @include meta.load-css("print/dark");
15
+ }
@@ -72,7 +72,7 @@
72
72
  white-space: nowrap;
73
73
  }
74
74
 
75
- // Sizes: mirror AppInput's .input-sm / .input-lg so a select lines up with the
75
+ // Sizes: mirror AppInput's .wui-input-sm / .wui-input-lg so a select lines up with the
76
76
  // text fields beside it. md is the base .wui-select-control height.
77
77
  .wui-select-sm .wui-select-control {
78
78
  height: var(--wui-control-sm);
@@ -86,10 +86,17 @@
86
86
  font-size: var(--wui-fs-base);
87
87
  border-radius: var(--wui-radius-sm);
88
88
  }
89
+ .wui-select-xl .wui-select-control {
90
+ height: var(--wui-control-xl);
91
+ min-height: var(--wui-control-xl);
92
+ font-size: var(--wui-fs-lg);
93
+ border-radius: var(--wui-field-xl-radius);
94
+ }
89
95
  // Multi-select grows with its chips, so a size sets the FLOOR (min-height from the rule
90
96
  // above) but never a fixed height: reset height:auto so a second row of chips can appear.
91
97
  .wui-select-sm .wui-select-multi,
92
- .wui-select-lg .wui-select-multi {
98
+ .wui-select-lg .wui-select-multi,
99
+ .wui-select-xl .wui-select-multi {
93
100
  height: auto;
94
101
  }
95
102
 
@@ -0,0 +1,95 @@
1
+ // Plain rules only: wui/_forced-colors.scss wraps this file in its media query.
2
+
3
+ :root,
4
+ [data-theme],
5
+ [data-bs-theme] {
6
+ --color-bg: Canvas;
7
+ --color-bg-subtle: Canvas;
8
+ --color-bg-muted: Canvas;
9
+ --color-surface: Canvas;
10
+ --color-field-bg: Canvas;
11
+ --color-text-inverse: Canvas;
12
+ --color-primary-soft: Canvas;
13
+ --color-success-soft: Canvas;
14
+ --color-warning-soft: Canvas;
15
+ --color-danger-soft: Canvas;
16
+ --color-info-soft: Canvas;
17
+ --color-neutral-soft: Canvas;
18
+
19
+ --color-text: CanvasText;
20
+ --color-text-body: CanvasText;
21
+ --color-text-muted: CanvasText;
22
+ --color-text-subtle: CanvasText;
23
+ --color-primary-text: CanvasText;
24
+ --color-border: CanvasText;
25
+ --color-border-subtle: CanvasText;
26
+ --color-border-strong: CanvasText;
27
+ --color-field-border: CanvasText;
28
+ --color-field-border-hover: CanvasText;
29
+ --color-chart-axis: CanvasText;
30
+ --color-chart-label: CanvasText;
31
+ --color-success: CanvasText;
32
+ --color-success-text: CanvasText;
33
+ --color-success-text-on-soft: CanvasText;
34
+ --color-success-strong: CanvasText;
35
+ --color-success-border: CanvasText;
36
+ --color-warning: CanvasText;
37
+ --color-warning-text: CanvasText;
38
+ --color-warning-text-on-soft: CanvasText;
39
+ --color-warning-strong: CanvasText;
40
+ --color-warning-border: CanvasText;
41
+ --color-danger: CanvasText;
42
+ --color-danger-text: CanvasText;
43
+ --color-danger-text-on-soft: CanvasText;
44
+ --color-danger-strong: CanvasText;
45
+ --color-danger-border: CanvasText;
46
+ --color-info: CanvasText;
47
+ --color-info-text: CanvasText;
48
+ --color-info-text-on-soft: CanvasText;
49
+ --color-info-strong: CanvasText;
50
+ --color-info-border: CanvasText;
51
+
52
+ --color-link: LinkText;
53
+ --color-link-hover: LinkText;
54
+
55
+ --color-focus-ring: Highlight;
56
+ --color-focus-ring-soft: Highlight;
57
+ --color-field-border-focus: Highlight;
58
+ --color-primary: Highlight;
59
+ --color-primary-hover: Highlight;
60
+ --color-on-primary: HighlightText;
61
+
62
+ --color-chart-grid: GrayText;
63
+ }
64
+
65
+ :where(:disabled, [disabled], .disabled, [aria-disabled="true"]) {
66
+ color: GrayText;
67
+ opacity: 1;
68
+ }
69
+
70
+ .pw-criteria .pw-mark {
71
+ background-color: CanvasText;
72
+ }
73
+
74
+ .alert-dismissible .btn-close::before {
75
+ background-color: ButtonText;
76
+ }
77
+
78
+ .btn-close {
79
+ forced-color-adjust: none;
80
+ background: ButtonText;
81
+ mask: var(--bs-btn-close-bg) center / 1em auto no-repeat;
82
+ filter: none;
83
+ opacity: 1;
84
+ }
85
+
86
+ .alert-dismissible .btn-close {
87
+ background: none;
88
+ mask: none;
89
+ }
90
+
91
+ .wui-topsearch-hit.is-active,
92
+ .country-dropdown-item.is-active,
93
+ .wui-mention-option.is-active {
94
+ outline-color: Highlight;
95
+ }
@@ -0,0 +1,59 @@
1
+ // Plain rules only: wui/_forced-colors.scss wraps this file in its media query.
2
+
3
+ // FC1: a field or an item in a scrolling list draws its focus ring inside its edge.
4
+ wui-datepicker:not([aria-invalid="true"]) .datepicker:not(.open) .datepicker-trigger:focus-visible,
5
+ wui-date-range:not([aria-invalid="true"]) .daterange:not(.open) .daterange-trigger:focus-visible,
6
+ .dropdown-search-input:focus-visible,
7
+ .wui-select-draft:focus-visible,
8
+ .wui-select-control:focus-within,
9
+ .timepicker-option:focus-visible,
10
+ .country-dropdown-item:focus-visible {
11
+ outline: var(--wui-focus-ring-width) solid Highlight;
12
+ outline-offset: calc(-1 * var(--wui-focus-ring-width));
13
+ }
14
+
15
+ .datepicker-day:focus-visible,
16
+ .datepicker-cell:focus-visible,
17
+ .country-toggle:focus-visible {
18
+ outline: var(--wui-focus-ring-width) solid Highlight;
19
+ outline-offset: var(--wui-focus-ring-offset);
20
+ }
21
+
22
+ // FC2: the edge of a panel, and the today mark drawn only by an inset shadow.
23
+ .datepicker-pop,
24
+ .daterange-pop,
25
+ .timepicker-pop,
26
+ .country-dropdown-menu,
27
+ .wui-select-menu,
28
+ .datepicker-day.is-today,
29
+ .datepicker-cell.is-today {
30
+ outline: 1px solid CanvasText;
31
+ outline-offset: -1px;
32
+ }
33
+
34
+ // FC3: a selected or active state with text and icons only is a system-colour fill.
35
+ .datepicker-day.is-selected,
36
+ .datepicker-day.is-range-start,
37
+ .datepicker-day.is-range-end,
38
+ .datepicker-cell.is-selected,
39
+ .timepicker-option.is-selected,
40
+ .country-dropdown-item.is-active,
41
+ .wui-select-option.is-active,
42
+ .wui-select-option.selected,
43
+ .wui-select-option[aria-selected='true'],
44
+ .wui-select-option[aria-disabled='true'].is-active {
45
+ background-color: Highlight;
46
+ color: HighlightText;
47
+ forced-color-adjust: none;
48
+ }
49
+
50
+ // The days between a range's ends have only a background rail on screen, which forced colours drop.
51
+ .datepicker-day.in-range {
52
+ outline: 1px dashed Highlight;
53
+ outline-offset: -1px;
54
+ }
55
+
56
+ // A Highlight ring on a Highlight fill disappears, so a focused selected option rings in the text colour.
57
+ .timepicker-option.is-selected:focus-visible {
58
+ outline-color: HighlightText;
59
+ }
@@ -0,0 +1,90 @@
1
+ // Plain rules only: wui/_forced-colors.scss wraps this file in its media query.
2
+
3
+ // FC1: focus is a border colour or an outline: none on the screen rule. Fields draw the ring inside the edge.
4
+ .form-control:focus-visible,
5
+ .form-select:focus-visible,
6
+ .input:focus-visible,
7
+ .select:focus-visible,
8
+ .textarea:focus-visible,
9
+ .input-bare:focus-visible,
10
+ .otp-field:focus-visible {
11
+ outline: var(--wui-focus-ring-width) solid Highlight;
12
+ outline-offset: calc(-1 * var(--wui-focus-ring-width));
13
+ }
14
+ .input-affixed:focus-within {
15
+ outline: var(--wui-focus-ring-width) solid Highlight;
16
+ outline-offset: calc(-1 * var(--wui-focus-ring-width));
17
+ }
18
+ .wui-dropdown-search:focus-within {
19
+ outline: var(--wui-focus-ring-width) solid Highlight;
20
+ outline-offset: calc(-1 * var(--wui-focus-ring-width));
21
+ }
22
+
23
+ // FC5: the native drawing of a checkbox, radio and select replaces the baked white mark.
24
+ .form-check-input,
25
+ .wui-check,
26
+ .wui-radio,
27
+ .select,
28
+ .form-select {
29
+ appearance: auto;
30
+ background-image: none;
31
+ }
32
+ .form-check-input[type="checkbox"]:checked,
33
+ .wui-check:checked,
34
+ .form-check-input[type="radio"]:checked,
35
+ .wui-radio:checked,
36
+ .form-check-input[type="checkbox"]:indeterminate,
37
+ .wui-check:indeterminate {
38
+ appearance: auto;
39
+ background-image: none;
40
+ }
41
+
42
+ // The switch keeps a drawn knob: its track and knob are restated in system colours after FC5 so they win.
43
+ .form-switch .form-check-input {
44
+ appearance: none;
45
+ forced-color-adjust: none;
46
+ border: 1px solid ButtonText;
47
+ background-color: Canvas;
48
+ background-image: radial-gradient(circle closest-side, ButtonText 78%, transparent 80%);
49
+ }
50
+ .form-switch .form-check-input:checked {
51
+ border-color: Highlight;
52
+ background-color: Highlight;
53
+ background-image: radial-gradient(circle closest-side, HighlightText 78%, transparent 80%);
54
+ }
55
+
56
+ // FC3: a selected chip is shown by a border colour and a fill only.
57
+ .choice-chip:has(input:checked) {
58
+ outline: 2px solid Highlight;
59
+ outline-offset: -2px;
60
+ }
61
+ // FC4: the chip's tick is a mask painted with currentColor, which forced colours replace.
62
+ .choice-chip:has(input:checked)::before {
63
+ background-color: CanvasText;
64
+ }
65
+
66
+ // FC6: fill-only pills and the dot inside a badge, which have no edge in forced colours.
67
+ .badge,
68
+ .status-label,
69
+ .chip {
70
+ outline: 1px solid CanvasText;
71
+ outline-offset: -1px;
72
+ }
73
+ .badge-dot::before {
74
+ background-color: CanvasText;
75
+ }
76
+
77
+ // Scanned control partials: field busy, inline edit, mention input, due date, pending.
78
+ .wui-mention-option.is-active {
79
+ outline: 2px solid Highlight;
80
+ outline-offset: -2px;
81
+ }
82
+
83
+ // Forced colours drop the busy spinner's gradients, so a busy field shows a dashed edge instead.
84
+ .input.wui-field-busy,
85
+ .textarea.wui-field-busy,
86
+ .form-control.wui-field-busy,
87
+ .select.wui-field-busy {
88
+ outline: 2px dashed CanvasText;
89
+ outline-offset: -2px;
90
+ }
@@ -0,0 +1,57 @@
1
+ // Plain rules only: wui/_forced-colors.scss wraps this file in its media query.
2
+
3
+ // Forced colours drop box-shadow, so the row edges and the pinned-cell edges are redrawn as borders.
4
+ .table-ledger tbody tr.is-selected {
5
+ outline: 2px solid Highlight;
6
+ outline-offset: -2px;
7
+ }
8
+ .table-ledger tbody tr.wui-row-active {
9
+ outline: 2px solid CanvasText;
10
+ outline-offset: -2px;
11
+ }
12
+ .table-ledger tbody tr[data-status] > td:first-child,
13
+ .table-ledger tbody tr[data-status] > th.wui-row-header:first-child,
14
+ .table-ledger tbody tr[data-wui-save-state] > td:first-child,
15
+ .table-ledger tbody tr[data-wui-save-state] > th.wui-row-header:first-child {
16
+ border-inline-start: 3px solid CanvasText;
17
+ }
18
+ .table-ledger > * > tr:not(.wui-row-expanded, .wui-group-row) > .wui-pin-start {
19
+ border-inline-end: 1px solid CanvasText;
20
+ }
21
+ .table-ledger > * > tr:not(.wui-row-expanded, .wui-group-row) > .wui-pin-end {
22
+ border-inline-start: 1px solid CanvasText;
23
+ }
24
+ .compare-table th.is-highlight,
25
+ .compare-table td.is-highlight {
26
+ outline: 2px solid Highlight;
27
+ outline-offset: -2px;
28
+ }
29
+
30
+ .wui-entry-grid-row.is-active {
31
+ outline: 2px solid Highlight;
32
+ outline-offset: -2px;
33
+ }
34
+ .wui-entry-grid-row.is-active > td:first-child {
35
+ border-inline-start: 3px solid CanvasText;
36
+ }
37
+ .wui-entry-grid-dot {
38
+ background-color: CanvasText;
39
+ }
40
+
41
+ .wui-split-item.is-selected,
42
+ .wui-split-item.is-active,
43
+ .wui-split-item.is-active:hover {
44
+ outline: 2px solid Highlight;
45
+ outline-offset: -2px;
46
+ }
47
+
48
+ .wui-sortable-ghost,
49
+ .wui-drop-tray {
50
+ outline: 1px solid CanvasText;
51
+ outline-offset: -1px;
52
+ }
53
+
54
+ .wui-skeleton-cell {
55
+ outline: 1px solid CanvasText;
56
+ outline-offset: -1px;
57
+ }
@@ -0,0 +1,77 @@
1
+ // Plain rules only: wui/_forced-colors.scss wraps this file in its media query.
2
+
3
+ // Forced colours drop box-shadow, so the selected option's edge is drawn as an outline.
4
+ .segmented-option:has(.segmented-input:checked) {
5
+ outline: 2px solid Highlight;
6
+ outline-offset: -2px;
7
+ }
8
+
9
+ // Focus rings: forced colours drop the coloured ring, so each focused control gets a system-colour outline.
10
+ .wui-descs-list .wui-descs-link:focus-visible {
11
+ outline: var(--wui-focus-ring-width) solid Highlight;
12
+ outline-offset: var(--wui-focus-ring-offset);
13
+ }
14
+ a.step:focus-visible,
15
+ button.step:focus-visible {
16
+ outline: var(--wui-focus-ring-width) solid Highlight;
17
+ outline-offset: var(--wui-focus-ring-offset);
18
+ }
19
+ a.wui-onboarding-label:focus-visible {
20
+ outline: var(--wui-focus-ring-width) solid Highlight;
21
+ outline-offset: var(--wui-focus-ring-offset);
22
+ }
23
+ .wui-error-summary:focus {
24
+ outline: var(--wui-focus-ring-width) solid Highlight;
25
+ outline-offset: var(--wui-focus-ring-offset);
26
+ }
27
+
28
+ // Rings and edges that were drawn with box-shadow.
29
+ .timeline--progress .timeline-dot,
30
+ .timeline--progress .timeline-item.is-upcoming .timeline-dot {
31
+ outline: 1px solid CanvasText;
32
+ outline-offset: -1px;
33
+ }
34
+ .step.active .step-circle {
35
+ outline: 1px solid CanvasText;
36
+ outline-offset: -1px;
37
+ }
38
+ a.step:hover .step-circle,
39
+ button.step:hover .step-circle {
40
+ outline: 1px solid CanvasText;
41
+ outline-offset: -1px;
42
+ }
43
+ a.step.done:hover .step-circle,
44
+ button.step.done:hover .step-circle {
45
+ outline: 1px solid CanvasText;
46
+ outline-offset: -1px;
47
+ }
48
+ .plan-card.current {
49
+ outline: 1px solid Highlight;
50
+ outline-offset: -1px;
51
+ }
52
+ .kpi.kpi-accent,
53
+ .alert,
54
+ .wui-banner,
55
+ .wui-accordion-item {
56
+ outline: 1px solid CanvasText;
57
+ outline-offset: -1px;
58
+ }
59
+
60
+ // Bars and tracks: the fill takes the system highlight colour.
61
+ .progress {
62
+ outline: 1px solid CanvasText;
63
+ }
64
+ .progress-bar {
65
+ background-color: Highlight;
66
+ }
67
+ .skeleton {
68
+ outline: 1px solid CanvasText;
69
+ outline-offset: -1px;
70
+ }
71
+
72
+ // The selected mark keeps its contrast only when the system colours are used directly.
73
+ .wui-score-scale__item--selected {
74
+ background-color: Highlight;
75
+ color: HighlightText;
76
+ forced-color-adjust: none;
77
+ }
@@ -0,0 +1,63 @@
1
+ // Plain rules only: wui/_forced-colors.scss wraps this file in its media query.
2
+
3
+ // FC2: the avatar's edge is a box-shadow ring, which forced colours drop.
4
+ .avatar-badge,
5
+ .avatar-ring,
6
+ .avatar-group > .avatar {
7
+ outline: 1px solid CanvasText;
8
+ outline-offset: -1px;
9
+ }
10
+ .avatar-status {
11
+ border: 2px solid Canvas;
12
+ background-color: CanvasText;
13
+ }
14
+ .avatar-status-offline {
15
+ background-color: Canvas;
16
+ border-color: CanvasText;
17
+ }
18
+
19
+ // FC3 and FC6: the carousel dot is a ring with a filled mark on ::before.
20
+ .wui-carousel-dot {
21
+ border: 1px solid CanvasText;
22
+ background-color: Canvas;
23
+ }
24
+ .wui-carousel-dot::before {
25
+ background-color: CanvasText;
26
+ }
27
+ .wui-carousel-dot[aria-current="true"]::before {
28
+ background-color: Highlight;
29
+ }
30
+
31
+ // The filled share of a star is its width, so the value does not rest on colour alone.
32
+ .wui-rating-fill {
33
+ color: Highlight;
34
+ }
35
+ .wui-rating-glyphs {
36
+ color: GrayText;
37
+ }
38
+
39
+ // The series colour is the swatch's own fill; forced colours must not repaint it.
40
+ .wui-chart-legend-swatch,
41
+ .wui-chart-tooltip-swatch {
42
+ forced-color-adjust: none;
43
+ outline: 1px solid CanvasText;
44
+ }
45
+ .wui-chart-canvas {
46
+ forced-color-adjust: none;
47
+ }
48
+
49
+ // FC2 on the tooltip box; FC6 skeleton as a pill.
50
+ .wui-chart-tooltip,
51
+ .wui-chart-skeleton {
52
+ outline: 1px solid CanvasText;
53
+ outline-offset: -1px;
54
+ }
55
+
56
+ // FC6 bar: the track is outlined and the bar is filled with Highlight.
57
+ .wui-attach-progress {
58
+ outline: 1px solid CanvasText;
59
+ outline-offset: -1px;
60
+ }
61
+ .wui-attach-progress .progress-bar {
62
+ background-color: Highlight;
63
+ }
@@ -0,0 +1,40 @@
1
+ // Plain rules only: wui/_forced-colors.scss wraps this file in its media query.
2
+
3
+ .app-tab-indicator {
4
+ background: Highlight;
5
+ }
6
+
7
+ .app-nav-item.active,
8
+ .wui-nav-list-item.is-active,
9
+ .wui-account-switcher .wui-account-switcher-option.is-active,
10
+ .wui-tabbar-item.active,
11
+ .app-tabs-pills .app-tab.active {
12
+ outline: 2px solid Highlight;
13
+ outline-offset: -2px;
14
+ }
15
+
16
+ .tpg-page.is-active {
17
+ background-color: Highlight;
18
+ color: HighlightText;
19
+ forced-color-adjust: none;
20
+ }
21
+
22
+ .app-sidebar,
23
+ .app-topbar,
24
+ .wui-tabbar,
25
+ .wui-usermenu-trigger-outlined {
26
+ outline: 1px solid CanvasText;
27
+ outline-offset: -1px;
28
+ }
29
+
30
+ .app-nav-badge,
31
+ .wui-tabbar-badge,
32
+ .wui-bell-count {
33
+ outline: 1px solid CanvasText;
34
+ outline-offset: -1px;
35
+ }
36
+
37
+ .wui-bell-dot,
38
+ .wui-nav-list-dot {
39
+ background-color: CanvasText;
40
+ }