@xenosystem/elements-react 0.0.9 → 0.0.11

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 (66) hide show
  1. package/README.md +41 -41
  2. package/dist/containers/Avatar.d.ts +8 -1
  3. package/dist/containers/Avatar.js +3 -3
  4. package/dist/containers/BulkActionBar.d.ts +20 -0
  5. package/dist/containers/BulkActionBar.js +8 -0
  6. package/dist/containers/DataTable.d.ts +50 -6
  7. package/dist/containers/DataTable.js +185 -11
  8. package/dist/containers/Table.d.ts +2 -2
  9. package/dist/containers/Table.js +4 -3
  10. package/dist/content/Kbd.d.ts +16 -0
  11. package/dist/content/Kbd.js +8 -0
  12. package/dist/index.d.ts +12 -1
  13. package/dist/index.js +12 -1
  14. package/dist/nav/Breadcrumb.d.ts +22 -0
  15. package/dist/nav/Breadcrumb.js +10 -0
  16. package/dist/overlays/CommandPalette.d.ts +43 -0
  17. package/dist/overlays/CommandPalette.js +96 -0
  18. package/dist/overlays/Popover.d.ts +27 -12
  19. package/dist/overlays/Popover.js +101 -7
  20. package/dist/overlays/ShortcutsSheet.d.ts +21 -0
  21. package/dist/overlays/ShortcutsSheet.js +7 -0
  22. package/dist/overlays/Tooltip.d.ts +21 -10
  23. package/dist/overlays/Tooltip.js +93 -9
  24. package/dist/shortcuts.d.ts +45 -0
  25. package/dist/shortcuts.js +164 -0
  26. package/dist/status/Banner.d.ts +23 -0
  27. package/dist/status/Banner.js +8 -0
  28. package/dist/status/Toast.d.ts +28 -0
  29. package/dist/status/Toast.js +11 -0
  30. package/dist/uiTree.d.ts +53 -0
  31. package/dist/uiTree.js +197 -0
  32. package/dist/useDialog.d.ts +3 -1
  33. package/dist/useDialog.js +37 -1
  34. package/dist/useMenu.js +31 -1
  35. package/dist/useToastQueue.d.ts +29 -0
  36. package/dist/useToastQueue.js +73 -0
  37. package/package.json +10 -4
  38. package/src/chrome-separated.css +133 -72
  39. package/src/chrome-unified.css +48 -16
  40. package/src/containers/Badges.css +52 -28
  41. package/src/containers/avatar.css +7 -2
  42. package/src/containers/bulk-action-bar.css +45 -0
  43. package/src/containers/card.css +14 -13
  44. package/src/containers/chip.css +1 -1
  45. package/src/containers/panel.css +16 -53
  46. package/src/containers/table.css +107 -1
  47. package/src/content/kbd.css +33 -0
  48. package/src/content/model-picker.css +2 -1
  49. package/src/controls.css +25 -11
  50. package/src/fonts.css +8 -2
  51. package/src/forced-colors.css +41 -0
  52. package/src/layout-platform.css +473 -0
  53. package/src/mcp-app-platform.css +1019 -0
  54. package/src/nav/breadcrumb.css +84 -0
  55. package/src/overlays/command-palette.css +157 -0
  56. package/src/overlays/menu.css +25 -16
  57. package/src/overlays/modal.css +9 -27
  58. package/src/overlays/onboarding.css +1305 -0
  59. package/src/overlays/segmented-control.css +6 -3
  60. package/src/overlays/shortcuts-sheet.css +55 -0
  61. package/src/overlays/tooltip.css +22 -4
  62. package/src/size.css +40 -0
  63. package/src/status/banner.css +83 -0
  64. package/src/status/toast.css +95 -0
  65. package/src/xeno-elements.css +63 -44
  66. package/src/xeno-theme.css +75 -31
@@ -9,13 +9,14 @@
9
9
  flex-direction: column;
10
10
  padding: var(--xeno-chrome-card-pad);
11
11
  background: var(--xeno-chrome-card-bg);
12
- border: var(--xeno-chrome-card-border);
12
+ border: 1px solid var(--xeno-border);
13
13
  border-radius: var(--xeno-chrome-card-radius);
14
+ box-shadow: none;
14
15
  color: var(--xeno-text);
15
16
  }
16
17
 
17
18
  .xeno-card[data-variant='elevated'] {
18
- background: var(--xeno-chrome-card-elevated-bg);
19
+ background: var(--xeno-elevated);
19
20
  box-shadow: var(--xeno-chrome-card-shadow);
20
21
  }
21
22
 
@@ -24,25 +25,25 @@
24
25
  min-width: 0;
25
26
  }
26
27
 
27
- /* Header — a titled slot split from the body by an inset hairline. */
28
+ /* Header — a titled slot split from the body by a 1px hairline. */
28
29
  .xeno-card-header {
29
- margin-bottom: 11px;
30
- padding-bottom: 11px;
31
- border-bottom: var(--xeno-chrome-divider);
30
+ margin-bottom: 10px;
31
+ padding-bottom: 10px;
32
+ border-bottom: 1px solid var(--xeno-border);
32
33
  color: var(--xeno-text);
33
- font-size: 14px;
34
+ font-size: 13.5px;
34
35
  font-weight: 600;
35
- line-height: 1.2;
36
+ line-height: 1.25;
36
37
  }
37
38
 
38
39
  /* Footer — a trailing slot, mirror of the header, quieter text. */
39
40
  .xeno-card-footer {
40
- margin-top: 11px;
41
- padding-top: 11px;
42
- border-top: var(--xeno-chrome-divider);
41
+ margin-top: 10px;
42
+ padding-top: 10px;
43
+ border-top: 1px solid var(--xeno-border);
43
44
  color: var(--xeno-muted-text);
44
- font-size: 13px;
45
- line-height: 1.3;
45
+ font-size: 12px;
46
+ line-height: 1.35;
46
47
  }
47
48
 
48
49
  /* Interactive — the sole hover-lift XENO allows. Border brighten is safe without motion. */
@@ -11,7 +11,7 @@
11
11
  color: var(--xeno-text);
12
12
  background: transparent;
13
13
  border: 1px solid var(--xeno-border);
14
- border-radius: var(--xeno-radius-control);
14
+ border-radius: var(--xeno-chrome-chip-radius, var(--xeno-radius-control));
15
15
  font-family: inherit;
16
16
  font-size: var(--xeno-font, 14px);
17
17
  font-weight: 500;
@@ -1,36 +1,27 @@
1
1
  /*
2
- * Panel — a chrome stack: heading, body, footer.
2
+ * Panel — the reference flush-framed pane (Motion v12, Corpus v9, Creator v3): a single crisp
3
+ * container with a 1px `--xeno-border` outline, flush `--xeno-chrome-plate` header/footer strips
4
+ * separated by 1px hairlines, and a scrollable `--xeno-chrome-body` content well.
3
5
  *
4
- * Every construction value comes from the `--xeno-chrome-*` tokens, so the SAME DOM renders as either
5
- * chrome. Under `separated` (the default, required by DESIGN_SYSTEM.md §"Panel Structure") the wrapper
6
- * paints the page colour and the three plates float on it with a 2px gap. Under `unified` the gap
7
- * collapses to 0, the plates go transparent, the wrapper paints the surface and clips them, and the
8
- * dividers come back — one card, exactly as this set rendered before the chrome axis existed.
9
- *
10
- * Nothing here knows a theme exists. That is the point: no component is built twice.
11
- *
12
- * Scrolling is chrome-independent — give the panel a bounded height and the body scrolls on its own
13
- * (`min-height: 0` lets a flex child shrink below its content).
6
+ * Replaces the superseded pre-reference double-framed `Plate` tray (`6px` outer canvas inset +
7
+ * `2px` gaps + frosted blur). Both Industrial (`6px` radius, subtle `--xeno-shadow`, surface header
8
+ * strip over page body) and Soft (`12px` radius, unified surface) render from this single DOM via
9
+ * `--xeno-chrome-*` tokens.
14
10
  */
15
11
  .xeno-panel {
16
12
  display: flex;
17
13
  flex-direction: column;
18
- gap: var(--xeno-chrome-gap);
19
- padding: var(--xeno-chrome-inset);
14
+ gap: 0;
15
+ padding: 0;
20
16
  min-height: 0;
21
17
  background: var(--xeno-chrome-shell);
22
- /* `separated` draws no border on the wrapper — the plates carry their own. `unified` needs one,
23
- and gets it because the shell is painted and clipped. Both read the same token. */
24
- border: 1px solid var(--xeno-chrome-border);
18
+ border: 1px solid var(--xeno-border);
25
19
  border-radius: var(--xeno-chrome-radius);
20
+ box-shadow: none;
26
21
  overflow: hidden;
27
22
  color: var(--xeno-text);
28
23
  }
29
24
 
30
- /*
31
- * Heading plate. §"Panel Structure" fixes it at 34px so headings line up with sidebar navigation
32
- * across a product; the padding sets the text inside that rather than defining the height.
33
- */
34
25
  .xeno-panel-header {
35
26
  display: flex;
36
27
  align-items: center;
@@ -40,15 +31,9 @@
40
31
  min-height: var(--xeno-chrome-panel-header-min-h);
41
32
  padding: var(--xeno-chrome-panel-header-pad);
42
33
  background: var(--xeno-chrome-plate);
43
- -webkit-backdrop-filter: var(--xeno-chrome-plate-filter);
44
- backdrop-filter: var(--xeno-chrome-plate-filter);
45
- border-bottom: var(--xeno-chrome-divider);
34
+ border-bottom: 1px solid var(--xeno-border);
46
35
  }
47
36
 
48
- /*
49
- * §"Headers and Footers": the header text is "small, uppercase, with letter-spacing. It functions as
50
- * a label, not a headline." Matches the convention the code-block language chip already uses.
51
- */
52
37
  .xeno-panel-title {
53
38
  min-width: 0;
54
39
  color: var(--xeno-chrome-title-color);
@@ -69,7 +54,7 @@
69
54
  flex: 0 0 auto;
70
55
  }
71
56
 
72
- /* Body plate — the scroll region. */
57
+ /* Body — the scroll region. */
73
58
  .xeno-panel-body {
74
59
  flex: 1 1 auto;
75
60
  min-height: 0;
@@ -79,14 +64,7 @@
79
64
  color: var(--xeno-text);
80
65
  }
81
66
 
82
- /*
83
- * Footer plate — §"Headers and Footers": "Footer padding matches header padding exactly. Headers and
84
- * footers are visually symmetric." Every box metric below is the header's, duplicated deliberately
85
- * rather than shared through a common class: the symmetry is a design rule a future change must break
86
- * on purpose, and a shared class would let one drift silently while the other did not.
87
- *
88
- * `space-between` gives the dismiss-left / confirm-right arrangement the products already use.
89
- */
67
+ /* Footer — symmetric with the header strip. */
90
68
  .xeno-panel-footer {
91
69
  display: flex;
92
70
  align-items: center;
@@ -96,28 +74,13 @@
96
74
  min-height: var(--xeno-chrome-panel-header-min-h);
97
75
  padding: var(--xeno-chrome-panel-header-pad);
98
76
  background: var(--xeno-chrome-plate);
99
- border-top: var(--xeno-chrome-divider);
77
+ border-top: 1px solid var(--xeno-border);
100
78
  }
101
79
 
102
- /*
103
- * §4 "Radius Is Per-Corner, Not Per-Element": a corner is rounded only where the surface meets
104
- * NOTHING. Each plate faces its neighbour across the 2px gap, so the facing corners are SQUARE — a
105
- * uniform radius on every plate is the tell that this section was skipped, and it was.
106
- *
107
- * Declared on first/last child rather than per plate so a stack with no header, or no footer, still
108
- * presents a rounded outer edge instead of a square one against the rounded shell.
109
- */
80
+ /* Slabs sit flush inside the clipped outer border-radius — never double-rounded. */
110
81
  .xeno-panel > * {
111
82
  border-radius: 0;
112
83
  }
113
- .xeno-panel > :first-child {
114
- border-top-left-radius: var(--xeno-chrome-radius-plate);
115
- border-top-right-radius: var(--xeno-chrome-radius-plate);
116
- }
117
- .xeno-panel > :last-child {
118
- border-bottom-left-radius: var(--xeno-chrome-radius-plate);
119
- border-bottom-right-radius: var(--xeno-chrome-radius-plate);
120
- }
121
84
 
122
85
  .xeno-panel-body:focus-visible {
123
86
  outline: 1px solid var(--xeno-text);
@@ -22,7 +22,12 @@
22
22
  .xeno-th {
23
23
  color: var(--xeno-muted);
24
24
  font-weight: 600;
25
- font-size: 0.85em;
25
+ /* On the chrome axis: Industrial draws the references' header (11px uppercase labels, tracked, on a
26
+ tinted header row), Soft its original small mixed-case header on the page. */
27
+ font-size: var(--xeno-chrome-th-size, 0.85em);
28
+ text-transform: var(--xeno-chrome-th-transform, none);
29
+ letter-spacing: var(--xeno-chrome-th-spacing, normal);
30
+ background: var(--xeno-chrome-th-bg, transparent);
26
31
  }
27
32
 
28
33
  /* Bottom border only on rows — the sole rule; header row divider comes for free. */
@@ -92,6 +97,107 @@
92
97
  text-align: center;
93
98
  }
94
99
 
100
+ /* Sticky header, sortable column triggers, and selection column. */
101
+ .xeno-table[data-sticky-header='true'] .xeno-th {
102
+ position: sticky;
103
+ top: 0;
104
+ z-index: 2;
105
+ }
106
+
107
+ .xeno-th-sort {
108
+ display: inline-flex;
109
+ align-items: center;
110
+ gap: 5px;
111
+ padding: 0;
112
+ border: 0;
113
+ background: transparent;
114
+ color: inherit;
115
+ font: inherit;
116
+ letter-spacing: inherit;
117
+ text-transform: inherit;
118
+ cursor: pointer;
119
+ }
120
+ .xeno-th-sort:hover {
121
+ color: var(--xeno-text);
122
+ }
123
+ .xeno-th-sort:focus-visible {
124
+ outline: 2px solid var(--xeno-info);
125
+ outline-offset: 2px;
126
+ border-radius: 2px;
127
+ }
128
+ .xeno-th-sort-mark {
129
+ display: inline-flex;
130
+ align-items: center;
131
+ opacity: 0.72;
132
+ }
133
+
134
+ .xeno-th-resizable {
135
+ position: relative;
136
+ }
137
+
138
+ .xeno-th-resizer {
139
+ position: absolute;
140
+ top: 4px;
141
+ right: 0;
142
+ bottom: 4px;
143
+ width: 6px;
144
+ cursor: col-resize;
145
+ user-select: none;
146
+ touch-action: none;
147
+ }
148
+ .xeno-th-resizer::after {
149
+ content: '';
150
+ position: absolute;
151
+ top: 2px;
152
+ bottom: 2px;
153
+ right: 2px;
154
+ width: 1px;
155
+ background: transparent;
156
+ transition: background var(--xeno-dur) ease;
157
+ }
158
+ .xeno-th-resizer:hover::after,
159
+ .xeno-th-resizer:focus-visible::after {
160
+ background: var(--xeno-muted);
161
+ }
162
+ .xeno-th-resizer:focus-visible {
163
+ outline: none;
164
+ }
165
+
166
+ .xeno-th-select,
167
+ .xeno-td-select {
168
+ width: 36px;
169
+ padding-inline: 8px;
170
+ }
171
+
172
+ .xeno-tr[tabindex='0']:focus-visible {
173
+ outline: 2px solid var(--xeno-info);
174
+ outline-offset: -2px;
175
+ }
176
+
177
+ .xeno-table-scroll {
178
+ width: 100%;
179
+ overflow-x: auto;
180
+ }
181
+
182
+ .xeno-table-viewport {
183
+ width: 100%;
184
+ overflow: auto;
185
+ border: 1px solid var(--xeno-border);
186
+ border-radius: var(--xeno-radius-md);
187
+ background: var(--xeno-viewport);
188
+ }
189
+
190
+ .xeno-table[data-virtualized='true'] {
191
+ table-layout: fixed;
192
+ }
193
+
194
+ .xeno-table[data-virtualized='true'] .xeno-th,
195
+ .xeno-table[data-virtualized='true'] .xeno-td {
196
+ overflow: hidden;
197
+ text-overflow: ellipsis;
198
+ white-space: nowrap;
199
+ }
200
+
95
201
  @media (prefers-reduced-motion: no-preference) {
96
202
  .xeno-tr {
97
203
  transition: background var(--xeno-dur) var(--xeno-ease);
@@ -0,0 +1,33 @@
1
+ .xeno-kbd-group {
2
+ display: inline-flex;
3
+ align-items: center;
4
+ gap: 3px;
5
+ vertical-align: middle;
6
+ }
7
+
8
+ .xeno-kbd {
9
+ display: inline-flex;
10
+ align-items: center;
11
+ justify-content: center;
12
+ min-width: 18px;
13
+ height: 18px;
14
+ padding: 0 5px;
15
+ box-sizing: border-box;
16
+ border-radius: var(--xeno-radius-xs);
17
+ border: 1px solid var(--xeno-border);
18
+ background: var(--xeno-control);
19
+ color: var(--xeno-muted-text);
20
+ font-family: var(--xeno-font-mono);
21
+ font-size: 10px;
22
+ font-weight: 500;
23
+ line-height: 1;
24
+ white-space: nowrap;
25
+ user-select: none;
26
+ }
27
+
28
+ .xeno-kbd[data-size='md'] {
29
+ min-width: 22px;
30
+ height: 20px;
31
+ padding: 0 6px;
32
+ font-size: 11px;
33
+ }
@@ -47,7 +47,8 @@
47
47
  background: var(--xeno-elevated);
48
48
  border: 1px solid var(--xeno-border);
49
49
  border-radius: var(--xeno-radius-md);
50
- box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.35);
50
+ /* Industrial: the references' POP depth; Soft keeps its value (2026-11-22). */
51
+ box-shadow: var(--xeno-chrome-pop, 0 8px 24px -6px rgba(0, 0, 0, 0.35));
51
52
  outline: none;
52
53
  animation: xeno-mp-in var(--xeno-dur) var(--xeno-ease);
53
54
  }
package/src/controls.css CHANGED
@@ -15,13 +15,17 @@
15
15
  padding: 0 var(--xeno-padx, 12px);
16
16
  font-family: inherit;
17
17
  font-size: var(--xeno-font, 14px);
18
- font-weight: 500;
18
+ /* Chrome axis (2026-11-22): the references set every non-primary button at 400 (Agent, Options,
19
+ Open, the nav tabs) and only the primary at 500; Soft keeps 500 throughout. */
20
+ font-weight: var(--xeno-chrome-btn-weight, 500);
19
21
  line-height: 1;
20
22
  white-space: nowrap;
21
23
  color: var(--xeno-text);
22
24
  background: transparent;
23
25
  border: 1px solid transparent;
24
- border-radius: var(--xeno-radius-control);
26
+ /* The construction's corner (Industrial 5px, Soft 8px). Read since 2026-11-09; before, the chrome
27
+ token existed and every button drew the control radius regardless. */
28
+ border-radius: var(--xeno-chrome-btn-radius, var(--xeno-radius-control));
25
29
  cursor: pointer;
26
30
  user-select: none;
27
31
  /* The press. It is asymmetric on purpose: going DOWN has to be immediate, because that is the
@@ -60,17 +64,18 @@
60
64
  cursor: progress;
61
65
  }
62
66
 
63
- /* Emphasis is surface lightness + text brightness, never hue. Both readings live on the chrome axis:
64
- `separated` uses the lightest SURFACE with bright text (the reference); `unified` keeps the inverted
65
- fill this set shipped. The component does not know which. */
67
+ /* Emphasis is surface lightness + text brightness, never hue: the INK fill, the brightest ink as a
68
+ surface with the page's darkest value as text. Both constructions draw it this way since 2026-11-09
69
+ (the owner's design references all do: Share, Export, Start run), so it is off the chrome axis. */
66
70
  .xeno-btn[data-variant='primary'] {
67
- background: var(--xeno-chrome-btn-primary-bg);
68
- color: var(--xeno-chrome-btn-primary-fg);
71
+ background: var(--xeno-text);
72
+ color: var(--xeno-on-accent);
73
+ font-weight: 500;
69
74
  }
70
75
  .xeno-btn[data-variant='primary']:hover:not(:disabled) {
71
76
  background:
72
77
  linear-gradient(var(--xeno-hover), var(--xeno-hover)),
73
- var(--xeno-chrome-btn-primary-bg);
78
+ var(--xeno-text);
74
79
  }
75
80
  .xeno-btn[data-variant='secondary'] {
76
81
  background: var(--xeno-control);
@@ -95,6 +100,9 @@
95
100
  }
96
101
  .xeno-btn[data-variant='outline'] {
97
102
  border-color: var(--xeno-border);
103
+ /* Chrome axis (2026-11-22): the references fill outline buttons with the raised surface (white on
104
+ the warm light ground: Agent, Options, Open); Soft keeps them transparent. */
105
+ background: var(--xeno-chrome-btn-outline-bg, transparent);
98
106
  }
99
107
  .xeno-btn[data-variant='outline']:hover:not(:disabled) {
100
108
  background: var(--xeno-hover);
@@ -369,7 +377,9 @@
369
377
  gap: var(--xeno-gap, 6px);
370
378
  height: var(--xeno-h, 32px);
371
379
  padding: 0 var(--xeno-padx, 12px);
372
- background: var(--xeno-canvas);
380
+ /* The FIELD surface: recessed in dark (the page value, as before), white in light, the references'
381
+ inputs are white on a warm ground, never the frame colour. */
382
+ background: var(--xeno-field);
373
383
  border: 1px solid var(--xeno-border);
374
384
  border-radius: var(--xeno-radius-md);
375
385
  color: var(--xeno-text);
@@ -406,11 +416,15 @@
406
416
 
407
417
  /* ── Textarea ────────────────────────────────────────────────────────────────────── */
408
418
  .xeno-textarea {
419
+ /* border-box: `width: 100%` plus 24px of padding and 2px of border otherwise overflows its
420
+ container by 26px (seen 2026-11-09 in the reference compositions: the prompt card's textarea
421
+ crossed the card's right edge). */
422
+ box-sizing: border-box;
409
423
  width: 100%;
410
424
  padding: 10px 12px;
411
- background: var(--xeno-canvas);
425
+ background: var(--xeno-field);
412
426
  border: 1px solid var(--xeno-border);
413
- border-radius: var(--xeno-radius-card);
427
+ border-radius: var(--xeno-chrome-textarea-radius, var(--xeno-radius-card));
414
428
  color: var(--xeno-text);
415
429
  font: inherit;
416
430
  font-size: 15px;
package/src/fonts.css CHANGED
@@ -16,14 +16,20 @@
16
16
  * A product that skips this gets the fallback stack below and should know that it has.
17
17
  */
18
18
  @import '@fontsource-variable/inter/index.css';
19
+ /* Industrial's face since 2026-11-22: DM Sans + DM Mono, the typeface of 4 of the owner's 5 reference
20
+ designs (Corpus, Creator, Desktop, Workshop; Motion's is Inter). Both SIL OFL 1.1. Soft keeps Inter. */
21
+ @import '@fontsource-variable/dm-sans/index.css';
22
+ @import '@fontsource/dm-mono/400.css';
23
+ @import '@fontsource/dm-mono/500.css';
19
24
 
20
25
  .xeno {
21
26
  /*
22
27
  * `--xeno-font-*` and NOT `--xeno-text-*`. That prefix is already the colour ramp, and reusing it
23
28
  * would silently overwrite `--xeno-text` app-wide — a documented failure, not a hypothetical.
29
+ * The face itself is on the chrome axis (`--xeno-chrome-font-*`); the fallback is Inter, as before.
24
30
  */
25
- --xeno-font-sans: 'Inter Variable', 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
26
- --xeno-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
31
+ --xeno-font-sans: var(--xeno-chrome-font-sans, 'Inter Variable', 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif);
32
+ --xeno-font-mono: var(--xeno-chrome-font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
27
33
 
28
34
  font-family: var(--xeno-font-sans);
29
35
  /* cv11 disambiguates 1/l/I — the one that matters most in dense UI and in code-adjacent labels. */
@@ -0,0 +1,41 @@
1
+ /*
2
+ * Windows High Contrast / Forced Colors (WCAG 2.2 / WAI-ARIA compliance).
3
+ *
4
+ * When the OS enables forced-colors, background tints and box-shadows disappear. Every interactive
5
+ * boundary, selected state, badge, card, panel, dialog, and focus ring falls back cleanly to system
6
+ * colors (`CanvasText`, `Highlight`, `ButtonBorder`) so zero controls lose their shape or state.
7
+ */
8
+ @media (forced-colors: active) {
9
+ .xeno-btn,
10
+ .xeno-icon-btn,
11
+ .xeno-input,
12
+ .xeno-textarea,
13
+ .xeno-card,
14
+ .xeno-panel,
15
+ .xeno-modal,
16
+ .xeno-palette,
17
+ .xeno-popover-panel,
18
+ .xeno-toast,
19
+ .xeno-banner,
20
+ .xeno-badge,
21
+ .xeno-statuspill,
22
+ .xeno-chip,
23
+ .xeno-kbd,
24
+ .xeno-bulk-bar {
25
+ border: 1px solid ButtonBorder;
26
+ forced-color-adjust: auto;
27
+ }
28
+
29
+ .xeno-btn[data-variant='primary'],
30
+ .xeno-segmented-option[aria-checked='true'],
31
+ .xeno-palette-item[data-active='true'],
32
+ .xeno-tr[data-selected='true'] {
33
+ outline: 2px solid Highlight;
34
+ outline-offset: -2px;
35
+ }
36
+
37
+ :focus-visible {
38
+ outline: 2px solid Highlight !important;
39
+ outline-offset: 2px;
40
+ }
41
+ }