@zeyos/zx 5.3.0 → 5.4.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 +45 -0
- package/README.md +26 -0
- package/dist/zx.css +121 -64
- package/dist/zx.min.css +1 -1
- package/docs/llms.md +199 -10
- package/docs/llms.txt +19 -1
- package/package.json +1 -1
- package/src/components/message/message.css +6 -2
- package/styles/tokens/dark.css +28 -0
- package/styles/tokens/semantic.css +101 -59
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,51 @@ and friends remain the complete record.
|
|
|
8
8
|
|
|
9
9
|
## Unreleased
|
|
10
10
|
|
|
11
|
+
## 5.4.0 — 2026-10-29
|
|
12
|
+
|
|
13
|
+
Glass rebuilt as a lit pane with a body under it, five more materials in the theme studio, and a
|
|
14
|
+
choosing guide at the head of the agent reference.
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
|
|
18
|
+
- Five materials in the theme studio beside Flat, Glass and Deep glass: **Frost** (milk glass —
|
|
19
|
+
heavy diffusion, no coherent reflection), **Smoke** (tinted glass with a real body that darkens
|
|
20
|
+
the scene behind it), **Paper** (opaque and matte: a contact shadow, a modest cast and a fine
|
|
21
|
+
tooth), **Satin** (opaque and brushed: a soft sheen across raised surfaces, a bright rim on
|
|
22
|
+
controls) and **Enamel** (an opaque body under a glossy coat: a narrow highlight along the top
|
|
23
|
+
edge and a darker foot). The opaque three filter nothing, so they render cheaply and survive
|
|
24
|
+
every fallback unchanged. Every material is a complete recipe over the same roles, exported as
|
|
25
|
+
token overrides.
|
|
26
|
+
- Six glass ingredients the stylesheet declares per theme and every recipe composes —
|
|
27
|
+
`--zx-color-glass-rim`, `-ring`, `-lift`, `-shade`, `-edge`, `-tint` — and `--zx-glass-grain`,
|
|
28
|
+
a faint grey tooth; one material recipe therefore serves light and dark alike. The shade is a
|
|
29
|
+
pane's own body — white in light, black in dark — so every translucent material keeps a floor
|
|
30
|
+
under which the scene cannot drag text contrast, and the browser smoke suite asserts that floor.
|
|
31
|
+
- The agent reference opens with "Choosing what to build with": every screen mapped to the layout
|
|
32
|
+
to start from, every job to its component, the theming decisions an application makes, and
|
|
33
|
+
what never to build by hand; both `llms.txt` indexes and the README carry the layout-first rule.
|
|
34
|
+
|
|
35
|
+
### Changed
|
|
36
|
+
|
|
37
|
+
- **Glass is a lit pane, not a grey tint.** The stylesheet's own material (the studio's Glass) is
|
|
38
|
+
rebuilt: a thinner base under a white lift from the top edge instead of a grey wash, the light
|
|
39
|
+
on the pane's edge — a near-white top rim, a hairline inner ring and, in dark, a cut outer line —
|
|
40
|
+
rather than a corner specular on its face, a filter that saturates so the colour behind survives
|
|
41
|
+
the blur, and a faint accent caustic at the far corner. The lift stops short of the pane's
|
|
42
|
+
middle, so the face stays optically quiet. **Deep glass** is a genuinely thick pane rather than
|
|
43
|
+
the same numbers turned up: a lit top line, a darker foot, a narrow inner glow, one faint
|
|
44
|
+
diagonal band, more refraction and a fine grain under the reflection. Applications that override
|
|
45
|
+
`--zx-overlay-surface-image`, `--zx-glass-overlay-shadow` or the glass filters keep their
|
|
46
|
+
values; everything else follows.
|
|
47
|
+
|
|
48
|
+
### Fixed
|
|
49
|
+
|
|
50
|
+
- A toast's status tint reached only the info colour: the tint was written into the toast image
|
|
51
|
+
token, which resolves at the theme root. The toast composes its own tint over the shared image.
|
|
52
|
+
- Without `backdrop-filter` support, cards, navigation chrome and controls kept their translucent
|
|
53
|
+
glass colours; the fallback now makes every glass role opaque, as the overlays already were.
|
|
54
|
+
- A resting card on an opaque material took the overlay's elevation.
|
|
55
|
+
|
|
11
56
|
## 5.3.0 — 2026-10-29
|
|
12
57
|
|
|
13
58
|
The record collection's toolbar, chips, drawers and pager become one shared composition in the
|
package/README.md
CHANGED
|
@@ -191,6 +191,25 @@ ZeyOS binding — see `src/zeyos/modules.js`.
|
|
|
191
191
|
| `skeleton()`, `skeletonText()`, `skeletonTable()` | Placeholders shaped like the content that is coming. |
|
|
192
192
|
| `truncate()` | Clamps text to a number of lines, with the full value on hover. |
|
|
193
193
|
|
|
194
|
+
## Start from a layout
|
|
195
|
+
|
|
196
|
+
The [layout gallery](https://zx.zeyos.com/layouts) holds complete, working screens on one shared
|
|
197
|
+
application shell, each with its source. Start a new screen from the closest one and change the
|
|
198
|
+
data and the copy, rather than composing components on a blank page: the columns, toolbar,
|
|
199
|
+
drawers, states, and keyboard map come with it.
|
|
200
|
+
|
|
201
|
+
- **Templates** — complete applications: `mail`, `issue-tracker`, `wiki`, `ai-chat`,
|
|
202
|
+
`agent-workspace`, `invoice-editor`, `item-inventory`, `workflows`, `infrastructure`, `crm`.
|
|
203
|
+
- **Patterns** — single screens: `master-detail`, `record-collection` (any list of records as a
|
|
204
|
+
table, list, cards, gallery, or board), `dashboard`, `inbox`, `record-page`, `agent-chat`,
|
|
205
|
+
`record-wizard`, `checkout-wizard`, `settings-workspace`, `system-states`, `zeyos-invoices`.
|
|
206
|
+
|
|
207
|
+
`layouts.html#<id>` opens one; `layout.html#<id>` shows it alone. The shell helpers
|
|
208
|
+
(`layouts/kit.js`, `kit.css`) and the record-screen composition (`createOverview()` in
|
|
209
|
+
`layouts/overview.js`, `overview.css`) are served beside the layouts and are meant to be copied into an application.
|
|
210
|
+
The agent reference ([docs/llms.md](docs/llms.md), "Choosing what to build with") maps every
|
|
211
|
+
screen to a layout and every job to a component.
|
|
212
|
+
|
|
194
213
|
## Talking to ZeyOS
|
|
195
214
|
|
|
196
215
|
Use `@zeyos/client` for ZeyOS authentication, transport, generated resource operations, and runtime
|
|
@@ -294,6 +313,13 @@ ink in both themes, so the one solid accent on a screen never turns into a brigh
|
|
|
294
313
|
[theme studio](https://zx.zeyos.com/theme.html) renders every component family under a live theme and
|
|
295
314
|
exports the result.
|
|
296
315
|
|
|
316
|
+
The studio's **Material** is how surfaces answer light — Glass (the default, a thin lit pane),
|
|
317
|
+
Deep glass, Frost (milk glass), Smoke (tinted glass), Paper, Satin and Enamel (opaque: matte,
|
|
318
|
+
brushed or glazed, no blur), or Flat. Each is a set of token overrides composed from six per-theme ingredients
|
|
319
|
+
(`--zx-color-glass-rim`, `-ring`, `-lift`, `-shade`, `-edge`, `-tint`), so one recipe serves
|
|
320
|
+
light and dark, and reduced-transparency, high-contrast and forced-colour settings restore solid
|
|
321
|
+
surfaces on their own.
|
|
322
|
+
|
|
297
323
|
Anything beyond the accent is a semantic token override, without reaching into component CSS:
|
|
298
324
|
|
|
299
325
|
```css
|
package/dist/zx.css
CHANGED
|
@@ -189,15 +189,16 @@
|
|
|
189
189
|
--zx-app-icon-halo-size: 14px;
|
|
190
190
|
--zx-app-icon-halo-strength: 22%;
|
|
191
191
|
--zx-overlay-specular-strength: 48%;
|
|
192
|
-
--zx-glass-blur:
|
|
193
|
-
--zx-glass-saturation:
|
|
192
|
+
--zx-glass-blur: 10px;
|
|
193
|
+
--zx-glass-saturation: 140%;
|
|
194
194
|
--zx-glass-color-strength: 82%;
|
|
195
|
-
--zx-glass-filter-icon: blur(
|
|
196
|
-
--zx-glass-filter-control: blur(
|
|
197
|
-
--zx-glass-filter-raised: blur(
|
|
198
|
-
--zx-glass-filter-chrome: blur(
|
|
199
|
-
--zx-glass-filter-overlay: blur(
|
|
200
|
-
--zx-glass-filter-panel: blur(
|
|
195
|
+
--zx-glass-filter-icon: blur(6px) saturate(135%);
|
|
196
|
+
--zx-glass-filter-control: blur(8px) saturate(130%);
|
|
197
|
+
--zx-glass-filter-raised: blur(14px) saturate(145%);
|
|
198
|
+
--zx-glass-filter-chrome: blur(16px) saturate(140%);
|
|
199
|
+
--zx-glass-filter-overlay: blur(20px) saturate(165%);
|
|
200
|
+
--zx-glass-filter-panel: blur(24px) saturate(150%);
|
|
201
|
+
--zx-glass-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='1' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0.03 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
|
|
201
202
|
}
|
|
202
203
|
:root,
|
|
203
204
|
[data-zx-theme=light] {
|
|
@@ -266,12 +267,18 @@
|
|
|
266
267
|
--zx-surface-shadow: var(--zx-shadow-1);
|
|
267
268
|
--zx-overlay-shadow: var(--zx-shadow-3);
|
|
268
269
|
--zx-drag-shadow: 0 2px 4px -1px color-mix(in srgb, var(--zx-gray-950) 10%, transparent), 0 12px 28px -6px color-mix(in srgb, var(--zx-gray-950) 22%, transparent);
|
|
269
|
-
--zx-color-glass-border: color-mix(in srgb, var(--zx-gray-0)
|
|
270
|
+
--zx-color-glass-border: color-mix(in srgb, var(--zx-gray-0) 70%, transparent);
|
|
270
271
|
--zx-color-glass-highlight: color-mix(in srgb, var(--zx-gray-0) 24%, transparent);
|
|
271
272
|
--zx-color-glass-highlight-strong: color-mix(in srgb, var(--zx-gray-0) 38%, transparent);
|
|
272
|
-
--zx-color-
|
|
273
|
-
--zx-glass-
|
|
274
|
-
--zx-glass-
|
|
273
|
+
--zx-color-glass-rim: color-mix(in srgb, var(--zx-gray-0) 95%, transparent);
|
|
274
|
+
--zx-color-glass-ring: color-mix(in srgb, var(--zx-gray-0) 45%, transparent);
|
|
275
|
+
--zx-color-glass-lift: color-mix(in srgb, var(--zx-gray-0) 62%, transparent);
|
|
276
|
+
--zx-color-glass-shade: color-mix(in srgb, var(--zx-gray-0) 22%, transparent);
|
|
277
|
+
--zx-color-glass-edge: transparent;
|
|
278
|
+
--zx-color-glass-tint: color-mix(in srgb, var(--zx-gray-950) 12%, transparent);
|
|
279
|
+
--zx-color-overlay-backdrop: color-mix(in srgb, var(--zx-gray-950) 22%, transparent);
|
|
280
|
+
--zx-glass-control-shadow: inset 0 1px 0 color-mix(in srgb, var(--zx-gray-0) 80%, transparent), 0 1px 2px color-mix(in srgb, var(--zx-gray-950) 6%, transparent);
|
|
281
|
+
--zx-glass-chrome-shadow: inset -1px 0 0 color-mix(in srgb, var(--zx-gray-0) 60%, transparent), inset 0 1px 0 color-mix(in srgb, var(--zx-gray-0) 80%, transparent);
|
|
275
282
|
--zx-header-bg: var(--zx-gray-900);
|
|
276
283
|
--zx-header-text: var(--zx-gray-50);
|
|
277
284
|
}
|
|
@@ -293,47 +300,41 @@
|
|
|
293
300
|
--zx-focus-ring: 0 0 0 3px color-mix(in srgb, var(--zx-color-ring) 45%, transparent);
|
|
294
301
|
--zx-color-app-icon-depth: color-mix(in srgb, var(--zx-color-app-icon-shade) 26%, transparent);
|
|
295
302
|
--zx-app-icon-rim-base: var(--zx-color-glass-highlight);
|
|
296
|
-
--zx-color-glass-surface: color-mix(in srgb, var(--zx-color-bg-raised)
|
|
297
|
-
--zx-color-glass-chrome: color-mix(in srgb, var(--zx-color-bg-surface)
|
|
298
|
-
--zx-color-glass-control: color-mix(in srgb, var(--zx-color-bg-control)
|
|
299
|
-
--zx-color-glass-control-hover: color-mix(in srgb, var(--zx-color-bg-hover)
|
|
303
|
+
--zx-color-glass-surface: color-mix(in srgb, var(--zx-color-bg-raised) 58%, transparent);
|
|
304
|
+
--zx-color-glass-chrome: color-mix(in srgb, var(--zx-color-bg-surface) 76%, transparent);
|
|
305
|
+
--zx-color-glass-control: color-mix(in srgb, var(--zx-color-bg-control) 66%, transparent);
|
|
306
|
+
--zx-color-glass-control-hover: color-mix(in srgb, var(--zx-color-bg-hover) 60%, var(--zx-color-glass-surface));
|
|
300
307
|
--zx-color-overlay-base: var(--zx-color-bg-raised);
|
|
301
|
-
--zx-color-overlay-surface: color-mix(in srgb, var(--zx-color-overlay-base)
|
|
302
|
-
--zx-color-overlay-panel: color-mix(in srgb, var(--zx-color-overlay-base)
|
|
303
|
-
--zx-color-overlay-border: color-mix(in srgb, var(--zx-color-text)
|
|
308
|
+
--zx-color-overlay-surface: color-mix(in srgb, var(--zx-color-overlay-base) 58%, transparent);
|
|
309
|
+
--zx-color-overlay-panel: color-mix(in srgb, var(--zx-color-overlay-base) 64%, transparent);
|
|
310
|
+
--zx-color-overlay-border: color-mix(in srgb, var(--zx-color-text) 12%, transparent);
|
|
304
311
|
--zx-color-overlay-hover: color-mix(in srgb, var(--zx-color-text) 8%, transparent);
|
|
305
312
|
--zx-color-overlay-selected: color-mix(in srgb, var(--zx-color-accent) 18%, transparent);
|
|
306
313
|
--zx-color-overlay-divider: color-mix(in srgb, var(--zx-color-text) 11%, transparent);
|
|
307
314
|
--zx-color-overlay-scrim: color-mix(in srgb, var(--zx-color-overlay-base) 28%, transparent);
|
|
308
315
|
--zx-overlay-surface-image:
|
|
309
316
|
linear-gradient(
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
color-mix(in srgb, var(--zx-color-glass-
|
|
313
|
-
transparent
|
|
314
|
-
radial-gradient(
|
|
315
|
-
120% 100% at 8% -12%,
|
|
316
|
-
color-mix(in srgb, var(--zx-color-accent) 8%, transparent),
|
|
317
|
-
transparent 58%);
|
|
318
|
-
--zx-overlay-toast-image:
|
|
317
|
+
180deg,
|
|
318
|
+
var(--zx-color-glass-lift) 0%,
|
|
319
|
+
color-mix(in srgb, var(--zx-color-glass-lift) 15%, transparent) 18%,
|
|
320
|
+
transparent 45%),
|
|
319
321
|
radial-gradient(
|
|
320
|
-
120%
|
|
321
|
-
color-mix(in srgb, var(--zx-
|
|
322
|
+
120% 70% at 100% 100%,
|
|
323
|
+
color-mix(in srgb, var(--zx-color-accent) 4%, transparent),
|
|
322
324
|
transparent 62%),
|
|
323
|
-
var(--zx-
|
|
325
|
+
linear-gradient(var(--zx-color-glass-shade), var(--zx-color-glass-shade));
|
|
326
|
+
--zx-overlay-toast-image: var(--zx-overlay-surface-image);
|
|
324
327
|
--zx-overlay-panel-image:
|
|
325
|
-
radial-gradient(
|
|
326
|
-
140% 100% at 0% 0%,
|
|
327
|
-
color-mix(in srgb, var(--zx-color-glass-highlight-strong) var(--zx-overlay-specular-strength), transparent) 0%,
|
|
328
|
-
transparent 58%),
|
|
329
|
-
radial-gradient(
|
|
330
|
-
100% 70% at 100% 0%,
|
|
331
|
-
color-mix(in srgb, var(--zx-color-accent) 5%, transparent),
|
|
332
|
-
transparent 64%),
|
|
333
328
|
linear-gradient(
|
|
334
329
|
180deg,
|
|
335
|
-
|
|
336
|
-
transparent
|
|
330
|
+
var(--zx-color-glass-lift) 0%,
|
|
331
|
+
color-mix(in srgb, var(--zx-color-glass-lift) 15%, transparent) 16%,
|
|
332
|
+
transparent 40%),
|
|
333
|
+
radial-gradient(
|
|
334
|
+
90% 60% at 100% 100%,
|
|
335
|
+
color-mix(in srgb, var(--zx-color-accent) 4%, transparent),
|
|
336
|
+
transparent 60%),
|
|
337
|
+
linear-gradient(var(--zx-color-glass-shade), var(--zx-color-glass-shade));
|
|
337
338
|
--zx-app-icon-shadow:
|
|
338
339
|
inset 0 1px 0 color-mix(in srgb, var(--zx-gray-0) 14%, transparent),
|
|
339
340
|
inset 0 -1px 0 color-mix(in srgb, var(--zx-gray-950) 28%, transparent),
|
|
@@ -342,16 +343,49 @@
|
|
|
342
343
|
inset 0 1px 0 color-mix(in srgb, var(--zx-gray-0) 20%, transparent),
|
|
343
344
|
inset 0 -1px 0 color-mix(in srgb, var(--zx-gray-950) 32%, transparent),
|
|
344
345
|
0 4px 10px color-mix(in srgb, var(--zx-color-app-icon-shade) 30%, transparent);
|
|
345
|
-
--zx-glass-raised-shadow:
|
|
346
|
+
--zx-glass-raised-shadow:
|
|
347
|
+
inset 0 1px 0 var(--zx-color-glass-rim),
|
|
348
|
+
inset 0 0 0 1px color-mix(in srgb, var(--zx-color-glass-ring) 90%, transparent),
|
|
349
|
+
0 0 0 1px var(--zx-color-glass-edge),
|
|
350
|
+
0 1px 2px color-mix(in srgb, var(--zx-gray-950) 5%, transparent),
|
|
351
|
+
0 10px 28px -10px color-mix(in srgb, var(--zx-gray-950) 14%, transparent);
|
|
346
352
|
--zx-glass-overlay-shadow:
|
|
347
|
-
inset 0 1px 0
|
|
348
|
-
inset 0 0 0 1px
|
|
353
|
+
inset 0 1px 0 var(--zx-color-glass-rim),
|
|
354
|
+
inset 0 0 0 1px var(--zx-color-glass-ring),
|
|
355
|
+
0 0 0 1px var(--zx-color-glass-edge),
|
|
356
|
+
0 1px 2px color-mix(in srgb, var(--zx-gray-950) 6%, transparent),
|
|
349
357
|
var(--zx-overlay-shadow);
|
|
350
358
|
--zx-glass-panel-shadow:
|
|
351
|
-
inset 0 1px 0
|
|
352
|
-
inset 0 0 0 1px color-mix(in srgb, var(--zx-color-glass-
|
|
359
|
+
inset 0 1px 0 var(--zx-color-glass-rim),
|
|
360
|
+
inset 0 0 0 1px color-mix(in srgb, var(--zx-color-glass-ring) 90%, transparent),
|
|
361
|
+
0 0 0 1px var(--zx-color-glass-edge),
|
|
362
|
+
0 2px 4px color-mix(in srgb, var(--zx-gray-950) 6%, transparent),
|
|
353
363
|
var(--zx-overlay-shadow);
|
|
354
364
|
}
|
|
365
|
+
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
|
|
366
|
+
:root,
|
|
367
|
+
.zx-scope,
|
|
368
|
+
[data-zx-theme],
|
|
369
|
+
[data-zx-preset] {
|
|
370
|
+
--zx-color-glass-surface: var(--zx-color-bg-raised) !important;
|
|
371
|
+
--zx-color-glass-chrome: var(--zx-color-bg-surface) !important;
|
|
372
|
+
--zx-color-glass-control: var(--zx-color-bg-control) !important;
|
|
373
|
+
--zx-color-glass-control-hover: var(--zx-color-bg-hover) !important;
|
|
374
|
+
--zx-color-overlay-surface: var(--zx-color-bg-raised) !important;
|
|
375
|
+
--zx-color-overlay-panel: var(--zx-color-bg-raised) !important;
|
|
376
|
+
--zx-color-overlay-backdrop: var(--zx-color-bg-backdrop) !important;
|
|
377
|
+
--zx-overlay-specular-strength: 0% !important;
|
|
378
|
+
--zx-overlay-surface-image: none !important;
|
|
379
|
+
--zx-overlay-toast-image: none !important;
|
|
380
|
+
--zx-overlay-panel-image: none !important;
|
|
381
|
+
--zx-glass-filter-icon: none !important;
|
|
382
|
+
--zx-glass-filter-control: none !important;
|
|
383
|
+
--zx-glass-filter-raised: none !important;
|
|
384
|
+
--zx-glass-filter-chrome: none !important;
|
|
385
|
+
--zx-glass-filter-overlay: none !important;
|
|
386
|
+
--zx-glass-filter-panel: none !important;
|
|
387
|
+
}
|
|
388
|
+
}
|
|
355
389
|
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
|
|
356
390
|
:root,
|
|
357
391
|
.zx-scope,
|
|
@@ -372,6 +406,12 @@
|
|
|
372
406
|
--zx-overlay-surface-image: none !important;
|
|
373
407
|
--zx-overlay-toast-image: none !important;
|
|
374
408
|
--zx-overlay-panel-image: none !important;
|
|
409
|
+
--zx-color-glass-rim: transparent !important;
|
|
410
|
+
--zx-color-glass-ring: transparent !important;
|
|
411
|
+
--zx-color-glass-lift: transparent !important;
|
|
412
|
+
--zx-color-glass-shade: transparent !important;
|
|
413
|
+
--zx-color-glass-edge: transparent !important;
|
|
414
|
+
--zx-color-glass-tint: var(--zx-color-bg-raised) !important;
|
|
375
415
|
--zx-app-icon-core-strength: 68% !important;
|
|
376
416
|
--zx-app-icon-rim-strength: 62% !important;
|
|
377
417
|
--zx-app-icon-bloom-strength: 0% !important;
|
|
@@ -405,6 +445,12 @@
|
|
|
405
445
|
--zx-color-overlay-selected: Highlight !important;
|
|
406
446
|
--zx-color-overlay-divider: CanvasText !important;
|
|
407
447
|
--zx-color-overlay-scrim: Canvas !important;
|
|
448
|
+
--zx-color-glass-rim: transparent !important;
|
|
449
|
+
--zx-color-glass-ring: transparent !important;
|
|
450
|
+
--zx-color-glass-lift: transparent !important;
|
|
451
|
+
--zx-color-glass-shade: transparent !important;
|
|
452
|
+
--zx-color-glass-edge: transparent !important;
|
|
453
|
+
--zx-color-glass-tint: Canvas !important;
|
|
408
454
|
--zx-overlay-specular-strength: 0% !important;
|
|
409
455
|
--zx-overlay-surface-image: none !important;
|
|
410
456
|
--zx-overlay-toast-image: none !important;
|
|
@@ -418,22 +464,6 @@
|
|
|
418
464
|
--zx-glass-panel-shadow: none !important;
|
|
419
465
|
}
|
|
420
466
|
}
|
|
421
|
-
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
|
|
422
|
-
:root,
|
|
423
|
-
.zx-scope,
|
|
424
|
-
[data-zx-theme],
|
|
425
|
-
[data-zx-preset] {
|
|
426
|
-
--zx-color-overlay-surface: var(--zx-color-bg-raised) !important;
|
|
427
|
-
--zx-color-overlay-panel: var(--zx-color-bg-raised) !important;
|
|
428
|
-
--zx-color-overlay-backdrop: var(--zx-color-bg-backdrop) !important;
|
|
429
|
-
--zx-overlay-specular-strength: 0% !important;
|
|
430
|
-
--zx-overlay-surface-image: none !important;
|
|
431
|
-
--zx-overlay-toast-image: none !important;
|
|
432
|
-
--zx-overlay-panel-image: none !important;
|
|
433
|
-
--zx-glass-filter-overlay: none !important;
|
|
434
|
-
--zx-glass-filter-panel: none !important;
|
|
435
|
-
}
|
|
436
|
-
}
|
|
437
467
|
|
|
438
468
|
/* styles/tokens/dark.css */
|
|
439
469
|
[data-zx-theme=dark] {
|
|
@@ -450,6 +480,17 @@
|
|
|
450
480
|
--zx-color-bg-backdrop: color-mix(in srgb, var(--zx-gray-950) 75%, transparent);
|
|
451
481
|
--zx-color-overlay-base: color-mix(in srgb, var(--zx-gray-800) 60%, var(--zx-gray-700));
|
|
452
482
|
--zx-color-overlay-backdrop: color-mix(in srgb, var(--zx-gray-950) 38%, transparent);
|
|
483
|
+
--zx-color-glass-border: color-mix(in srgb, var(--zx-gray-0) 14%, transparent);
|
|
484
|
+
--zx-color-glass-rim: color-mix(in srgb, var(--zx-gray-0) 24%, transparent);
|
|
485
|
+
--zx-color-glass-ring: color-mix(in srgb, var(--zx-gray-0) 7%, transparent);
|
|
486
|
+
--zx-color-glass-lift: color-mix(in srgb, var(--zx-gray-0) 10%, transparent);
|
|
487
|
+
--zx-color-glass-shade: color-mix(in srgb, var(--zx-gray-950) 20%, transparent);
|
|
488
|
+
--zx-color-glass-edge: color-mix(in srgb, var(--zx-gray-950) 45%, transparent);
|
|
489
|
+
--zx-color-glass-tint: color-mix(in srgb, var(--zx-gray-950) 38%, transparent);
|
|
490
|
+
--zx-color-glass-control: color-mix(in srgb, var(--zx-gray-0) 7%, transparent);
|
|
491
|
+
--zx-color-glass-control-hover: color-mix(in srgb, var(--zx-gray-0) 12%, transparent);
|
|
492
|
+
--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);
|
|
493
|
+
--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);
|
|
453
494
|
--zx-color-border: color-mix(in srgb, var(--zx-gray-0) 9%, transparent);
|
|
454
495
|
--zx-color-border-subtle: color-mix(in srgb, var(--zx-gray-0) 6%, transparent);
|
|
455
496
|
--zx-color-border-strong: color-mix(in srgb, var(--zx-gray-0) 24%, transparent);
|
|
@@ -520,6 +561,17 @@
|
|
|
520
561
|
--zx-color-bg-backdrop: color-mix(in srgb, var(--zx-gray-950) 75%, transparent);
|
|
521
562
|
--zx-color-overlay-base: color-mix(in srgb, var(--zx-gray-800) 60%, var(--zx-gray-700));
|
|
522
563
|
--zx-color-overlay-backdrop: color-mix(in srgb, var(--zx-gray-950) 38%, transparent);
|
|
564
|
+
--zx-color-glass-border: color-mix(in srgb, var(--zx-gray-0) 14%, transparent);
|
|
565
|
+
--zx-color-glass-rim: color-mix(in srgb, var(--zx-gray-0) 24%, transparent);
|
|
566
|
+
--zx-color-glass-ring: color-mix(in srgb, var(--zx-gray-0) 7%, transparent);
|
|
567
|
+
--zx-color-glass-lift: color-mix(in srgb, var(--zx-gray-0) 10%, transparent);
|
|
568
|
+
--zx-color-glass-shade: color-mix(in srgb, var(--zx-gray-950) 20%, transparent);
|
|
569
|
+
--zx-color-glass-edge: color-mix(in srgb, var(--zx-gray-950) 45%, transparent);
|
|
570
|
+
--zx-color-glass-tint: color-mix(in srgb, var(--zx-gray-950) 38%, transparent);
|
|
571
|
+
--zx-color-glass-control: color-mix(in srgb, var(--zx-gray-0) 7%, transparent);
|
|
572
|
+
--zx-color-glass-control-hover: color-mix(in srgb, var(--zx-gray-0) 12%, transparent);
|
|
573
|
+
--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);
|
|
574
|
+
--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);
|
|
523
575
|
--zx-color-border: color-mix(in srgb, var(--zx-gray-0) 9%, transparent);
|
|
524
576
|
--zx-color-border-subtle: color-mix(in srgb, var(--zx-gray-0) 6%, transparent);
|
|
525
577
|
--zx-color-border-strong: color-mix(in srgb, var(--zx-gray-0) 24%, transparent);
|
|
@@ -5585,14 +5637,19 @@ button.zx-panel__toggle:focus-visible {
|
|
|
5585
5637
|
.zx-message__toast {
|
|
5586
5638
|
border-color: color-mix(in srgb, var(--zx-message-kind) 28%, var(--zx-color-overlay-border));
|
|
5587
5639
|
background-color: var(--zx-color-overlay-surface);
|
|
5588
|
-
background-image:
|
|
5640
|
+
background-image:
|
|
5641
|
+
radial-gradient(
|
|
5642
|
+
120% 160% at 0% 0%,
|
|
5643
|
+
color-mix(in srgb, var(--zx-message-kind) 16%, transparent),
|
|
5644
|
+
transparent 62%),
|
|
5645
|
+
var(--zx-overlay-toast-image);
|
|
5589
5646
|
background-clip: padding-box;
|
|
5590
5647
|
-webkit-backdrop-filter: var(--zx-glass-filter-overlay);
|
|
5591
5648
|
backdrop-filter: var(--zx-glass-filter-overlay);
|
|
5592
5649
|
box-shadow: var(--zx-glass-overlay-shadow);
|
|
5593
5650
|
}
|
|
5594
5651
|
}
|
|
5595
|
-
@media (prefers-reduced-transparency: reduce) {
|
|
5652
|
+
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
|
|
5596
5653
|
.zx-message__toast {
|
|
5597
5654
|
border-color: var(--zx-color-border);
|
|
5598
5655
|
background: var(--zx-message-fallback-bg);
|