@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.
- package/README.md +41 -41
- package/dist/containers/Avatar.d.ts +8 -1
- package/dist/containers/Avatar.js +3 -3
- package/dist/containers/BulkActionBar.d.ts +20 -0
- package/dist/containers/BulkActionBar.js +8 -0
- package/dist/containers/DataTable.d.ts +50 -6
- package/dist/containers/DataTable.js +185 -11
- package/dist/containers/Table.d.ts +2 -2
- package/dist/containers/Table.js +4 -3
- package/dist/content/Kbd.d.ts +16 -0
- package/dist/content/Kbd.js +8 -0
- package/dist/index.d.ts +12 -1
- package/dist/index.js +12 -1
- package/dist/nav/Breadcrumb.d.ts +22 -0
- package/dist/nav/Breadcrumb.js +10 -0
- package/dist/overlays/CommandPalette.d.ts +43 -0
- package/dist/overlays/CommandPalette.js +96 -0
- package/dist/overlays/Popover.d.ts +27 -12
- package/dist/overlays/Popover.js +101 -7
- package/dist/overlays/ShortcutsSheet.d.ts +21 -0
- package/dist/overlays/ShortcutsSheet.js +7 -0
- package/dist/overlays/Tooltip.d.ts +21 -10
- package/dist/overlays/Tooltip.js +93 -9
- package/dist/shortcuts.d.ts +45 -0
- package/dist/shortcuts.js +164 -0
- package/dist/status/Banner.d.ts +23 -0
- package/dist/status/Banner.js +8 -0
- package/dist/status/Toast.d.ts +28 -0
- package/dist/status/Toast.js +11 -0
- package/dist/uiTree.d.ts +53 -0
- package/dist/uiTree.js +197 -0
- package/dist/useDialog.d.ts +3 -1
- package/dist/useDialog.js +37 -1
- package/dist/useMenu.js +31 -1
- package/dist/useToastQueue.d.ts +29 -0
- package/dist/useToastQueue.js +73 -0
- package/package.json +10 -4
- package/src/chrome-separated.css +133 -72
- package/src/chrome-unified.css +48 -16
- package/src/containers/Badges.css +52 -28
- package/src/containers/avatar.css +7 -2
- package/src/containers/bulk-action-bar.css +45 -0
- package/src/containers/card.css +14 -13
- package/src/containers/chip.css +1 -1
- package/src/containers/panel.css +16 -53
- package/src/containers/table.css +107 -1
- package/src/content/kbd.css +33 -0
- package/src/content/model-picker.css +2 -1
- package/src/controls.css +25 -11
- package/src/fonts.css +8 -2
- package/src/forced-colors.css +41 -0
- package/src/layout-platform.css +473 -0
- package/src/mcp-app-platform.css +1019 -0
- package/src/nav/breadcrumb.css +84 -0
- package/src/overlays/command-palette.css +157 -0
- package/src/overlays/menu.css +25 -16
- package/src/overlays/modal.css +9 -27
- package/src/overlays/onboarding.css +1305 -0
- package/src/overlays/segmented-control.css +6 -3
- package/src/overlays/shortcuts-sheet.css +55 -0
- package/src/overlays/tooltip.css +22 -4
- package/src/size.css +40 -0
- package/src/status/banner.css +83 -0
- package/src/status/toast.css +95 -0
- package/src/xeno-elements.css +63 -44
- package/src/xeno-theme.css +75 -31
|
@@ -65,8 +65,10 @@
|
|
|
65
65
|
align-items: stretch;
|
|
66
66
|
gap: var(--xeno-seg-gap);
|
|
67
67
|
padding: var(--xeno-seg-pad);
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
/* Track and thumb are on the chrome axis: Industrial a borderless hover-tinted well with a raised
|
|
69
|
+
plate (the owner's references), Soft its outlined track. */
|
|
70
|
+
background: var(--xeno-chrome-seg-track, var(--xeno-surface));
|
|
71
|
+
border: 1px solid var(--xeno-chrome-seg-track-border, var(--xeno-border));
|
|
70
72
|
border-radius: var(--xeno-radius-md);
|
|
71
73
|
/* The travel itself: the index slides, and everything computed from it slides with it. */
|
|
72
74
|
transition: --xeno-seg-index var(--xeno-seg-dur) var(--xeno-seg-ease);
|
|
@@ -87,7 +89,8 @@
|
|
|
87
89
|
var(--xeno-seg-count, 1)
|
|
88
90
|
);
|
|
89
91
|
translate: calc(var(--xeno-seg-index, 0) * (100% + var(--xeno-seg-gap))) 0;
|
|
90
|
-
background: var(--xeno-control);
|
|
92
|
+
background: var(--xeno-chrome-seg-thumb, var(--xeno-control));
|
|
93
|
+
box-shadow: var(--xeno-chrome-seg-thumb-shadow, none);
|
|
91
94
|
border-radius: var(--xeno-radius-xs);
|
|
92
95
|
pointer-events: none;
|
|
93
96
|
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
.xeno-shortcuts-modal {
|
|
2
|
+
width: min(620px, calc(100vw - 32px));
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.xeno-shortcuts-grid {
|
|
6
|
+
display: grid;
|
|
7
|
+
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
|
|
8
|
+
gap: 18px 24px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.xeno-shortcuts-section {
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
gap: 8px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.xeno-shortcuts-heading {
|
|
18
|
+
margin: 0;
|
|
19
|
+
font-size: 11px;
|
|
20
|
+
font-weight: 600;
|
|
21
|
+
letter-spacing: 0.06em;
|
|
22
|
+
text-transform: uppercase;
|
|
23
|
+
color: var(--xeno-muted-text);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.xeno-shortcuts-list {
|
|
27
|
+
margin: 0;
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
gap: 4px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.xeno-shortcuts-row {
|
|
34
|
+
display: flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
justify-content: space-between;
|
|
37
|
+
gap: 12px;
|
|
38
|
+
min-height: 28px;
|
|
39
|
+
padding: 2px 0;
|
|
40
|
+
border-bottom: 1px solid var(--xeno-border-subtle);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.xeno-shortcuts-row:last-child {
|
|
44
|
+
border-bottom: 0;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.xeno-shortcuts-label {
|
|
48
|
+
font-size: 12.5px;
|
|
49
|
+
color: var(--xeno-text);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.xeno-shortcuts-keys {
|
|
53
|
+
margin: 0;
|
|
54
|
+
flex: none;
|
|
55
|
+
}
|
package/src/overlays/tooltip.css
CHANGED
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
background: var(--xeno-elevated);
|
|
19
19
|
border: 1px solid var(--xeno-border);
|
|
20
20
|
border-radius: var(--xeno-radius-sm);
|
|
21
|
-
color: var(--xeno-
|
|
22
|
-
font-family:
|
|
23
|
-
font-size:
|
|
21
|
+
color: var(--xeno-text);
|
|
22
|
+
font-family: var(--xeno-font-mono);
|
|
23
|
+
font-size: 11.5px;
|
|
24
24
|
line-height: 1.4;
|
|
25
25
|
letter-spacing: 0.01em;
|
|
26
26
|
text-align: left;
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
pointer-events: none;
|
|
29
29
|
opacity: 0;
|
|
30
30
|
visibility: hidden;
|
|
31
|
-
box-shadow:
|
|
31
|
+
box-shadow: var(--xeno-chrome-pop, var(--xeno-pop));
|
|
32
32
|
transition:
|
|
33
33
|
opacity var(--xeno-dur) var(--xeno-ease),
|
|
34
34
|
transform var(--xeno-dur) var(--xeno-ease),
|
|
@@ -70,6 +70,24 @@
|
|
|
70
70
|
transform: translateX(-4px);
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
+
.xeno-tooltip-portal {
|
|
74
|
+
display: contents;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.xeno-tooltip-panel--portaled,
|
|
78
|
+
.xeno-tooltip-panel--portaled[data-side='top'],
|
|
79
|
+
.xeno-tooltip-panel--portaled[data-side='bottom'],
|
|
80
|
+
.xeno-tooltip-panel--portaled[data-side='left'],
|
|
81
|
+
.xeno-tooltip-panel--portaled[data-side='right'] {
|
|
82
|
+
position: fixed;
|
|
83
|
+
z-index: 1050;
|
|
84
|
+
top: auto;
|
|
85
|
+
bottom: auto;
|
|
86
|
+
left: auto;
|
|
87
|
+
right: auto;
|
|
88
|
+
margin: 0;
|
|
89
|
+
}
|
|
90
|
+
|
|
73
91
|
/* Revealed — settle to the resting position; keep visibility on until the fade completes on close. */
|
|
74
92
|
.xeno-tooltip-panel[data-state='open'] {
|
|
75
93
|
opacity: 1;
|
package/src/size.css
CHANGED
|
@@ -177,3 +177,43 @@
|
|
|
177
177
|
min-height: var(--xeno-hit, 44px);
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
|
+
|
|
181
|
+
/* ── Unified Instrument Density axis (`data-density="compact" | "default" | "comfortable"`) ──
|
|
182
|
+
* Lets the exact same Elements + Components contract smoothly from studio inspector density
|
|
183
|
+
* (Motion/Pixel 24px controls, 22px rows) to standard desktop app shell (28px controls, 36px rows)
|
|
184
|
+
* to comfortable reading/touch dashboards (34px controls, 42px rows) with zero component forks. */
|
|
185
|
+
[data-density='compact'] {
|
|
186
|
+
--xeno-app-header-h: 36px;
|
|
187
|
+
--xeno-app-footer-h: 24px;
|
|
188
|
+
--xeno-shell-row-h: 28px;
|
|
189
|
+
--xeno-row-h: 22px;
|
|
190
|
+
--xeno-control-h: 20px;
|
|
191
|
+
}
|
|
192
|
+
[data-density='compact'] [data-xeno-size='sm'] {
|
|
193
|
+
--xeno-h: 24px;
|
|
194
|
+
--xeno-padx: 8px;
|
|
195
|
+
--xeno-font: 12px;
|
|
196
|
+
}
|
|
197
|
+
[data-density='compact'] [data-xeno-size='md'] {
|
|
198
|
+
--xeno-h: 28px;
|
|
199
|
+
--xeno-padx: 10px;
|
|
200
|
+
--xeno-font: 12.5px;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
[data-density='comfortable'] {
|
|
204
|
+
--xeno-app-header-h: 48px;
|
|
205
|
+
--xeno-app-footer-h: 32px;
|
|
206
|
+
--xeno-shell-row-h: 40px;
|
|
207
|
+
--xeno-row-h: 32px;
|
|
208
|
+
--xeno-control-h: 28px;
|
|
209
|
+
}
|
|
210
|
+
[data-density='comfortable'] [data-xeno-size='sm'] {
|
|
211
|
+
--xeno-h: 32px;
|
|
212
|
+
--xeno-padx: 12px;
|
|
213
|
+
--xeno-font: 13.5px;
|
|
214
|
+
}
|
|
215
|
+
[data-density='comfortable'] [data-xeno-size='md'] {
|
|
216
|
+
--xeno-h: 36px;
|
|
217
|
+
--xeno-padx: 14px;
|
|
218
|
+
--xeno-font: 14px;
|
|
219
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
.xeno-banner {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
gap: 8px;
|
|
5
|
+
min-height: 32px;
|
|
6
|
+
padding: 4px 14px;
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
border-bottom: 1px solid var(--xeno-border);
|
|
9
|
+
background: var(--xeno-surface);
|
|
10
|
+
color: var(--xeno-text);
|
|
11
|
+
font-family: var(--xeno-font-sans);
|
|
12
|
+
font-size: 12px;
|
|
13
|
+
line-height: 1.35;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.xeno-banner[data-tone='info'] {
|
|
17
|
+
background: color-mix(in srgb, var(--xeno-info) 8%, var(--xeno-surface));
|
|
18
|
+
border-bottom-color: color-mix(in srgb, var(--xeno-info) 24%, var(--xeno-border));
|
|
19
|
+
color: var(--xeno-text);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.xeno-banner[data-tone='ok'] {
|
|
23
|
+
background: color-mix(in srgb, var(--xeno-ok) 8%, var(--xeno-surface));
|
|
24
|
+
border-bottom-color: color-mix(in srgb, var(--xeno-ok) 24%, var(--xeno-border));
|
|
25
|
+
color: var(--xeno-text);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.xeno-banner[data-tone='warn'] {
|
|
29
|
+
background: color-mix(in srgb, var(--xeno-warn) 10%, var(--xeno-surface));
|
|
30
|
+
border-bottom-color: color-mix(in srgb, var(--xeno-warn) 28%, var(--xeno-border));
|
|
31
|
+
color: var(--xeno-text);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.xeno-banner[data-tone='danger'] {
|
|
35
|
+
background: color-mix(in srgb, var(--xeno-danger) 10%, var(--xeno-surface));
|
|
36
|
+
border-bottom-color: color-mix(in srgb, var(--xeno-danger) 28%, var(--xeno-border));
|
|
37
|
+
color: var(--xeno-text);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.xeno-banner-dot {
|
|
41
|
+
flex: none;
|
|
42
|
+
width: var(--xeno-chrome-badge-dot, 7px);
|
|
43
|
+
height: var(--xeno-chrome-badge-dot, 7px);
|
|
44
|
+
border-radius: 1.5px;
|
|
45
|
+
background: currentColor;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.xeno-banner[data-tone='neutral'] .xeno-banner-dot {
|
|
49
|
+
background: var(--xeno-muted-text);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.xeno-banner[data-tone='ok'] .xeno-banner-dot {
|
|
53
|
+
background: var(--xeno-ok);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.xeno-banner[data-tone='warn'] .xeno-banner-dot {
|
|
57
|
+
background: var(--xeno-warn);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.xeno-banner[data-tone='danger'] .xeno-banner-dot {
|
|
61
|
+
background: var(--xeno-danger);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.xeno-banner[data-tone='info'] .xeno-banner-dot {
|
|
65
|
+
background: var(--xeno-info);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.xeno-banner-body {
|
|
69
|
+
flex: 1 1 auto;
|
|
70
|
+
min-width: 0;
|
|
71
|
+
font-weight: 500;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.xeno-banner-action {
|
|
75
|
+
flex: none;
|
|
76
|
+
display: inline-flex;
|
|
77
|
+
align-items: center;
|
|
78
|
+
gap: 6px;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.xeno-banner-dismiss {
|
|
82
|
+
flex: none;
|
|
83
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
.xeno-toast-stack {
|
|
2
|
+
position: fixed;
|
|
3
|
+
z-index: 60;
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
gap: 8px;
|
|
7
|
+
max-width: min(380px, calc(100vw - 24px));
|
|
8
|
+
pointer-events: none;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.xeno-toast-stack[data-placement='bottom-right'] {
|
|
12
|
+
right: 16px;
|
|
13
|
+
bottom: 16px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.xeno-toast-stack[data-placement='bottom-center'] {
|
|
17
|
+
left: 50%;
|
|
18
|
+
bottom: 16px;
|
|
19
|
+
transform: translateX(-50%);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.xeno-toast-stack[data-placement='top-right'] {
|
|
23
|
+
top: 56px;
|
|
24
|
+
right: 16px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.xeno-toast {
|
|
28
|
+
pointer-events: auto;
|
|
29
|
+
display: flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
gap: 10px;
|
|
32
|
+
min-width: 240px;
|
|
33
|
+
padding: 9px 12px;
|
|
34
|
+
box-sizing: border-box;
|
|
35
|
+
border-radius: var(--xeno-radius-md);
|
|
36
|
+
border: 1px solid var(--xeno-border);
|
|
37
|
+
background: var(--xeno-elevated);
|
|
38
|
+
color: var(--xeno-text);
|
|
39
|
+
box-shadow: none;
|
|
40
|
+
font-family: var(--xeno-font-sans);
|
|
41
|
+
font-size: 12.5px;
|
|
42
|
+
line-height: 1.35;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/* Floating elevation applies ONLY when mounted inside a fixed ToastStack overlay, never inline. */
|
|
46
|
+
.xeno-toast-stack .xeno-toast {
|
|
47
|
+
box-shadow: var(--xeno-chrome-pop, var(--xeno-pop));
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.xeno-toast-dot {
|
|
51
|
+
flex: none;
|
|
52
|
+
width: var(--xeno-chrome-badge-dot, 7px);
|
|
53
|
+
height: var(--xeno-chrome-badge-dot, 7px);
|
|
54
|
+
border-radius: 1.5px;
|
|
55
|
+
background: var(--xeno-muted-text);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.xeno-toast[data-tone='ok'] .xeno-toast-dot {
|
|
59
|
+
background: var(--xeno-ok);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.xeno-toast[data-tone='warn'] .xeno-toast-dot {
|
|
63
|
+
background: var(--xeno-warn);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.xeno-toast[data-tone='danger'] .xeno-toast-dot {
|
|
67
|
+
background: var(--xeno-danger);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.xeno-toast[data-tone='info'] .xeno-toast-dot {
|
|
71
|
+
background: var(--xeno-info);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.xeno-toast-copy {
|
|
75
|
+
flex: 1 1 auto;
|
|
76
|
+
min-width: 0;
|
|
77
|
+
display: flex;
|
|
78
|
+
flex-direction: column;
|
|
79
|
+
gap: 2px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.xeno-toast-title {
|
|
83
|
+
font-weight: 500;
|
|
84
|
+
color: var(--xeno-text);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.xeno-toast-desc {
|
|
88
|
+
font-size: 11.5px;
|
|
89
|
+
color: var(--xeno-muted-text);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.xeno-toast-action,
|
|
93
|
+
.xeno-toast-dismiss {
|
|
94
|
+
flex: none;
|
|
95
|
+
}
|
package/src/xeno-elements.css
CHANGED
|
@@ -9,63 +9,82 @@
|
|
|
9
9
|
* Tokens must come first so every rule below can read the CSS custom properties.
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
+
/*
|
|
13
|
+
* Cascade layer order — guarantees predictable specificity when embedded inside Tailwind, Next.js,
|
|
14
|
+
* or product stylesheets without forcing `!important` overrides.
|
|
15
|
+
*/
|
|
16
|
+
@layer xeno.tokens, xeno.base, xeno.controls, xeno.components, xeno.a11y;
|
|
17
|
+
|
|
12
18
|
/* Foundation: tokens, then the renderer + controls. */
|
|
13
|
-
@import './xeno-theme.css';
|
|
19
|
+
@import './xeno-theme.css' layer(xeno.tokens);
|
|
14
20
|
/* The chrome axis — one file per construction, one owner each. See either file's header. */
|
|
15
|
-
@import './chrome-separated.css';
|
|
16
|
-
@import './chrome-unified.css';
|
|
17
|
-
|
|
18
|
-
@import './
|
|
19
|
-
@import './
|
|
20
|
-
@import './
|
|
21
|
-
@import './
|
|
22
|
-
@import './
|
|
21
|
+
@import './chrome-separated.css' layer(xeno.tokens);
|
|
22
|
+
@import './chrome-unified.css' layer(xeno.tokens);
|
|
23
|
+
/* Dual layout axis — flush `grid` (default) vs floating gapped `platform`. */
|
|
24
|
+
@import './layout-platform.css' layer(xeno.tokens);
|
|
25
|
+
@import './size.css' layer(xeno.base);
|
|
26
|
+
@import './xeno-element.css' layer(xeno.base);
|
|
27
|
+
@import './scrollbar.css' layer(xeno.base);
|
|
28
|
+
@import './icon-motion.css' layer(xeno.base);
|
|
29
|
+
@import './goo.css' layer(xeno.base);
|
|
30
|
+
@import './controls.css' layer(xeno.controls);
|
|
23
31
|
|
|
24
32
|
/* Containers */
|
|
25
|
-
@import './containers/card.css';
|
|
26
|
-
@import './containers/panel.css';
|
|
27
|
-
@import './containers/chip.css';
|
|
28
|
-
@import './containers/tile.css';
|
|
29
|
-
@import './containers/message-bubble.css';
|
|
30
|
-
@import './containers/Badges.css';
|
|
31
|
-
@import './containers/avatar.css';
|
|
32
|
-
@import './containers/list-row.css';
|
|
33
|
-
@import './containers/table.css';
|
|
33
|
+
@import './containers/card.css' layer(xeno.components);
|
|
34
|
+
@import './containers/panel.css' layer(xeno.components);
|
|
35
|
+
@import './containers/chip.css' layer(xeno.components);
|
|
36
|
+
@import './containers/tile.css' layer(xeno.components);
|
|
37
|
+
@import './containers/message-bubble.css' layer(xeno.components);
|
|
38
|
+
@import './containers/Badges.css' layer(xeno.components);
|
|
39
|
+
@import './containers/avatar.css' layer(xeno.components);
|
|
40
|
+
@import './containers/list-row.css' layer(xeno.components);
|
|
41
|
+
@import './containers/table.css' layer(xeno.components);
|
|
42
|
+
@import './containers/bulk-action-bar.css' layer(xeno.components);
|
|
34
43
|
|
|
35
44
|
/* Overlays (Popover shares menu.css) */
|
|
36
|
-
@import './overlays/menu.css';
|
|
37
|
-
@import './overlays/modal.css';
|
|
38
|
-
@import './overlays/tabs.css';
|
|
39
|
-
@import './overlays/segmented-control.css';
|
|
40
|
-
@import './overlays/pill-filter.css';
|
|
41
|
-
@import './overlays/tooltip.css';
|
|
42
|
-
@import './overlays/date-time-picker.css';
|
|
43
|
-
@import './overlays/reveal.css';
|
|
44
|
-
@import './overlays/picker-field.css';
|
|
45
|
+
@import './overlays/menu.css' layer(xeno.components);
|
|
46
|
+
@import './overlays/modal.css' layer(xeno.components);
|
|
47
|
+
@import './overlays/tabs.css' layer(xeno.components);
|
|
48
|
+
@import './overlays/segmented-control.css' layer(xeno.components);
|
|
49
|
+
@import './overlays/pill-filter.css' layer(xeno.components);
|
|
50
|
+
@import './overlays/tooltip.css' layer(xeno.components);
|
|
51
|
+
@import './overlays/date-time-picker.css' layer(xeno.components);
|
|
52
|
+
@import './overlays/reveal.css' layer(xeno.components);
|
|
53
|
+
@import './overlays/picker-field.css' layer(xeno.components);
|
|
54
|
+
@import './overlays/command-palette.css' layer(xeno.components);
|
|
55
|
+
@import './overlays/shortcuts-sheet.css' layer(xeno.components);
|
|
56
|
+
@import './overlays/onboarding.css' layer(xeno.components);
|
|
45
57
|
|
|
46
58
|
/* Forms */
|
|
47
|
-
@import './forms/Checkbox.css';
|
|
48
|
-
@import './forms/RadioGroup.css';
|
|
59
|
+
@import './forms/Checkbox.css' layer(xeno.components);
|
|
60
|
+
@import './forms/RadioGroup.css' layer(xeno.components);
|
|
49
61
|
|
|
50
62
|
/* Content */
|
|
51
|
-
@import './content/code-block.css';
|
|
52
|
-
@import './content/source-card.css';
|
|
53
|
-
@import './content/sources-disclosure.css';
|
|
54
|
-
@import './content/model-picker.css';
|
|
55
|
-
@import './content/inline-code.css';
|
|
56
|
-
@import './content/
|
|
57
|
-
@import './content/
|
|
58
|
-
@import './content/
|
|
63
|
+
@import './content/code-block.css' layer(xeno.components);
|
|
64
|
+
@import './content/source-card.css' layer(xeno.components);
|
|
65
|
+
@import './content/sources-disclosure.css' layer(xeno.components);
|
|
66
|
+
@import './content/model-picker.css' layer(xeno.components);
|
|
67
|
+
@import './content/inline-code.css' layer(xeno.components);
|
|
68
|
+
@import './content/kbd.css' layer(xeno.components);
|
|
69
|
+
@import './content/callout.css' layer(xeno.components);
|
|
70
|
+
@import './content/collapsible.css' layer(xeno.components);
|
|
71
|
+
@import './content/caret.css' layer(xeno.components);
|
|
59
72
|
|
|
60
73
|
/* Nav */
|
|
61
|
-
@import './nav/sidebar.css';
|
|
74
|
+
@import './nav/sidebar.css' layer(xeno.components);
|
|
75
|
+
@import './nav/breadcrumb.css' layer(xeno.components);
|
|
62
76
|
|
|
63
77
|
/* Layout */
|
|
64
|
-
@import './layout/ResizablePanel.css';
|
|
78
|
+
@import './layout/ResizablePanel.css' layer(xeno.components);
|
|
65
79
|
|
|
66
80
|
/* Status */
|
|
67
|
-
@import './status/thinkingcube.css';
|
|
68
|
-
@import './status/spinner.css';
|
|
69
|
-
@import './status/progress-bar.css';
|
|
70
|
-
@import './status/steptimeline.css';
|
|
71
|
-
@import './status/statusindicator.css';
|
|
81
|
+
@import './status/thinkingcube.css' layer(xeno.components);
|
|
82
|
+
@import './status/spinner.css' layer(xeno.components);
|
|
83
|
+
@import './status/progress-bar.css' layer(xeno.components);
|
|
84
|
+
@import './status/steptimeline.css' layer(xeno.components);
|
|
85
|
+
@import './status/statusindicator.css' layer(xeno.components);
|
|
86
|
+
@import './status/banner.css' layer(xeno.components);
|
|
87
|
+
@import './status/toast.css' layer(xeno.components);
|
|
88
|
+
|
|
89
|
+
/* High-contrast / Forced Colors override layer */
|
|
90
|
+
@import './forced-colors.css' layer(xeno.a11y);
|
package/src/xeno-theme.css
CHANGED
|
@@ -26,6 +26,18 @@
|
|
|
26
26
|
--xeno-panel-header: #1a1a1a;
|
|
27
27
|
--xeno-elevated: #111115;
|
|
28
28
|
--xeno-control: #2b2b2b;
|
|
29
|
+
/* FIELD: what a text input / text area paints. In dark it is the page value, exactly what inputs
|
|
30
|
+
drew before it had a name; light makes it white (the references' inputs). */
|
|
31
|
+
--xeno-field: #08080a;
|
|
32
|
+
/* RAISED: a plate lifted off a well (the chosen segment). In dark the control value, as before. */
|
|
33
|
+
--xeno-raised: #2b2b2b;
|
|
34
|
+
/* DEPTH — clean elevation without duplicate `0 0 0 1px` wire rings (every XENO container and
|
|
35
|
+
overlay owns its crisp `1px solid var(--xeno-border)` so shadows never double-outline or fail
|
|
36
|
+
in Windows forced-colors mode).
|
|
37
|
+
SHADOW: subtle elevation for raised thumbs and `Card variant="elevated"` (`none` in dark).
|
|
38
|
+
POP: restrained floating elevation for portaled menus, popovers, dialogs, and stacked toasts. */
|
|
39
|
+
--xeno-shadow: none;
|
|
40
|
+
--xeno-pop: 0 8px 24px rgba(0, 0, 0, 0.36), 0 2px 6px rgba(0, 0, 0, 0.22);
|
|
29
41
|
--xeno-border: rgba(255, 255, 255, 0.1);
|
|
30
42
|
/* Half-weight hairline. `Plate` frames its shell at white/[0.05]; `--xeno-border` (0.1) is twice
|
|
31
43
|
that and reads as a drawn line rather than an edge. The playbook calls it `border-subtle`. */
|
|
@@ -44,6 +56,19 @@
|
|
|
44
56
|
--xeno-success-text: #6fae7f;
|
|
45
57
|
--xeno-warning-text: #c98d2a;
|
|
46
58
|
--xeno-info-text: #7aa2c4;
|
|
59
|
+
/* Semantic fills, soft tints & canvas/code roles from the five owner references */
|
|
60
|
+
--xeno-ok: oklch(0.72 0.12 145);
|
|
61
|
+
--xeno-ok-soft: oklch(0.72 0.12 145 / 0.14);
|
|
62
|
+
--xeno-warn: oklch(0.72 0.13 75);
|
|
63
|
+
--xeno-warn-soft: oklch(0.72 0.13 75 / 0.16);
|
|
64
|
+
--xeno-danger-soft: oklch(0.64 0.15 25 / 0.14);
|
|
65
|
+
--xeno-info: oklch(0.72 0.12 250);
|
|
66
|
+
--xeno-info-soft: oklch(0.72 0.12 250 / 0.14);
|
|
67
|
+
--xeno-dot: #2e2c29;
|
|
68
|
+
--xeno-lane: rgba(237, 235, 231, 0.025);
|
|
69
|
+
--xeno-edge: #5a5651;
|
|
70
|
+
--xeno-code: #111110;
|
|
71
|
+
--xeno-stripe: rgba(237, 235, 231, 0.05);
|
|
47
72
|
--xeno-on-accent: #08080a;
|
|
48
73
|
|
|
49
74
|
/* scrollbar — its own alphas on purpose. A thumb sitting on any surface in the set has to be legible
|
|
@@ -77,36 +102,55 @@
|
|
|
77
102
|
}
|
|
78
103
|
|
|
79
104
|
|
|
80
|
-
/* Light — PROPOSED
|
|
105
|
+
/* Light — PROPOSED, now MEASURED. The earlier block was a placeholder ("a real light ramp is the design
|
|
106
|
+
system's call, not this file's"). These values are the one light ramp the owner's five design
|
|
107
|
+
references agree on (XENO Workshop v3, XENO Motion v12, XENO Desktop, XENO Corpus, XENO Creator;
|
|
108
|
+
Motion `handoff/tokens.md` and the Workshop handoff list them identically). Warm neutrals, the same
|
|
109
|
+
roles as dark: the page/frame is the darkest step, bars and headers one step up, content and dialogs
|
|
110
|
+
white. Still PROPOSED until DESIGN_SYSTEM.md §2 carries a light ramp; dark is untouched.
|
|
111
|
+
Reference role in brackets. */
|
|
81
112
|
.xeno[data-theme='light'] {
|
|
82
|
-
--xeno-canvas: #
|
|
83
|
-
--xeno-surface: #
|
|
84
|
-
--xeno-elevated: #ffffff;
|
|
85
|
-
--xeno-control: #
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
--xeno-panel-header: #
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
--xeno-
|
|
96
|
-
--xeno-
|
|
97
|
-
--xeno-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
--xeno-muted: #
|
|
101
|
-
--xeno-
|
|
102
|
-
--xeno-
|
|
103
|
-
--xeno-
|
|
104
|
-
--xeno-danger-
|
|
105
|
-
--xeno-
|
|
106
|
-
--xeno-
|
|
107
|
-
--xeno-
|
|
108
|
-
--xeno-
|
|
109
|
-
--xeno-
|
|
110
|
-
--xeno-
|
|
111
|
-
--xeno-
|
|
113
|
+
--xeno-canvas: #e9e6e1; /* [frame/gap] the void between panels */
|
|
114
|
+
--xeno-surface: #f6f4f1; /* [body/head] bars, headers, sidebars */
|
|
115
|
+
--xeno-elevated: #ffffff; /* [dialog/menu] */
|
|
116
|
+
--xeno-control: #eae7e2; /* [ghost2] control fills and wells */
|
|
117
|
+
--xeno-field: #ffffff; /* [input] text fields are white on the warm ground */
|
|
118
|
+
--xeno-raised: #ffffff; /* [seg] the chosen segment's plate */
|
|
119
|
+
--xeno-shadow: 0 1px 2px rgba(31, 28, 24, 0.08);
|
|
120
|
+
--xeno-pop: 0 8px 24px rgba(31, 28, 24, 0.1), 0 2px 6px rgba(31, 28, 24, 0.05);
|
|
121
|
+
/* Must not equal `--xeno-canvas`, or the separated gaps stop reading. It does not: one step up. */
|
|
122
|
+
--xeno-panel-header: #f6f4f1; /* [head] */
|
|
123
|
+
--xeno-viewport: #ffffff; /* [canvas] panel content */
|
|
124
|
+
--xeno-border: #dedad4; /* [seam / b3] */
|
|
125
|
+
--xeno-border-subtle: #e4e0da; /* [b2 hairline] */
|
|
126
|
+
--xeno-hover: rgba(31, 31, 31, 0.06); /* [hov] */
|
|
127
|
+
--xeno-text: #1f1f1f; /* [t1] */
|
|
128
|
+
--xeno-muted: #6e6a64; /* [t4 / idle] resting interactive label */
|
|
129
|
+
/* [t3] Reading text must be AA on every surface down to the control well; t4 is 4.3:1 on #eae7e2,
|
|
130
|
+
so prose takes the next reference step up instead of a new value. */
|
|
131
|
+
--xeno-muted-text: #4e4a45;
|
|
132
|
+
--xeno-active: #2e2c29; /* [t2] */
|
|
133
|
+
--xeno-on-accent: #faf9f7; /* [on-accent] */
|
|
134
|
+
--xeno-danger: oklch(0.55 0.15 25); /* [red] */
|
|
135
|
+
--xeno-danger-hover: oklch(0.5 0.15 25);
|
|
136
|
+
--xeno-danger-text: oklch(0.5 0.15 25); /* [red-t] */
|
|
137
|
+
--xeno-success-text: oklch(0.45 0.11 145); /* [ok-ink] */
|
|
138
|
+
--xeno-warning-text: oklch(0.5 0.12 70); /* [amber-t] */
|
|
139
|
+
--xeno-info-text: oklch(0.5 0.13 250); /* [person J / focus hue, ink step] */
|
|
140
|
+
--xeno-ok: oklch(0.6 0.13 145); /* [ok] */
|
|
141
|
+
--xeno-ok-soft: oklch(0.6 0.13 145 / 0.13); /* [ok-soft] */
|
|
142
|
+
--xeno-warn: oklch(0.72 0.13 75); /* [warn] */
|
|
143
|
+
--xeno-warn-soft: oklch(0.72 0.13 75 / 0.18); /* [warn-soft] */
|
|
144
|
+
--xeno-danger-soft: oklch(0.55 0.15 25 / 0.1); /* [danger-soft] */
|
|
145
|
+
--xeno-info: oklch(0.55 0.15 250); /* [corpus / focus hue] */
|
|
146
|
+
--xeno-info-soft: oklch(0.55 0.15 250 / 0.1); /* [corpus-soft] */
|
|
147
|
+
--xeno-dot: #d6d2cb; /* [dot] dotted canvas grid */
|
|
148
|
+
--xeno-lane: rgba(31, 31, 31, 0.025); /* [lane] */
|
|
149
|
+
--xeno-edge: #b3ada4; /* [edge] */
|
|
150
|
+
--xeno-code: #161514; /* [code] */
|
|
151
|
+
--xeno-stripe: rgba(31, 31, 31, 0.05); /* [stripe] */
|
|
152
|
+
--xeno-scroll-rail: rgba(31, 31, 31, 0.06); /* [stripe] */
|
|
153
|
+
--xeno-scroll-thumb: rgba(31, 31, 31, 0.22); /* [sbt] */
|
|
154
|
+
--xeno-scroll-thumb-hover: rgba(31, 31, 31, 0.32);
|
|
155
|
+
--xeno-scroll-thumb-active: rgba(31, 31, 31, 0.46);
|
|
112
156
|
}
|