@zeyos/zx 5.3.0 → 5.5.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/CHANGELOG.md +125 -0
- package/README.md +49 -16
- package/dist/types/components/app-sidebar/app-sidebar.d.ts +33 -0
- package/dist/types/components/badge/badge.d.ts +5 -4
- package/dist/types/components/datebox/date-range-box.d.ts +15 -2
- package/dist/types/components/datebox/datebox.d.ts +37 -3
- package/dist/types/components/kbd/kbd.d.ts +41 -0
- package/dist/types/components/launcher/launcher.d.ts +4 -2
- package/dist/types/components/prose/prose.d.ts +69 -0
- package/dist/types/components/questionnaire/questionnaire.d.ts +0 -36
- package/dist/types/components/stat-tile/stat-tile.d.ts +20 -0
- package/dist/types/components/tag-picker/tag-picker.d.ts +11 -5
- package/dist/types/components/tree/tree.d.ts +44 -3
- package/dist/types/core/icons.d.ts +22 -1
- package/dist/types/index.d.ts +4 -2
- package/dist/types/internal/app-rail.d.ts +10 -3
- package/dist/types/internal/row-actions.d.ts +151 -0
- package/dist/zx-zeyos.esm.js +264 -82
- package/dist/zx-zeyos.esm.min.js +4 -4
- package/dist/zx.css +1288 -439
- package/dist/zx.esm.js +952 -392
- package/dist/zx.esm.min.js +6 -6
- package/dist/zx.global.js +952 -392
- package/dist/zx.global.min.js +6 -6
- package/dist/zx.min.css +1 -1
- package/docs/api.json +112 -4
- package/docs/llms.md +433 -38
- package/docs/llms.txt +21 -1
- package/package.json +1 -1
- package/src/components/account-menu/account-menu.js +2 -2
- package/src/components/app-rail/app-rail.css +11 -11
- package/src/components/app-sidebar/app-sidebar.css +90 -17
- package/src/components/app-sidebar/app-sidebar.js +120 -12
- package/src/components/badge/badge.css +33 -20
- package/src/components/badge/badge.js +5 -4
- package/src/components/breadcrumb/breadcrumb.css +28 -3
- package/src/components/breadcrumb/breadcrumb.js +2 -2
- package/src/components/button/button.css +24 -13
- package/src/components/button/button.js +20 -2
- package/src/components/calendar/calendar.css +14 -4
- package/src/components/card-view/card-view.js +2 -2
- package/src/components/chart/chart.js +20 -5
- package/src/components/check-button/check-button.css +11 -3
- package/src/components/check-button/check-button.js +3 -3
- package/src/components/context-menu/context-menu.css +7 -1
- package/src/components/date-picker/date-picker.css +6 -0
- package/src/components/date-picker/date-picker.js +5 -5
- package/src/components/date-picker/date-range-picker.css +6 -0
- package/src/components/date-picker/date-range-picker.js +3 -3
- package/src/components/date-picker/month-picker.js +3 -3
- package/src/components/date-picker/time-picker.css +6 -0
- package/src/components/datebox/date-range-box.js +30 -6
- package/src/components/datebox/datebox.js +44 -7
- package/src/components/dialog/dialog.css +0 -1
- package/src/components/dialog/dialog.js +2 -1
- package/src/components/dock/dock.js +2 -2
- package/src/components/dropdown/dropdown.css +2 -1
- package/src/components/entity-ref/entity-ref.css +8 -1
- package/src/components/file-item/file-item.css +1 -1
- package/src/components/finder/finder.js +2 -2
- package/src/components/groupbox/groupbox.js +2 -2
- package/src/components/kanban-view/kanban-view.css +8 -4
- package/src/components/kanban-view/kanban-view.js +3 -3
- package/src/components/kbd/kbd.css +64 -0
- package/src/components/kbd/kbd.js +121 -0
- package/src/components/launcher/launcher.css +30 -25
- package/src/components/launcher/launcher.js +15 -21
- package/src/components/list-toolbar/list-toolbar.css +7 -1
- package/src/components/menu-button/menu-button.css +9 -2
- package/src/components/message/message.css +6 -2
- package/src/components/message/message.js +2 -2
- package/src/components/module-bar/module-bar.css +11 -1
- package/src/components/multi-value-editor/multi-value-editor.js +4 -4
- package/src/components/navigation-bar/navigation-bar.css +3 -2
- package/src/components/pagination/pagination.js +2 -2
- package/src/components/panel/panel.js +2 -2
- package/src/components/prose/prose.css +53 -0
- package/src/components/prose/prose.js +152 -0
- package/src/components/questionnaire/questionnaire.css +7 -17
- package/src/components/questionnaire/questionnaire.js +16 -1
- package/src/components/rating/rating.css +3 -1
- package/src/components/search/search.js +2 -2
- package/src/components/select/glyphs.js +3 -3
- package/src/components/select/select.css +35 -7
- package/src/components/select/select.js +4 -4
- package/src/components/stat-tile/stat-tile.css +56 -2
- package/src/components/stat-tile/stat-tile.js +25 -2
- package/src/components/stepper/stepper.css +2 -1
- package/src/components/stepper/stepper.js +3 -3
- package/src/components/tabbox/tabbox.css +2 -2
- package/src/components/tabbox/tabbox.js +2 -2
- package/src/components/table/table.css +52 -16
- package/src/components/table/table.js +7 -5
- package/src/components/tag-picker/tag-picker.css +56 -43
- package/src/components/tag-picker/tag-picker.js +21 -16
- package/src/components/tree/tree.css +44 -0
- package/src/components/tree/tree.js +97 -9
- package/src/components/value-list/value-list.css +25 -4
- package/src/components/value-list/value-list.js +2 -1
- package/src/components/view/record-view.js +3 -3
- package/src/components/view-settings/view-settings.css +2 -1
- package/src/components/workspace-switcher/workspace-switcher.js +3 -3
- package/src/core/icons.js +34 -3
- package/src/elements/define.js +1 -0
- package/src/index.js +4 -2
- package/src/internal/app-rail.js +5 -1
- package/src/internal/row-actions.js +203 -0
- package/styles/base.css +26 -1
- package/styles/prose.css +306 -0
- package/styles/tokens/dark.css +108 -103
- package/styles/tokens/global.css +24 -9
- package/styles/tokens/semantic.css +520 -198
- package/styles/tokens/themes.css +9 -0
- package/styles/zx.css +3 -0
package/styles/tokens/dark.css
CHANGED
|
@@ -1,107 +1,22 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Tier-2 semantic tokens — dark
|
|
3
|
-
* surface steps above it, translucent white borders (9%) and inputs (14%), text softened to about
|
|
4
|
-
* 90% white, and restrained secondary text.
|
|
2
|
+
* Tier-2 semantic tokens — the dark half of the fallback for browsers without `light-dark()`.
|
|
5
3
|
*
|
|
6
|
-
*
|
|
7
|
-
* and
|
|
8
|
-
*
|
|
9
|
-
*
|
|
4
|
+
* Where `light-dark()` is supported, tokens/semantic.css declares every colour role once, with its
|
|
5
|
+
* light and dark values side by side, and this file is not read. Elsewhere the dark theme is a
|
|
6
|
+
* second list of the roles it maps differently, restated on the theme element, because a custom
|
|
7
|
+
* property resolves where it is declared: inherited from the light block, a role that mixes another
|
|
8
|
+
* theme-dependent role (hover and current mix the text colour, tones and status fills mix the
|
|
9
|
+
* surface) would carry light values into a dark region. The values, and the reasons for them, are
|
|
10
|
+
* the dark halves of the pairs in tokens/semantic.css; `tests/unit/colour-overrides.test.js` paints
|
|
11
|
+
* both paths and fails if they differ.
|
|
10
12
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* The `[data-zx-theme="auto"]` block below repeats these assignments under a
|
|
16
|
-
* `prefers-color-scheme` query; CSS has no way to share a declaration block across a media
|
|
17
|
-
* boundary, so the two lists must be kept in sync — `tests/unit/tokens.test.js` fails if they drift.
|
|
13
|
+
* The `[data-zx-theme="auto"]` block repeats the dark list under a `prefers-color-scheme` query;
|
|
14
|
+
* CSS has no way to share a declaration block across a media boundary, so the two lists must be
|
|
15
|
+
* kept in sync — `tests/unit/tokens.test.js` fails if they drift.
|
|
18
16
|
*/
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
/* The ramp is lifted off black: page, chrome, surface, raised, and the overlay base ascend in
|
|
22
|
-
that order, each mixed from two Zinc stops so a tinted neutral ramp carries through. */
|
|
23
|
-
--zx-color-bg-page: color-mix(in srgb, var(--zx-gray-900) 80%, var(--zx-gray-800));
|
|
24
|
-
/* Chrome sits just above the page and below the canvas: as in light, the working area is the
|
|
25
|
-
brightest column and the navigation and inspector recede. */
|
|
26
|
-
--zx-color-bg-chrome: color-mix(in srgb, var(--zx-color-bg-page) 75%, var(--zx-color-bg-surface));
|
|
27
|
-
--zx-color-bg-surface: color-mix(in srgb, var(--zx-gray-900) 40%, var(--zx-gray-800));
|
|
28
|
-
--zx-color-bg-raised: color-mix(in srgb, var(--zx-gray-800) 90%, var(--zx-gray-700));
|
|
29
|
-
--zx-color-bg-control: color-mix(in srgb, var(--zx-gray-0) 5%, transparent);
|
|
30
|
-
--zx-color-bg-muted: var(--zx-color-bg-raised);
|
|
31
|
-
--zx-color-bg-hover: color-mix(in srgb, var(--zx-color-text) 5%, transparent);
|
|
32
|
-
--zx-color-bg-current: color-mix(in srgb, var(--zx-color-text) 9%, transparent);
|
|
33
|
-
/* Picked, not current: a tint light enough that muted text on it keeps 4.5:1 under every preset. */
|
|
34
|
-
--zx-color-bg-selected: color-mix(in srgb, var(--zx-accent-400) 13%, var(--zx-color-bg-surface));
|
|
35
|
-
--zx-color-bg-backdrop: color-mix(in srgb, var(--zx-gray-950) 75%, transparent);
|
|
36
|
-
--zx-color-overlay-base: color-mix(in srgb, var(--zx-gray-800) 60%, var(--zx-gray-700));
|
|
37
|
-
--zx-color-overlay-backdrop: color-mix(in srgb, var(--zx-gray-950) 38%, transparent);
|
|
38
|
-
--zx-color-border: color-mix(in srgb, var(--zx-gray-0) 9%, transparent);
|
|
39
|
-
--zx-color-border-subtle: color-mix(in srgb, var(--zx-gray-0) 6%, transparent);
|
|
40
|
-
--zx-color-border-strong: color-mix(in srgb, var(--zx-gray-0) 24%, transparent);
|
|
41
|
-
--zx-color-border-control: color-mix(in srgb, var(--zx-gray-0) 14%, transparent);
|
|
42
|
-
/* Text is softened off pure white (about 90%), secondary text sits near 63%. */
|
|
43
|
-
--zx-color-text: var(--zx-gray-200);
|
|
44
|
-
--zx-color-text-muted: var(--zx-gray-400);
|
|
45
|
-
--zx-color-text-subtle: color-mix(in srgb, var(--zx-gray-500) 50%, var(--zx-gray-400));
|
|
46
|
-
--zx-color-text-placeholder: var(--zx-gray-500);
|
|
47
|
-
--zx-color-text-invert: var(--zx-gray-950);
|
|
48
|
-
--zx-color-accent: var(--zx-accent-400);
|
|
49
|
-
--zx-color-accent-hover: var(--zx-accent-300);
|
|
50
|
-
--zx-color-accent-active: var(--zx-accent-500);
|
|
51
|
-
--zx-color-accent-subtle: color-mix(in srgb, var(--zx-accent-400) 16%, var(--zx-color-bg-surface));
|
|
52
|
-
--zx-color-on-accent: var(--zx-gray-950);
|
|
53
|
-
/* The primary button does not glow: it keeps the 600 stop and white ink, as in light. */
|
|
54
|
-
--zx-color-accent-solid: var(--zx-accent-600);
|
|
55
|
-
--zx-color-accent-solid-hover: var(--zx-accent-700);
|
|
56
|
-
--zx-color-accent-solid-active: color-mix(in srgb, var(--zx-accent-700) 82%, var(--zx-gray-950));
|
|
57
|
-
--zx-color-on-accent-solid: var(--zx-gray-0);
|
|
58
|
-
/* Danger's tint is a little lighter than the other statuses' so its ink keeps 4.5:1 on it. */
|
|
59
|
-
--zx-color-danger: var(--zx-red-400);
|
|
60
|
-
--zx-color-danger-bg: color-mix(in srgb, var(--zx-red-400) 13%, var(--zx-color-bg-surface));
|
|
61
|
-
--zx-color-warning: var(--zx-amber-400);
|
|
62
|
-
--zx-color-warning-bg: color-mix(in srgb, var(--zx-amber-400) 16%, var(--zx-color-bg-surface));
|
|
63
|
-
--zx-color-success: var(--zx-green-400);
|
|
64
|
-
--zx-color-success-bg: color-mix(in srgb, var(--zx-green-400) 16%, var(--zx-color-bg-surface));
|
|
65
|
-
--zx-color-info: var(--zx-blue-400);
|
|
66
|
-
--zx-color-info-bg: color-mix(in srgb, var(--zx-blue-400) 16%, var(--zx-color-bg-surface));
|
|
67
|
-
--zx-color-tone-blue-bg: color-mix(in srgb, var(--zx-tone-blue-500) 20%, var(--zx-color-bg-surface));
|
|
68
|
-
--zx-color-tone-blue-fg: var(--zx-tone-blue-300);
|
|
69
|
-
--zx-color-tone-teal-bg: color-mix(in srgb, var(--zx-tone-teal-500) 20%, var(--zx-color-bg-surface));
|
|
70
|
-
--zx-color-tone-teal-fg: var(--zx-tone-teal-300);
|
|
71
|
-
--zx-color-tone-green-bg: color-mix(in srgb, var(--zx-tone-green-500) 20%, var(--zx-color-bg-surface));
|
|
72
|
-
--zx-color-tone-green-fg: var(--zx-tone-green-300);
|
|
73
|
-
--zx-color-tone-amber-bg: color-mix(in srgb, var(--zx-tone-amber-500) 20%, var(--zx-color-bg-surface));
|
|
74
|
-
--zx-color-tone-amber-fg: var(--zx-tone-amber-300);
|
|
75
|
-
--zx-color-tone-orange-bg: color-mix(in srgb, var(--zx-tone-orange-500) 20%, var(--zx-color-bg-surface));
|
|
76
|
-
--zx-color-tone-orange-fg: var(--zx-tone-orange-300);
|
|
77
|
-
--zx-color-tone-red-bg: color-mix(in srgb, var(--zx-tone-red-500) 20%, var(--zx-color-bg-surface));
|
|
78
|
-
--zx-color-tone-red-fg: var(--zx-tone-red-300);
|
|
79
|
-
--zx-color-tone-pink-bg: color-mix(in srgb, var(--zx-tone-pink-500) 20%, var(--zx-color-bg-surface));
|
|
80
|
-
--zx-color-tone-pink-fg: var(--zx-tone-pink-300);
|
|
81
|
-
--zx-color-tone-violet-bg: color-mix(in srgb, var(--zx-tone-violet-500) 20%, var(--zx-color-bg-surface));
|
|
82
|
-
--zx-color-tone-violet-fg: var(--zx-tone-violet-300);
|
|
83
|
-
--zx-color-tone-slate-bg: color-mix(in srgb, var(--zx-tone-slate-500) 20%, var(--zx-color-bg-surface));
|
|
84
|
-
--zx-color-tone-slate-fg: var(--zx-tone-slate-300);
|
|
85
|
-
--zx-color-ring: var(--zx-color-accent);
|
|
86
|
-
--zx-focus-ring: 0 0 0 3px color-mix(in srgb, var(--zx-color-ring) 45%, transparent);
|
|
87
|
-
/* The surface contact shadow keeps the light value: on a dark canvas the border, not the shadow,
|
|
88
|
-
separates a resting surface, and a heavier shadow would read as a lifted one. */
|
|
89
|
-
--zx-surface-shadow: var(--zx-shadow-1);
|
|
90
|
-
--zx-overlay-shadow: 0 12px 36px rgb(0 0 0 / 45%);
|
|
91
|
-
/* A shadow alone barely reads on a dark canvas, so the lifted item also gets a faint light rim. */
|
|
92
|
-
--zx-drag-shadow: 0 0 0 1px color-mix(in srgb, var(--zx-gray-0) 7%, transparent), 0 2px 6px -1px rgb(0 0 0 / 40%), 0 14px 32px -6px rgb(0 0 0 / 60%);
|
|
93
|
-
--zx-header-bg: var(--zx-gray-900);
|
|
94
|
-
--zx-header-text: var(--zx-gray-50);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
@media (prefers-color-scheme: dark) {
|
|
98
|
-
[data-zx-theme="auto"] {
|
|
99
|
-
color-scheme: dark;
|
|
100
|
-
/* The ramp is lifted off black: page, chrome, surface, raised, and the overlay base ascend in
|
|
101
|
-
that order, each mixed from two Zinc stops so a tinted neutral ramp carries through. */
|
|
17
|
+
@supports not (color: light-dark(#000, #fff)) {
|
|
18
|
+
[data-zx-theme="dark"] {
|
|
102
19
|
--zx-color-bg-page: color-mix(in srgb, var(--zx-gray-900) 80%, var(--zx-gray-800));
|
|
103
|
-
/* Chrome sits just above the page and below the canvas: as in light, the working area is the
|
|
104
|
-
brightest column and the navigation and inspector recede. */
|
|
105
20
|
--zx-color-bg-chrome: color-mix(in srgb, var(--zx-color-bg-page) 75%, var(--zx-color-bg-surface));
|
|
106
21
|
--zx-color-bg-surface: color-mix(in srgb, var(--zx-gray-900) 40%, var(--zx-gray-800));
|
|
107
22
|
--zx-color-bg-raised: color-mix(in srgb, var(--zx-gray-800) 90%, var(--zx-gray-700));
|
|
@@ -113,11 +28,22 @@
|
|
|
113
28
|
--zx-color-bg-backdrop: color-mix(in srgb, var(--zx-gray-950) 75%, transparent);
|
|
114
29
|
--zx-color-overlay-base: color-mix(in srgb, var(--zx-gray-800) 60%, var(--zx-gray-700));
|
|
115
30
|
--zx-color-overlay-backdrop: color-mix(in srgb, var(--zx-gray-950) 38%, transparent);
|
|
31
|
+
--zx-color-glass-border: color-mix(in srgb, var(--zx-gray-0) 14%, transparent);
|
|
32
|
+
--zx-color-glass-rim: color-mix(in srgb, var(--zx-gray-0) 24%, transparent);
|
|
33
|
+
--zx-color-glass-ring: color-mix(in srgb, var(--zx-gray-0) 7%, transparent);
|
|
34
|
+
--zx-color-glass-lift: color-mix(in srgb, var(--zx-gray-0) 10%, transparent);
|
|
35
|
+
--zx-color-glass-shade: color-mix(in srgb, var(--zx-gray-950) 20%, transparent);
|
|
36
|
+
--zx-color-glass-edge: color-mix(in srgb, var(--zx-gray-950) 45%, transparent);
|
|
37
|
+
--zx-color-glass-tint: color-mix(in srgb, var(--zx-gray-950) 38%, transparent);
|
|
38
|
+
--zx-color-glass-control: color-mix(in srgb, var(--zx-gray-0) 7%, transparent);
|
|
39
|
+
--zx-color-glass-control-hover: color-mix(in srgb, var(--zx-gray-0) 12%, transparent);
|
|
40
|
+
--zx-glass-control-shadow: inset 0 1px 0 color-mix(in srgb, var(--zx-gray-0) 14%, transparent), 0 1px 2px color-mix(in srgb, var(--zx-gray-950) 30%, transparent);
|
|
41
|
+
--zx-glass-chrome-shadow: inset -1px 0 0 color-mix(in srgb, var(--zx-gray-0) 6%, transparent), inset 0 1px 0 color-mix(in srgb, var(--zx-gray-0) 10%, transparent);
|
|
116
42
|
--zx-color-border: color-mix(in srgb, var(--zx-gray-0) 9%, transparent);
|
|
117
43
|
--zx-color-border-subtle: color-mix(in srgb, var(--zx-gray-0) 6%, transparent);
|
|
118
44
|
--zx-color-border-strong: color-mix(in srgb, var(--zx-gray-0) 24%, transparent);
|
|
45
|
+
--zx-color-border-chrome: var(--zx-color-border-subtle);
|
|
119
46
|
--zx-color-border-control: color-mix(in srgb, var(--zx-gray-0) 14%, transparent);
|
|
120
|
-
/* Text is softened off pure white (about 90%), secondary text sits near 63%. */
|
|
121
47
|
--zx-color-text: var(--zx-gray-200);
|
|
122
48
|
--zx-color-text-muted: var(--zx-gray-400);
|
|
123
49
|
--zx-color-text-subtle: color-mix(in srgb, var(--zx-gray-500) 50%, var(--zx-gray-400));
|
|
@@ -128,7 +54,6 @@
|
|
|
128
54
|
--zx-color-accent-active: var(--zx-accent-500);
|
|
129
55
|
--zx-color-accent-subtle: color-mix(in srgb, var(--zx-accent-400) 16%, var(--zx-color-bg-surface));
|
|
130
56
|
--zx-color-on-accent: var(--zx-gray-950);
|
|
131
|
-
/* The primary button does not glow: it keeps the 600 stop and white ink, as in light. */
|
|
132
57
|
--zx-color-accent-solid: var(--zx-accent-600);
|
|
133
58
|
--zx-color-accent-solid-hover: var(--zx-accent-700);
|
|
134
59
|
--zx-color-accent-solid-active: color-mix(in srgb, var(--zx-accent-700) 82%, var(--zx-gray-950));
|
|
@@ -160,11 +85,91 @@
|
|
|
160
85
|
--zx-color-tone-slate-bg: color-mix(in srgb, var(--zx-tone-slate-500) 20%, var(--zx-color-bg-surface));
|
|
161
86
|
--zx-color-tone-slate-fg: var(--zx-tone-slate-300);
|
|
162
87
|
--zx-color-ring: var(--zx-color-accent);
|
|
163
|
-
--zx-focus-ring: 0 0 0
|
|
164
|
-
--zx-surface-shadow: var(--zx-
|
|
88
|
+
--zx-focus-ring: 0 0 0 2px var(--zx-color-ring);
|
|
89
|
+
--zx-surface-shadow: inset 0 1px 0 color-mix(in srgb, var(--zx-gray-0) 5%, transparent), 0 1px 2px color-mix(in srgb, var(--zx-gray-950) 30%, transparent);
|
|
165
90
|
--zx-overlay-shadow: 0 12px 36px rgb(0 0 0 / 45%);
|
|
166
91
|
--zx-drag-shadow: 0 0 0 1px color-mix(in srgb, var(--zx-gray-0) 7%, transparent), 0 2px 6px -1px rgb(0 0 0 / 40%), 0 14px 32px -6px rgb(0 0 0 / 60%);
|
|
167
92
|
--zx-header-bg: var(--zx-gray-900);
|
|
168
93
|
--zx-header-text: var(--zx-gray-50);
|
|
169
94
|
}
|
|
95
|
+
|
|
96
|
+
@media (prefers-color-scheme: dark) {
|
|
97
|
+
[data-zx-theme="auto"] {
|
|
98
|
+
--zx-color-bg-page: color-mix(in srgb, var(--zx-gray-900) 80%, var(--zx-gray-800));
|
|
99
|
+
--zx-color-bg-chrome: color-mix(in srgb, var(--zx-color-bg-page) 75%, var(--zx-color-bg-surface));
|
|
100
|
+
--zx-color-bg-surface: color-mix(in srgb, var(--zx-gray-900) 40%, var(--zx-gray-800));
|
|
101
|
+
--zx-color-bg-raised: color-mix(in srgb, var(--zx-gray-800) 90%, var(--zx-gray-700));
|
|
102
|
+
--zx-color-bg-control: color-mix(in srgb, var(--zx-gray-0) 5%, transparent);
|
|
103
|
+
--zx-color-bg-muted: var(--zx-color-bg-raised);
|
|
104
|
+
--zx-color-bg-hover: color-mix(in srgb, var(--zx-color-text) 5%, transparent);
|
|
105
|
+
--zx-color-bg-current: color-mix(in srgb, var(--zx-color-text) 9%, transparent);
|
|
106
|
+
--zx-color-bg-selected: color-mix(in srgb, var(--zx-accent-400) 13%, var(--zx-color-bg-surface));
|
|
107
|
+
--zx-color-bg-backdrop: color-mix(in srgb, var(--zx-gray-950) 75%, transparent);
|
|
108
|
+
--zx-color-overlay-base: color-mix(in srgb, var(--zx-gray-800) 60%, var(--zx-gray-700));
|
|
109
|
+
--zx-color-overlay-backdrop: color-mix(in srgb, var(--zx-gray-950) 38%, transparent);
|
|
110
|
+
--zx-color-glass-border: color-mix(in srgb, var(--zx-gray-0) 14%, transparent);
|
|
111
|
+
--zx-color-glass-rim: color-mix(in srgb, var(--zx-gray-0) 24%, transparent);
|
|
112
|
+
--zx-color-glass-ring: color-mix(in srgb, var(--zx-gray-0) 7%, transparent);
|
|
113
|
+
--zx-color-glass-lift: color-mix(in srgb, var(--zx-gray-0) 10%, transparent);
|
|
114
|
+
--zx-color-glass-shade: color-mix(in srgb, var(--zx-gray-950) 20%, transparent);
|
|
115
|
+
--zx-color-glass-edge: color-mix(in srgb, var(--zx-gray-950) 45%, transparent);
|
|
116
|
+
--zx-color-glass-tint: color-mix(in srgb, var(--zx-gray-950) 38%, transparent);
|
|
117
|
+
--zx-color-glass-control: color-mix(in srgb, var(--zx-gray-0) 7%, transparent);
|
|
118
|
+
--zx-color-glass-control-hover: color-mix(in srgb, var(--zx-gray-0) 12%, transparent);
|
|
119
|
+
--zx-glass-control-shadow: inset 0 1px 0 color-mix(in srgb, var(--zx-gray-0) 14%, transparent), 0 1px 2px color-mix(in srgb, var(--zx-gray-950) 30%, transparent);
|
|
120
|
+
--zx-glass-chrome-shadow: inset -1px 0 0 color-mix(in srgb, var(--zx-gray-0) 6%, transparent), inset 0 1px 0 color-mix(in srgb, var(--zx-gray-0) 10%, transparent);
|
|
121
|
+
--zx-color-border: color-mix(in srgb, var(--zx-gray-0) 9%, transparent);
|
|
122
|
+
--zx-color-border-subtle: color-mix(in srgb, var(--zx-gray-0) 6%, transparent);
|
|
123
|
+
--zx-color-border-strong: color-mix(in srgb, var(--zx-gray-0) 24%, transparent);
|
|
124
|
+
--zx-color-border-chrome: var(--zx-color-border-subtle);
|
|
125
|
+
--zx-color-border-control: color-mix(in srgb, var(--zx-gray-0) 14%, transparent);
|
|
126
|
+
--zx-color-text: var(--zx-gray-200);
|
|
127
|
+
--zx-color-text-muted: var(--zx-gray-400);
|
|
128
|
+
--zx-color-text-subtle: color-mix(in srgb, var(--zx-gray-500) 50%, var(--zx-gray-400));
|
|
129
|
+
--zx-color-text-placeholder: var(--zx-gray-500);
|
|
130
|
+
--zx-color-text-invert: var(--zx-gray-950);
|
|
131
|
+
--zx-color-accent: var(--zx-accent-400);
|
|
132
|
+
--zx-color-accent-hover: var(--zx-accent-300);
|
|
133
|
+
--zx-color-accent-active: var(--zx-accent-500);
|
|
134
|
+
--zx-color-accent-subtle: color-mix(in srgb, var(--zx-accent-400) 16%, var(--zx-color-bg-surface));
|
|
135
|
+
--zx-color-on-accent: var(--zx-gray-950);
|
|
136
|
+
--zx-color-accent-solid: var(--zx-accent-600);
|
|
137
|
+
--zx-color-accent-solid-hover: var(--zx-accent-700);
|
|
138
|
+
--zx-color-accent-solid-active: color-mix(in srgb, var(--zx-accent-700) 82%, var(--zx-gray-950));
|
|
139
|
+
--zx-color-on-accent-solid: var(--zx-gray-0);
|
|
140
|
+
--zx-color-danger: var(--zx-red-400);
|
|
141
|
+
--zx-color-danger-bg: color-mix(in srgb, var(--zx-red-400) 13%, var(--zx-color-bg-surface));
|
|
142
|
+
--zx-color-warning: var(--zx-amber-400);
|
|
143
|
+
--zx-color-warning-bg: color-mix(in srgb, var(--zx-amber-400) 16%, var(--zx-color-bg-surface));
|
|
144
|
+
--zx-color-success: var(--zx-green-400);
|
|
145
|
+
--zx-color-success-bg: color-mix(in srgb, var(--zx-green-400) 16%, var(--zx-color-bg-surface));
|
|
146
|
+
--zx-color-info: var(--zx-blue-400);
|
|
147
|
+
--zx-color-info-bg: color-mix(in srgb, var(--zx-blue-400) 16%, var(--zx-color-bg-surface));
|
|
148
|
+
--zx-color-tone-blue-bg: color-mix(in srgb, var(--zx-tone-blue-500) 20%, var(--zx-color-bg-surface));
|
|
149
|
+
--zx-color-tone-blue-fg: var(--zx-tone-blue-300);
|
|
150
|
+
--zx-color-tone-teal-bg: color-mix(in srgb, var(--zx-tone-teal-500) 20%, var(--zx-color-bg-surface));
|
|
151
|
+
--zx-color-tone-teal-fg: var(--zx-tone-teal-300);
|
|
152
|
+
--zx-color-tone-green-bg: color-mix(in srgb, var(--zx-tone-green-500) 20%, var(--zx-color-bg-surface));
|
|
153
|
+
--zx-color-tone-green-fg: var(--zx-tone-green-300);
|
|
154
|
+
--zx-color-tone-amber-bg: color-mix(in srgb, var(--zx-tone-amber-500) 20%, var(--zx-color-bg-surface));
|
|
155
|
+
--zx-color-tone-amber-fg: var(--zx-tone-amber-300);
|
|
156
|
+
--zx-color-tone-orange-bg: color-mix(in srgb, var(--zx-tone-orange-500) 20%, var(--zx-color-bg-surface));
|
|
157
|
+
--zx-color-tone-orange-fg: var(--zx-tone-orange-300);
|
|
158
|
+
--zx-color-tone-red-bg: color-mix(in srgb, var(--zx-tone-red-500) 20%, var(--zx-color-bg-surface));
|
|
159
|
+
--zx-color-tone-red-fg: var(--zx-tone-red-300);
|
|
160
|
+
--zx-color-tone-pink-bg: color-mix(in srgb, var(--zx-tone-pink-500) 20%, var(--zx-color-bg-surface));
|
|
161
|
+
--zx-color-tone-pink-fg: var(--zx-tone-pink-300);
|
|
162
|
+
--zx-color-tone-violet-bg: color-mix(in srgb, var(--zx-tone-violet-500) 20%, var(--zx-color-bg-surface));
|
|
163
|
+
--zx-color-tone-violet-fg: var(--zx-tone-violet-300);
|
|
164
|
+
--zx-color-tone-slate-bg: color-mix(in srgb, var(--zx-tone-slate-500) 20%, var(--zx-color-bg-surface));
|
|
165
|
+
--zx-color-tone-slate-fg: var(--zx-tone-slate-300);
|
|
166
|
+
--zx-color-ring: var(--zx-color-accent);
|
|
167
|
+
--zx-focus-ring: 0 0 0 2px var(--zx-color-ring);
|
|
168
|
+
--zx-surface-shadow: inset 0 1px 0 color-mix(in srgb, var(--zx-gray-0) 5%, transparent), 0 1px 2px color-mix(in srgb, var(--zx-gray-950) 30%, transparent);
|
|
169
|
+
--zx-overlay-shadow: 0 12px 36px rgb(0 0 0 / 45%);
|
|
170
|
+
--zx-drag-shadow: 0 0 0 1px color-mix(in srgb, var(--zx-gray-0) 7%, transparent), 0 2px 6px -1px rgb(0 0 0 / 40%), 0 14px 32px -6px rgb(0 0 0 / 60%);
|
|
171
|
+
--zx-header-bg: var(--zx-gray-900);
|
|
172
|
+
--zx-header-text: var(--zx-gray-50);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
170
175
|
}
|
package/styles/tokens/global.css
CHANGED
|
@@ -124,26 +124,41 @@
|
|
|
124
124
|
--zx-radius-lg: var(--zx-radius);
|
|
125
125
|
--zx-radius-xl: calc(var(--zx-radius) * 1.5);
|
|
126
126
|
--zx-radius-full: 999px;
|
|
127
|
+
/*
|
|
128
|
+
* A panel that holds rounded items — a menu, a listbox, a launcher — is concentric with them:
|
|
129
|
+
* its corner is the item's corner plus the inset between them (4px of padding and the 1px
|
|
130
|
+
* border), capped at the base so a small-cornered theme stays small. 6px at the default base,
|
|
131
|
+
* square when the base is 0, exactly concentric from a 10px base up.
|
|
132
|
+
*/
|
|
133
|
+
--zx-radius-panel: calc(var(--zx-radius-sm) + min(var(--zx-radius), var(--zx-space-1) + 1px));
|
|
127
134
|
|
|
128
135
|
--zx-font-sans: Inter, "Inter Variable", ui-sans-serif, system-ui, -apple-system,
|
|
129
136
|
"Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
130
137
|
--zx-font-mono: "Geist Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco,
|
|
131
138
|
Consolas, monospace;
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
--zx-text-
|
|
139
|
+
/*
|
|
140
|
+
* Type scale — one base, derived steps, so a theme that changes the base keeps the hierarchy:
|
|
141
|
+
* the small steps sit a fixed 1–2px under it and the large ones in proportion above it. At the
|
|
142
|
+
* default base the steps are 12 / 13 / 14 / 16 / 18 / 24 / 30px. An application that sets
|
|
143
|
+
* `--zx-text-md` directly still moves the control size alone, as before.
|
|
144
|
+
*/
|
|
145
|
+
--zx-text-base: 14px;
|
|
146
|
+
--zx-text-xs: calc(var(--zx-text-base) - 2px);
|
|
147
|
+
--zx-text-sm: calc(var(--zx-text-base) - 1px);
|
|
148
|
+
--zx-text-md: var(--zx-text-base);
|
|
149
|
+
--zx-text-lg: calc(var(--zx-text-base) * 8 / 7);
|
|
150
|
+
--zx-text-xl: calc(var(--zx-text-base) * 9 / 7);
|
|
151
|
+
--zx-text-2xl: calc(var(--zx-text-base) * 12 / 7);
|
|
152
|
+
--zx-text-3xl: calc(var(--zx-text-base) * 15 / 7);
|
|
139
153
|
|
|
140
154
|
/*
|
|
141
155
|
* Weight and tracking. Interface text sits at the mid weights — medium for labels and rows,
|
|
142
|
-
* semibold for headings and the current item;
|
|
143
|
-
* runs slightly tight (the root sets it), titles a little tighter.
|
|
156
|
+
* semibold for headings and the current item; `title` is for page titles and figures only. UI
|
|
157
|
+
* text runs slightly tight (the root sets it), titles a little tighter.
|
|
144
158
|
*/
|
|
145
159
|
--zx-weight-medium: 500;
|
|
146
160
|
--zx-weight-semibold: 600;
|
|
161
|
+
--zx-weight-title: 650;
|
|
147
162
|
--zx-tracking-tight: -0.01em;
|
|
148
163
|
--zx-tracking-title: -0.015em;
|
|
149
164
|
|