@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.
Files changed (114) hide show
  1. package/CHANGELOG.md +125 -0
  2. package/README.md +49 -16
  3. package/dist/types/components/app-sidebar/app-sidebar.d.ts +33 -0
  4. package/dist/types/components/badge/badge.d.ts +5 -4
  5. package/dist/types/components/datebox/date-range-box.d.ts +15 -2
  6. package/dist/types/components/datebox/datebox.d.ts +37 -3
  7. package/dist/types/components/kbd/kbd.d.ts +41 -0
  8. package/dist/types/components/launcher/launcher.d.ts +4 -2
  9. package/dist/types/components/prose/prose.d.ts +69 -0
  10. package/dist/types/components/questionnaire/questionnaire.d.ts +0 -36
  11. package/dist/types/components/stat-tile/stat-tile.d.ts +20 -0
  12. package/dist/types/components/tag-picker/tag-picker.d.ts +11 -5
  13. package/dist/types/components/tree/tree.d.ts +44 -3
  14. package/dist/types/core/icons.d.ts +22 -1
  15. package/dist/types/index.d.ts +4 -2
  16. package/dist/types/internal/app-rail.d.ts +10 -3
  17. package/dist/types/internal/row-actions.d.ts +151 -0
  18. package/dist/zx-zeyos.esm.js +264 -82
  19. package/dist/zx-zeyos.esm.min.js +4 -4
  20. package/dist/zx.css +1288 -439
  21. package/dist/zx.esm.js +952 -392
  22. package/dist/zx.esm.min.js +6 -6
  23. package/dist/zx.global.js +952 -392
  24. package/dist/zx.global.min.js +6 -6
  25. package/dist/zx.min.css +1 -1
  26. package/docs/api.json +112 -4
  27. package/docs/llms.md +433 -38
  28. package/docs/llms.txt +21 -1
  29. package/package.json +1 -1
  30. package/src/components/account-menu/account-menu.js +2 -2
  31. package/src/components/app-rail/app-rail.css +11 -11
  32. package/src/components/app-sidebar/app-sidebar.css +90 -17
  33. package/src/components/app-sidebar/app-sidebar.js +120 -12
  34. package/src/components/badge/badge.css +33 -20
  35. package/src/components/badge/badge.js +5 -4
  36. package/src/components/breadcrumb/breadcrumb.css +28 -3
  37. package/src/components/breadcrumb/breadcrumb.js +2 -2
  38. package/src/components/button/button.css +24 -13
  39. package/src/components/button/button.js +20 -2
  40. package/src/components/calendar/calendar.css +14 -4
  41. package/src/components/card-view/card-view.js +2 -2
  42. package/src/components/chart/chart.js +20 -5
  43. package/src/components/check-button/check-button.css +11 -3
  44. package/src/components/check-button/check-button.js +3 -3
  45. package/src/components/context-menu/context-menu.css +7 -1
  46. package/src/components/date-picker/date-picker.css +6 -0
  47. package/src/components/date-picker/date-picker.js +5 -5
  48. package/src/components/date-picker/date-range-picker.css +6 -0
  49. package/src/components/date-picker/date-range-picker.js +3 -3
  50. package/src/components/date-picker/month-picker.js +3 -3
  51. package/src/components/date-picker/time-picker.css +6 -0
  52. package/src/components/datebox/date-range-box.js +30 -6
  53. package/src/components/datebox/datebox.js +44 -7
  54. package/src/components/dialog/dialog.css +0 -1
  55. package/src/components/dialog/dialog.js +2 -1
  56. package/src/components/dock/dock.js +2 -2
  57. package/src/components/dropdown/dropdown.css +2 -1
  58. package/src/components/entity-ref/entity-ref.css +8 -1
  59. package/src/components/file-item/file-item.css +1 -1
  60. package/src/components/finder/finder.js +2 -2
  61. package/src/components/groupbox/groupbox.js +2 -2
  62. package/src/components/kanban-view/kanban-view.css +8 -4
  63. package/src/components/kanban-view/kanban-view.js +3 -3
  64. package/src/components/kbd/kbd.css +64 -0
  65. package/src/components/kbd/kbd.js +121 -0
  66. package/src/components/launcher/launcher.css +30 -25
  67. package/src/components/launcher/launcher.js +15 -21
  68. package/src/components/list-toolbar/list-toolbar.css +7 -1
  69. package/src/components/menu-button/menu-button.css +9 -2
  70. package/src/components/message/message.css +6 -2
  71. package/src/components/message/message.js +2 -2
  72. package/src/components/module-bar/module-bar.css +11 -1
  73. package/src/components/multi-value-editor/multi-value-editor.js +4 -4
  74. package/src/components/navigation-bar/navigation-bar.css +3 -2
  75. package/src/components/pagination/pagination.js +2 -2
  76. package/src/components/panel/panel.js +2 -2
  77. package/src/components/prose/prose.css +53 -0
  78. package/src/components/prose/prose.js +152 -0
  79. package/src/components/questionnaire/questionnaire.css +7 -17
  80. package/src/components/questionnaire/questionnaire.js +16 -1
  81. package/src/components/rating/rating.css +3 -1
  82. package/src/components/search/search.js +2 -2
  83. package/src/components/select/glyphs.js +3 -3
  84. package/src/components/select/select.css +35 -7
  85. package/src/components/select/select.js +4 -4
  86. package/src/components/stat-tile/stat-tile.css +56 -2
  87. package/src/components/stat-tile/stat-tile.js +25 -2
  88. package/src/components/stepper/stepper.css +2 -1
  89. package/src/components/stepper/stepper.js +3 -3
  90. package/src/components/tabbox/tabbox.css +2 -2
  91. package/src/components/tabbox/tabbox.js +2 -2
  92. package/src/components/table/table.css +52 -16
  93. package/src/components/table/table.js +7 -5
  94. package/src/components/tag-picker/tag-picker.css +56 -43
  95. package/src/components/tag-picker/tag-picker.js +21 -16
  96. package/src/components/tree/tree.css +44 -0
  97. package/src/components/tree/tree.js +97 -9
  98. package/src/components/value-list/value-list.css +25 -4
  99. package/src/components/value-list/value-list.js +2 -1
  100. package/src/components/view/record-view.js +3 -3
  101. package/src/components/view-settings/view-settings.css +2 -1
  102. package/src/components/workspace-switcher/workspace-switcher.js +3 -3
  103. package/src/core/icons.js +34 -3
  104. package/src/elements/define.js +1 -0
  105. package/src/index.js +4 -2
  106. package/src/internal/app-rail.js +5 -1
  107. package/src/internal/row-actions.js +203 -0
  108. package/styles/base.css +26 -1
  109. package/styles/prose.css +306 -0
  110. package/styles/tokens/dark.css +108 -103
  111. package/styles/tokens/global.css +24 -9
  112. package/styles/tokens/semantic.css +520 -198
  113. package/styles/tokens/themes.css +9 -0
  114. package/styles/zx.css +3 -0
@@ -1,16 +1,18 @@
1
1
  /*
2
- * Tier-2 semantic tokens — light theme (the default).
2
+ * Tier-2 semantic tokens — the light theme and the dark theme, as one mapping.
3
3
  *
4
- * The mapping uses a white canvas with a grey chrome tone beside it, translucent neutral
5
- * hover/current fills, quiet borders and inputs, strong body text, a categorical tone palette
6
- * apart from both the accent and the status colours, and one tight control geometry (30px
7
- * controls, `--zx-radius` corners, a 3px translucent focus ring). There is a single geometry: an
8
- * application that wants a different rhythm sets `--zx-space-unit` and `--zx-control-height`
9
- * rather than switching a mode.
4
+ * Light uses a white canvas with a grey chrome tone beside it; dark a charcoal page lifted off
5
+ * black with a chrome tone and four surface steps above it, translucent white borders and inputs,
6
+ * and text softened to about 90% white. Both have translucent neutral hover/current fills, quiet
7
+ * borders and inputs, a categorical tone palette apart from both the accent and the status
8
+ * colours, and one tight control geometry (30px controls, `--zx-radius` corners, a 2px accent
9
+ * focus ring). There is a single geometry: an application that wants a different rhythm sets
10
+ * `--zx-space-unit` and `--zx-control-height` rather than switching a mode.
10
11
  *
11
- * The accent roles read `--zx-accent-*` rather than the emerald ramp directly, which is what lets
12
- * `tokens/themes.css` retheme them. Status colours keep their own ramps on purpose — see the note
13
- * in that file.
12
+ * Every role is declared once, on `:root`, and every theme element only says which half of a
13
+ * `light-dark()` pair it reads, so one override on `:root` reaches every region. The accent roles
14
+ * read `--zx-accent-*` rather than the emerald ramp directly, which is what lets `tokens/themes.css`
15
+ * retheme them. Status colours keep their own ramps on purpose — see the note in that file.
14
16
  */
15
17
  /*
16
18
  * Geometry and material settings — every token here is theme-independent, so it is declared on
@@ -26,6 +28,17 @@
26
28
  --zx-control-radius: var(--zx-radius-lg);
27
29
  --zx-control-font-size: var(--zx-text-md);
28
30
  --zx-control-font-weight: 500;
31
+ /* A data row — a table row, a single-line list row: one rhythm for every list on a screen,
32
+ following the control height, so a tighter or looser product is still one decision. 36px at
33
+ the default. */
34
+ --zx-row-height: calc(var(--zx-control-height) + var(--zx-space-1) + 2px);
35
+ /* Reading type — the second register, for authored content in `.zx-prose`: its own family
36
+ (the interface stack until a theme says otherwise), size, line height, and measure, so a
37
+ product can set its documents in a serif without setting its interface in one. */
38
+ --zx-font-prose: var(--zx-font-sans);
39
+ --zx-prose-size: var(--zx-text-lg);
40
+ --zx-prose-leading: 1.7;
41
+ --zx-prose-measure: 62ch;
29
42
  /* Blur applied behind a backdrop that asked for it. */
30
43
  --zx-overlay-blur: 8px;
31
44
  /* AppIcon is a dark chromatic lens: colour lives in its rim and low bloom, not a glossy fill.
@@ -37,185 +50,490 @@
37
50
  --zx-app-icon-halo-size: 14px;
38
51
  --zx-app-icon-halo-strength: 22%;
39
52
  --zx-overlay-specular-strength: 48%;
40
- --zx-glass-blur: 8px;
41
- --zx-glass-saturation: 130%;
53
+ --zx-glass-blur: 10px;
54
+ --zx-glass-saturation: 140%;
42
55
  --zx-glass-color-strength: 82%;
43
- /* Material filters are roles, not component recipes. Aurora remains a separate canvas layer. */
44
- --zx-glass-filter-icon: blur(4px) saturate(118%);
45
- --zx-glass-filter-control: blur(6px) saturate(116%);
46
- --zx-glass-filter-raised: blur(8px) saturate(120%);
47
- --zx-glass-filter-chrome: blur(10px) saturate(122%);
48
- --zx-glass-filter-overlay: blur(16px) saturate(140%);
49
- --zx-glass-filter-panel: blur(14px) saturate(132%);
56
+ /* Material filters are roles, not component recipes. Aurora remains a separate canvas layer.
57
+ Saturation keeps the colour behind a pane alive through the blur; the pane's own lightness is
58
+ a colour role (the lift and shade ingredients below), so the filters are the same in both
59
+ themes. */
60
+ --zx-glass-filter-icon: blur(6px) saturate(135%);
61
+ --zx-glass-filter-control: blur(8px) saturate(130%);
62
+ --zx-glass-filter-raised: blur(14px) saturate(145%);
63
+ --zx-glass-filter-chrome: blur(16px) saturate(140%);
64
+ --zx-glass-filter-overlay: blur(20px) saturate(165%);
65
+ --zx-glass-filter-panel: blur(24px) saturate(150%);
66
+ /* A fine grey tooth for frosted and paper surfaces: mid-grey noise in sRGB at 3% alpha, one
67
+ octave, no colour. It is a texture, not a dither: too faint to hide banding, faint enough not
68
+ to veil a dark pane. */
69
+ --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");
50
70
  }
51
71
 
52
- /* The light theme — colours only. */
72
+ /*
73
+ * Appearance. A theme element declares one thing — which half of every `light-dark()` pair below
74
+ * it reads — and no colour of its own, so nothing on it shadows a value inherited from `:root`.
75
+ * `auto` reads the dark half when the system asks for dark, and otherwise keeps what surrounds it.
76
+ */
53
77
  :root,
54
78
  [data-zx-theme="light"] {
55
79
  color-scheme: light;
56
- --zx-color-bg-page: var(--zx-gray-50);
57
- --zx-color-bg-surface: var(--zx-gray-0);
58
- --zx-color-bg-raised: var(--zx-gray-0);
59
- --zx-color-bg-control: var(--zx-gray-0);
60
- /* Navigation and inspector columns: one clear step below the canvas, so tone rather than a
61
- line separates them from the working area. */
62
- --zx-color-bg-chrome: color-mix(in srgb, var(--zx-gray-100) 80%, var(--zx-gray-50));
63
- --zx-color-bg-muted: var(--zx-gray-100);
64
- --zx-color-bg-selected: color-mix(in srgb, var(--zx-accent-600) 10%, var(--zx-gray-0));
65
- --zx-color-bg-backdrop: color-mix(in srgb, var(--zx-gray-950) 50%, transparent);
66
- --zx-color-border: var(--zx-gray-200);
67
- --zx-color-border-strong: var(--zx-gray-300);
68
- --zx-color-border-control: var(--zx-gray-200);
69
- --zx-color-text: var(--zx-gray-950);
70
- /* Between the 500 and 600 stops, so secondary text holds 4.5:1 on the chrome tone and on a
71
- current row there, not only on white. */
72
- --zx-color-text-muted: color-mix(in srgb, var(--zx-gray-500) 50%, var(--zx-gray-600));
73
- /* Icons and non-essential meta: at least 3:1 on the surface, the chrome, and a current row. */
74
- --zx-color-text-subtle: color-mix(in srgb, var(--zx-gray-500) 70%, var(--zx-gray-400));
75
- --zx-color-text-placeholder: var(--zx-gray-400);
76
- --zx-color-text-invert: var(--zx-gray-50);
77
- --zx-color-app-icon-glyph: var(--zx-gray-0);
78
- --zx-color-app-icon-shade: var(--zx-gray-950);
79
- --zx-color-accent: var(--zx-accent-600);
80
- --zx-color-accent-hover: var(--zx-accent-700);
81
- --zx-color-accent-active: var(--zx-accent-700);
82
- --zx-color-accent-subtle: color-mix(in srgb, var(--zx-accent-600) 10%, var(--zx-gray-0));
83
- --zx-color-on-accent: var(--zx-gray-0);
84
- /* The solid accent — the one primary action on a screen. Both themes fill it with the 600 stop
85
- and white ink; `--zx-color-accent` stays the stop each theme reads best as text and marks. */
86
- --zx-color-accent-solid: var(--zx-accent-600);
87
- --zx-color-accent-solid-hover: var(--zx-accent-700);
88
- --zx-color-accent-solid-active: color-mix(in srgb, var(--zx-accent-700) 82%, var(--zx-gray-950));
89
- --zx-color-on-accent-solid: var(--zx-gray-0);
90
- /* Status colours are ink as often as fill (badges, messages, field errors): each keeps 4.5:1 on
91
- every surface and on its own tint. Red 500 does not, so danger takes the 600 step. */
92
- --zx-color-danger: var(--zx-red-600);
93
- --zx-color-danger-bg: color-mix(in srgb, var(--zx-red-500) 10%, var(--zx-gray-0));
94
- --zx-color-warning: var(--zx-amber-600);
95
- --zx-color-warning-bg: color-mix(in srgb, var(--zx-amber-400) 18%, var(--zx-gray-0));
96
- --zx-color-success: var(--zx-green-600);
97
- --zx-color-success-bg: color-mix(in srgb, var(--zx-green-600) 10%, var(--zx-gray-0));
98
- --zx-color-info: var(--zx-blue-600);
99
- --zx-color-info-bg: color-mix(in srgb, var(--zx-blue-500) 10%, var(--zx-gray-0));
100
- --zx-color-tone-blue-fg: var(--zx-tone-blue-700);
101
- --zx-color-tone-teal-fg: var(--zx-tone-teal-700);
102
- --zx-color-tone-green-fg: var(--zx-tone-green-700);
103
- --zx-color-tone-amber-fg: var(--zx-tone-amber-700);
104
- --zx-color-tone-orange-fg: var(--zx-tone-orange-700);
105
- --zx-color-tone-red-fg: var(--zx-tone-red-700);
106
- --zx-color-tone-pink-fg: var(--zx-tone-pink-700);
107
- --zx-color-tone-violet-fg: var(--zx-tone-violet-700);
108
- --zx-color-tone-slate-fg: var(--zx-tone-slate-700);
109
- /* Chart series, in assignment order. The order is what keeps neighbours apart (adjacent pairs
110
- at ΔE ≥ 8 under protanopia and deuteranopia), and it deliberately does not open on the
111
- accent. The 500 stops clear 3:1 against the light and the dark surface alike, so the dark
112
- theme keeps this list. */
113
- --zx-color-chart-1: var(--zx-tone-blue-500);
114
- --zx-color-chart-2: var(--zx-tone-orange-500);
115
- --zx-color-chart-3: var(--zx-tone-teal-500);
116
- --zx-color-chart-4: var(--zx-tone-amber-500);
117
- --zx-color-chart-5: var(--zx-tone-pink-500);
118
- --zx-color-chart-6: var(--zx-tone-green-500);
119
- --zx-color-chart-7: var(--zx-tone-violet-500);
120
- --zx-color-chart-8: var(--zx-tone-red-500);
121
- /* Solid identity fills — a module tile, an application icon — carrying the white icon glyph.
122
- The 500 stops keep that glyph at 3:1 or better and read as the same tone on either theme,
123
- so, like the chart series, the dark theme keeps this list. */
124
- --zx-color-tone-blue-solid: var(--zx-tone-blue-500);
125
- --zx-color-tone-teal-solid: var(--zx-tone-teal-500);
126
- --zx-color-tone-green-solid: var(--zx-tone-green-500);
127
- --zx-color-tone-amber-solid: var(--zx-tone-amber-500);
128
- --zx-color-tone-orange-solid: var(--zx-tone-orange-500);
129
- --zx-color-tone-red-solid: var(--zx-tone-red-500);
130
- --zx-color-tone-pink-solid: var(--zx-tone-pink-500);
131
- --zx-color-tone-violet-solid: var(--zx-tone-violet-500);
132
- --zx-color-tone-slate-solid: var(--zx-tone-slate-500);
133
- /* A resting surface one hair off what it sits on — a panel, an outlined card in a lane, a slider
134
- thumb: a contact shadow only, far below an overlay or a dragged item. */
135
- --zx-surface-shadow: var(--zx-shadow-1);
136
- --zx-overlay-shadow: var(--zx-shadow-3);
137
- /* An item being dragged — a lifted card, a row in flight, a drag preview: a tight contact
138
- shadow and a wide soft one, clearly higher than a resting card and lower than an overlay. */
139
- --zx-drag-shadow: 0 2px 4px -1px color-mix(in srgb, var(--zx-gray-950) 10%, transparent),
140
- 0 12px 28px -6px color-mix(in srgb, var(--zx-gray-950) 22%, transparent);
141
- --zx-color-glass-border: color-mix(in srgb, var(--zx-gray-0) 24%, transparent);
142
- --zx-color-glass-highlight: color-mix(in srgb, var(--zx-gray-0) 24%, transparent);
143
- --zx-color-glass-highlight-strong: color-mix(in srgb, var(--zx-gray-0) 38%, transparent);
144
- --zx-color-overlay-backdrop: color-mix(in srgb, var(--zx-gray-950) 28%, transparent);
145
- --zx-glass-control-shadow: inset 0 1px 0 color-mix(in srgb, var(--zx-gray-0) 18%, transparent), var(--zx-shadow-1);
146
- --zx-glass-chrome-shadow: inset 0 1px 0 color-mix(in srgb, var(--zx-gray-0) 16%, transparent), var(--zx-shadow-1);
147
- --zx-header-bg: var(--zx-gray-900);
148
- --zx-header-text: var(--zx-gray-50);
80
+ }
81
+
82
+ [data-zx-theme="dark"] {
83
+ color-scheme: dark;
84
+ }
85
+
86
+ @media (prefers-color-scheme: dark) {
87
+ [data-zx-theme="auto"] {
88
+ color-scheme: dark;
89
+ }
149
90
  }
150
91
 
151
92
  /*
152
- * Colours derived from other theme colours — glass, overlays, focus, hover and current fills, the
153
- * tone tints — are restated on every theme element, not only on :root. A custom property is
154
- * resolved where it is declared and inherited as a finished value, so a dark region on a light
155
- * page would otherwise inherit light glass and light overlays. The dark theme, which loads later,
156
- * overrides the ones it derives differently. Geometry and the base palette stay on :root (the block
157
- * at the top of this file and tokens/global.css), so an application's own overrides there still
158
- * reach nested regions.
93
+ * The colour roles, each declared once. Where the themes differ the value is
94
+ * `light-dark(<light>, <dark>)`; a role derived from another role keeps one formula. Custom
95
+ * properties are not resolved where they are declared — the `light-dark()` travels with the
96
+ * inherited value, and every element picks its half from its own `color-scheme` — so an
97
+ * application's `:root` override, and a theme studio export, reach every light, dark, auto, and
98
+ * nested region alike. For the same reason no colour role may be registered with `@property`: a
99
+ * registered `<color>` is resolved where it is declared, on `:root`, in light.
100
+ *
101
+ * Browsers without `light-dark()` (before 2024) read the per-theme blocks further down instead.
159
102
  */
160
- :root,
161
- [data-zx-theme] {
162
- /* Hover and current are translucent text, so they read on the canvas, the chrome, and a card
163
- alike. "Current" (where you are) is neutral and stronger than hover; "selected" (what you
164
- picked) keeps the accent tint. */
165
- --zx-color-bg-hover: color-mix(in srgb, var(--zx-color-text) 4.5%, transparent);
166
- --zx-color-bg-current: color-mix(in srgb, var(--zx-color-text) 8%, transparent);
167
- /* Row and grid dividers, lighter than a frame. */
168
- --zx-color-border-subtle: color-mix(in srgb, var(--zx-color-text) 7%, transparent);
169
- /* Categorical tones — identity, not state: tags, chips, icon tiles, avatars. A soft fill (13%
170
- of the tone over the surface) with ink at 4.5:1 or better on it. */
171
- --zx-color-tone-blue-bg: color-mix(in srgb, var(--zx-tone-blue-500) 13%, var(--zx-color-bg-surface));
172
- --zx-color-tone-teal-bg: color-mix(in srgb, var(--zx-tone-teal-500) 13%, var(--zx-color-bg-surface));
173
- --zx-color-tone-green-bg: color-mix(in srgb, var(--zx-tone-green-500) 13%, var(--zx-color-bg-surface));
174
- --zx-color-tone-amber-bg: color-mix(in srgb, var(--zx-tone-amber-500) 13%, var(--zx-color-bg-surface));
175
- --zx-color-tone-orange-bg: color-mix(in srgb, var(--zx-tone-orange-500) 13%, var(--zx-color-bg-surface));
176
- --zx-color-tone-red-bg: color-mix(in srgb, var(--zx-tone-red-500) 13%, var(--zx-color-bg-surface));
177
- --zx-color-tone-pink-bg: color-mix(in srgb, var(--zx-tone-pink-500) 13%, var(--zx-color-bg-surface));
178
- --zx-color-tone-violet-bg: color-mix(in srgb, var(--zx-tone-violet-500) 13%, var(--zx-color-bg-surface));
179
- --zx-color-tone-slate-bg: color-mix(in srgb, var(--zx-tone-slate-500) 13%, var(--zx-color-bg-surface));
180
- --zx-color-ring: var(--zx-color-accent);
181
- --zx-focus-ring: 0 0 0 3px color-mix(in srgb, var(--zx-color-ring) 45%, transparent);
182
- --zx-color-app-icon-depth: color-mix(in srgb, var(--zx-color-app-icon-shade) 26%, transparent);
183
- --zx-app-icon-rim-base: var(--zx-color-glass-highlight);
184
- --zx-color-glass-surface: color-mix(in srgb, var(--zx-color-bg-raised) 78%, transparent);
185
- /* Persistent application chrome is quieter and more opaque than a raised feature card. */
186
- --zx-color-glass-chrome: color-mix(in srgb, var(--zx-color-bg-surface) 90%, transparent);
187
- --zx-color-glass-control: color-mix(in srgb, var(--zx-color-bg-control) 88%, transparent);
188
- --zx-color-glass-control-hover: color-mix(in srgb, var(--zx-color-bg-hover) 76%, var(--zx-color-glass-surface));
189
- /* Overlay glass is composed from four roles: a neutral base, translucent colour, a restrained
190
- reflection, and the backdrop behind modal panels. Keeping them separate makes the material
191
- visibly react to Aurora/content without baking decoration into each component. */
192
- --zx-color-overlay-base: var(--zx-color-bg-raised);
193
- --zx-color-overlay-surface: color-mix(in srgb, var(--zx-color-overlay-base) 72%, transparent);
194
- --zx-color-overlay-panel: color-mix(in srgb, var(--zx-color-overlay-base) 80%, transparent);
195
- --zx-color-overlay-border: color-mix(in srgb, var(--zx-color-text) 14%, transparent);
196
- --zx-color-overlay-hover: color-mix(in srgb, var(--zx-color-text) 8%, transparent);
197
- --zx-color-overlay-selected: color-mix(in srgb, var(--zx-color-accent) 18%, transparent);
198
- --zx-color-overlay-divider: color-mix(in srgb, var(--zx-color-text) 11%, transparent);
199
- --zx-color-overlay-scrim: color-mix(in srgb, var(--zx-color-overlay-base) 28%, transparent);
200
- --zx-overlay-surface-image: linear-gradient(145deg,
201
- color-mix(in srgb, var(--zx-color-glass-highlight-strong) var(--zx-overlay-specular-strength), transparent) 0%,
202
- color-mix(in srgb, var(--zx-color-glass-highlight) 16%, transparent) 28%,
203
- transparent 54%), radial-gradient(120% 100% at 8% -12%,
204
- color-mix(in srgb, var(--zx-color-accent) 8%, transparent), transparent 58%);
205
- --zx-overlay-toast-image: radial-gradient(120% 160% at 0% 0%,
206
- color-mix(in srgb, var(--zx-message-kind, var(--zx-color-info)) 18%, transparent), transparent 62%),
207
- var(--zx-overlay-surface-image);
208
- --zx-overlay-panel-image: radial-gradient(140% 100% at 0% 0%,
209
- color-mix(in srgb, var(--zx-color-glass-highlight-strong) var(--zx-overlay-specular-strength), transparent) 0%,
210
- transparent 58%), radial-gradient(100% 70% at 100% 0%,
211
- color-mix(in srgb, var(--zx-color-accent) 5%, transparent), transparent 64%),
212
- linear-gradient(180deg, color-mix(in srgb, var(--zx-color-glass-highlight) 16%, transparent) 0%,
213
- transparent 28%);
214
- --zx-app-icon-shadow: inset 0 1px 0 color-mix(in srgb, var(--zx-gray-0) 14%, transparent), inset 0 -1px 0 color-mix(in srgb, var(--zx-gray-950) 28%, transparent), 0 2px 6px color-mix(in srgb, var(--zx-color-app-icon-shade) 24%, transparent);
215
- --zx-app-icon-shadow-hover: inset 0 1px 0 color-mix(in srgb, var(--zx-gray-0) 20%, transparent), inset 0 -1px 0 color-mix(in srgb, var(--zx-gray-950) 32%, transparent), 0 4px 10px color-mix(in srgb, var(--zx-color-app-icon-shade) 30%, transparent);
216
- --zx-glass-raised-shadow: inset 0 1px 0 color-mix(in srgb, var(--zx-gray-0) 18%, transparent), var(--zx-overlay-shadow);
217
- --zx-glass-overlay-shadow: inset 0 1px 0 color-mix(in srgb, var(--zx-color-glass-highlight-strong) 42%, transparent), inset 0 0 0 1px color-mix(in srgb, var(--zx-color-glass-highlight) 20%, transparent), var(--zx-overlay-shadow);
218
- --zx-glass-panel-shadow: inset 0 1px 0 color-mix(in srgb, var(--zx-color-glass-highlight-strong) 34%, transparent), inset 0 0 0 1px color-mix(in srgb, var(--zx-color-glass-highlight) 14%, transparent), var(--zx-overlay-shadow);
103
+ @supports (color: light-dark(#000, #fff)) {
104
+ :root {
105
+ /* White canvas in light; in dark the ramp is lifted off black — page, chrome, surface,
106
+ raised, and the overlay base ascend in that order, each mixed from two neutral stops so a
107
+ tinted neutral ramp carries through. */
108
+ --zx-color-bg-page: light-dark(var(--zx-gray-50),
109
+ color-mix(in srgb, var(--zx-gray-900) 80%, var(--zx-gray-800)));
110
+ --zx-color-bg-surface: light-dark(var(--zx-gray-0),
111
+ color-mix(in srgb, var(--zx-gray-900) 40%, var(--zx-gray-800)));
112
+ --zx-color-bg-raised: light-dark(var(--zx-gray-0),
113
+ color-mix(in srgb, var(--zx-gray-800) 90%, var(--zx-gray-700)));
114
+ --zx-color-bg-control: light-dark(var(--zx-gray-0),
115
+ color-mix(in srgb, var(--zx-gray-0) 5%, transparent));
116
+ /* Navigation and inspector columns: one clear step below the canvas, so tone rather than a
117
+ line separates them from the working area. In dark, just above the page and below the
118
+ canvas: the working area is still the brightest column. */
119
+ --zx-color-bg-chrome: light-dark(color-mix(in srgb, var(--zx-gray-100) 80%, var(--zx-gray-50)),
120
+ color-mix(in srgb, var(--zx-color-bg-page) 75%, var(--zx-color-bg-surface)));
121
+ --zx-color-bg-muted: light-dark(var(--zx-gray-100), var(--zx-color-bg-raised));
122
+ --zx-color-bg-backdrop: light-dark(color-mix(in srgb, var(--zx-gray-950) 50%, transparent),
123
+ color-mix(in srgb, var(--zx-gray-950) 75%, transparent));
124
+ /* Hover and current are translucent text, so they read on the canvas, the chrome, and a card
125
+ alike. "Current" (where you are) is neutral and stronger than hover; "selected" (what you
126
+ picked) keeps the accent tint. */
127
+ --zx-color-bg-hover: light-dark(color-mix(in srgb, var(--zx-color-text) 4.5%, transparent),
128
+ color-mix(in srgb, var(--zx-color-text) 5%, transparent));
129
+ --zx-color-bg-current: light-dark(color-mix(in srgb, var(--zx-color-text) 8%, transparent),
130
+ color-mix(in srgb, var(--zx-color-text) 9%, transparent));
131
+ /* Quiet borders and inputs: palette greys in light, translucent white (9%, 14%) in dark. */
132
+ --zx-color-border: light-dark(var(--zx-gray-200),
133
+ color-mix(in srgb, var(--zx-gray-0) 9%, transparent));
134
+ --zx-color-border-strong: light-dark(var(--zx-gray-300),
135
+ color-mix(in srgb, var(--zx-gray-0) 24%, transparent));
136
+ --zx-color-border-control: light-dark(var(--zx-gray-200),
137
+ color-mix(in srgb, var(--zx-gray-0) 14%, transparent));
138
+ /* Row and grid dividers, lighter than a frame. */
139
+ --zx-color-border-subtle: light-dark(color-mix(in srgb, var(--zx-color-text) 7%, transparent),
140
+ color-mix(in srgb, var(--zx-gray-0) 6%, transparent));
141
+ /* Where a chrome column meets the canvas. In light the tone step alone separates them, so no
142
+ line is drawn; dark, which has less tone to work with, keeps the hairline, and the contrast
143
+ preferences put it back in both. */
144
+ --zx-color-border-chrome: light-dark(transparent, var(--zx-color-border-subtle));
145
+ /* Strong body text in light; in dark softened off pure white (about 90%). */
146
+ --zx-color-text: light-dark(var(--zx-gray-950), var(--zx-gray-200));
147
+ /* Between the 500 and 600 stops in light, so secondary text holds 4.5:1 on the chrome tone
148
+ and on a current row there, not only on white; near 63% in dark. */
149
+ --zx-color-text-muted: light-dark(color-mix(in srgb, var(--zx-gray-500) 50%, var(--zx-gray-600)),
150
+ var(--zx-gray-400));
151
+ /* Icons and non-essential meta: at least 3:1 on the surface, the chrome, and a current row. */
152
+ --zx-color-text-subtle: light-dark(color-mix(in srgb, var(--zx-gray-500) 70%, var(--zx-gray-400)),
153
+ color-mix(in srgb, var(--zx-gray-500) 50%, var(--zx-gray-400)));
154
+ --zx-color-text-placeholder: light-dark(var(--zx-gray-400), var(--zx-gray-500));
155
+ --zx-color-text-invert: light-dark(var(--zx-gray-50), var(--zx-gray-950));
156
+ /* Navigation at rest: one ink step under the content, so the eye lands on the page and the
157
+ columns beside it read as places rather than as a second document. Hover, focus, and the
158
+ current item take the full text colour. Above 7:1 on the chrome tone in both themes. */
159
+ --zx-color-text-chrome: color-mix(in srgb, var(--zx-color-text-muted) 70%, var(--zx-color-text));
160
+ --zx-color-app-icon-glyph: var(--zx-gray-0);
161
+ --zx-color-app-icon-shade: var(--zx-gray-950);
162
+ --zx-color-app-icon-depth: color-mix(in srgb, var(--zx-color-app-icon-shade) 26%, transparent);
163
+ /* White on the 600 accent in light, near-black on the 400 in dark: the ramp promise in
164
+ tokens/themes.css is what keeps both legible. */
165
+ --zx-color-on-accent: light-dark(var(--zx-gray-0), var(--zx-gray-950));
166
+ --zx-color-on-accent-solid: var(--zx-gray-0);
167
+ /* Status colours are ink as often as fill (badges, messages, field errors): each keeps 4.5:1 on
168
+ every surface and on its own tint. Red 500 does not, so light danger takes the 600 step, and
169
+ dark danger's tint is a little lighter than the other statuses' so its ink keeps 4.5:1. */
170
+ --zx-color-danger: light-dark(var(--zx-red-600), var(--zx-red-400));
171
+ --zx-color-danger-bg: light-dark(color-mix(in srgb, var(--zx-red-500) 10%, var(--zx-gray-0)),
172
+ color-mix(in srgb, var(--zx-red-400) 13%, var(--zx-color-bg-surface)));
173
+ --zx-color-warning: light-dark(var(--zx-amber-600), var(--zx-amber-400));
174
+ --zx-color-warning-bg: light-dark(color-mix(in srgb, var(--zx-amber-400) 18%, var(--zx-gray-0)),
175
+ color-mix(in srgb, var(--zx-amber-400) 16%, var(--zx-color-bg-surface)));
176
+ --zx-color-success: light-dark(var(--zx-green-600), var(--zx-green-400));
177
+ --zx-color-success-bg: light-dark(color-mix(in srgb, var(--zx-green-600) 10%, var(--zx-gray-0)),
178
+ color-mix(in srgb, var(--zx-green-400) 16%, var(--zx-color-bg-surface)));
179
+ --zx-color-info: light-dark(var(--zx-blue-600), var(--zx-blue-400));
180
+ --zx-color-info-bg: light-dark(color-mix(in srgb, var(--zx-blue-500) 10%, var(--zx-gray-0)),
181
+ color-mix(in srgb, var(--zx-blue-400) 16%, var(--zx-color-bg-surface)));
182
+ /* Categorical tones — identity, not state: tags, chips, icon tiles, avatars. A soft fill of the
183
+ tone over the surface (13% in light, 20% in dark) with ink at 4.5:1 or better on it. */
184
+ --zx-color-tone-blue-bg: light-dark(color-mix(in srgb, var(--zx-tone-blue-500) 13%, var(--zx-color-bg-surface)),
185
+ color-mix(in srgb, var(--zx-tone-blue-500) 20%, var(--zx-color-bg-surface)));
186
+ --zx-color-tone-blue-fg: light-dark(var(--zx-tone-blue-700), var(--zx-tone-blue-300));
187
+ --zx-color-tone-teal-bg: light-dark(color-mix(in srgb, var(--zx-tone-teal-500) 13%, var(--zx-color-bg-surface)),
188
+ color-mix(in srgb, var(--zx-tone-teal-500) 20%, var(--zx-color-bg-surface)));
189
+ --zx-color-tone-teal-fg: light-dark(var(--zx-tone-teal-700), var(--zx-tone-teal-300));
190
+ --zx-color-tone-green-bg: light-dark(color-mix(in srgb, var(--zx-tone-green-500) 13%, var(--zx-color-bg-surface)),
191
+ color-mix(in srgb, var(--zx-tone-green-500) 20%, var(--zx-color-bg-surface)));
192
+ --zx-color-tone-green-fg: light-dark(var(--zx-tone-green-700), var(--zx-tone-green-300));
193
+ --zx-color-tone-amber-bg: light-dark(color-mix(in srgb, var(--zx-tone-amber-500) 13%, var(--zx-color-bg-surface)),
194
+ color-mix(in srgb, var(--zx-tone-amber-500) 20%, var(--zx-color-bg-surface)));
195
+ --zx-color-tone-amber-fg: light-dark(var(--zx-tone-amber-700), var(--zx-tone-amber-300));
196
+ --zx-color-tone-orange-bg: light-dark(color-mix(in srgb, var(--zx-tone-orange-500) 13%, var(--zx-color-bg-surface)),
197
+ color-mix(in srgb, var(--zx-tone-orange-500) 20%, var(--zx-color-bg-surface)));
198
+ --zx-color-tone-orange-fg: light-dark(var(--zx-tone-orange-700), var(--zx-tone-orange-300));
199
+ --zx-color-tone-red-bg: light-dark(color-mix(in srgb, var(--zx-tone-red-500) 13%, var(--zx-color-bg-surface)),
200
+ color-mix(in srgb, var(--zx-tone-red-500) 20%, var(--zx-color-bg-surface)));
201
+ --zx-color-tone-red-fg: light-dark(var(--zx-tone-red-700), var(--zx-tone-red-300));
202
+ --zx-color-tone-pink-bg: light-dark(color-mix(in srgb, var(--zx-tone-pink-500) 13%, var(--zx-color-bg-surface)),
203
+ color-mix(in srgb, var(--zx-tone-pink-500) 20%, var(--zx-color-bg-surface)));
204
+ --zx-color-tone-pink-fg: light-dark(var(--zx-tone-pink-700), var(--zx-tone-pink-300));
205
+ --zx-color-tone-violet-bg: light-dark(color-mix(in srgb, var(--zx-tone-violet-500) 13%, var(--zx-color-bg-surface)),
206
+ color-mix(in srgb, var(--zx-tone-violet-500) 20%, var(--zx-color-bg-surface)));
207
+ --zx-color-tone-violet-fg: light-dark(var(--zx-tone-violet-700), var(--zx-tone-violet-300));
208
+ --zx-color-tone-slate-bg: light-dark(color-mix(in srgb, var(--zx-tone-slate-500) 13%, var(--zx-color-bg-surface)),
209
+ color-mix(in srgb, var(--zx-tone-slate-500) 20%, var(--zx-color-bg-surface)));
210
+ --zx-color-tone-slate-fg: light-dark(var(--zx-tone-slate-700), var(--zx-tone-slate-300));
211
+ /* Chart series, in assignment order. The order is what keeps neighbours apart (adjacent pairs
212
+ at ΔE ≥ 8 under protanopia and deuteranopia), and it deliberately does not open on the
213
+ accent. The 500 stops clear 3:1 against the light and the dark surface alike, so both themes
214
+ read this one list. */
215
+ --zx-color-chart-1: var(--zx-tone-blue-500);
216
+ --zx-color-chart-2: var(--zx-tone-orange-500);
217
+ --zx-color-chart-3: var(--zx-tone-teal-500);
218
+ --zx-color-chart-4: var(--zx-tone-amber-500);
219
+ --zx-color-chart-5: var(--zx-tone-pink-500);
220
+ --zx-color-chart-6: var(--zx-tone-green-500);
221
+ --zx-color-chart-7: var(--zx-tone-violet-500);
222
+ --zx-color-chart-8: var(--zx-tone-red-500);
223
+ /* Solid identity fills — a module tile, an application icon — carrying the white icon glyph.
224
+ The 500 stops keep that glyph at 3:1 or better and read as the same tone on either theme,
225
+ so, like the chart series, both themes read this one list. */
226
+ --zx-color-tone-blue-solid: var(--zx-tone-blue-500);
227
+ --zx-color-tone-teal-solid: var(--zx-tone-teal-500);
228
+ --zx-color-tone-green-solid: var(--zx-tone-green-500);
229
+ --zx-color-tone-amber-solid: var(--zx-tone-amber-500);
230
+ --zx-color-tone-orange-solid: var(--zx-tone-orange-500);
231
+ --zx-color-tone-red-solid: var(--zx-tone-red-500);
232
+ --zx-color-tone-pink-solid: var(--zx-tone-pink-500);
233
+ --zx-color-tone-violet-solid: var(--zx-tone-violet-500);
234
+ --zx-color-tone-slate-solid: var(--zx-tone-slate-500);
235
+ /*
236
+ * Shadows. `light-dark()` chooses a colour, not a shadow list, so a shadow whose shape differs
237
+ * between the themes lists both shapes, each layer transparent in the theme it does not belong
238
+ * to: every theme paints exactly its own layers. The light layers are the palette's
239
+ * `--zx-shadow-1` and `--zx-shadow-3`.
240
+ *
241
+ * A resting surface sits one hair off what it is on — a panel, an outlined card in a lane, a
242
+ * slider thumb: a contact shadow only, far below an overlay or a dragged item. Depth on a dark
243
+ * canvas comes from light, not shadow: there it gets a faintly lit top edge and a short contact
244
+ * shadow, since a heavier one would read as lifted.
245
+ */
246
+ --zx-surface-shadow: inset 0 1px 0 light-dark(transparent, color-mix(in srgb, var(--zx-gray-0) 5%, transparent)),
247
+ 0 1px 2px light-dark(rgb(9 9 11 / 5%), color-mix(in srgb, var(--zx-gray-950) 30%, transparent));
248
+ --zx-overlay-shadow: 0 10px 15px -3px light-dark(rgb(9 9 11 / 10%), transparent),
249
+ 0 4px 6px -4px light-dark(rgb(9 9 11 / 10%), transparent),
250
+ 0 12px 36px light-dark(transparent, rgb(0 0 0 / 45%));
251
+ /* An item being dragged — a lifted card, a row in flight, a drag preview: a tight contact
252
+ shadow and a wide soft one, clearly higher than a resting card and lower than an overlay. A
253
+ shadow alone barely reads on a dark canvas, so there the lifted item also gets a faint light
254
+ rim. */
255
+ --zx-drag-shadow: 0 0 0 1px light-dark(transparent, color-mix(in srgb, var(--zx-gray-0) 7%, transparent)),
256
+ 0 2px 4px -1px light-dark(color-mix(in srgb, var(--zx-gray-950) 10%, transparent), transparent),
257
+ 0 12px 28px -6px light-dark(color-mix(in srgb, var(--zx-gray-950) 22%, transparent), transparent),
258
+ 0 2px 6px -1px light-dark(transparent, rgb(0 0 0 / 40%)),
259
+ 0 14px 32px -6px light-dark(transparent, rgb(0 0 0 / 60%));
260
+ --zx-color-glass-border: light-dark(color-mix(in srgb, var(--zx-gray-0) 70%, transparent),
261
+ color-mix(in srgb, var(--zx-gray-0) 14%, transparent));
262
+ /* AppIcon's rim and specular read these two; the pane ingredients below are separate. */
263
+ --zx-color-glass-highlight: color-mix(in srgb, var(--zx-gray-0) 24%, transparent);
264
+ --zx-color-glass-highlight-strong: color-mix(in srgb, var(--zx-gray-0) 38%, transparent);
265
+ --zx-app-icon-rim-base: var(--zx-color-glass-highlight);
266
+ /* A pane of glass, in six ingredients the material recipes compose: the lit top edge (rim) and
267
+ the hairline inner ring; the lift — white laid on the pane from the top edge, which is what
268
+ makes it read as lit rather than tinted; the shade — the pane's own body, a flat veil painted
269
+ over the base colour and under the lift, which bounds what the scene can do to text
270
+ contrast: white in light, black in dark; the cut outer edge a pane needs against a dark
271
+ scene (nothing in light); and the tint of smoked glass. Dark has a quieter rim and ring, a
272
+ thin lift, and a deep smoked tint. */
273
+ --zx-color-glass-rim: light-dark(color-mix(in srgb, var(--zx-gray-0) 95%, transparent),
274
+ color-mix(in srgb, var(--zx-gray-0) 24%, transparent));
275
+ --zx-color-glass-ring: light-dark(color-mix(in srgb, var(--zx-gray-0) 45%, transparent),
276
+ color-mix(in srgb, var(--zx-gray-0) 7%, transparent));
277
+ --zx-color-glass-lift: light-dark(color-mix(in srgb, var(--zx-gray-0) 62%, transparent),
278
+ color-mix(in srgb, var(--zx-gray-0) 10%, transparent));
279
+ --zx-color-glass-shade: light-dark(color-mix(in srgb, var(--zx-gray-0) 22%, transparent),
280
+ color-mix(in srgb, var(--zx-gray-950) 20%, transparent));
281
+ --zx-color-glass-edge: light-dark(transparent, color-mix(in srgb, var(--zx-gray-950) 45%, transparent));
282
+ --zx-color-glass-tint: light-dark(color-mix(in srgb, var(--zx-gray-950) 12%, transparent),
283
+ color-mix(in srgb, var(--zx-gray-950) 38%, transparent));
284
+ --zx-color-glass-surface: color-mix(in srgb, var(--zx-color-bg-raised) 58%, transparent);
285
+ /* Persistent application chrome is quieter and more opaque than a raised feature card. */
286
+ --zx-color-glass-chrome: color-mix(in srgb, var(--zx-color-bg-surface) 76%, transparent);
287
+ --zx-color-glass-control: light-dark(color-mix(in srgb, var(--zx-color-bg-control) 66%, transparent),
288
+ color-mix(in srgb, var(--zx-gray-0) 7%, transparent));
289
+ --zx-color-glass-control-hover: light-dark(color-mix(in srgb, var(--zx-color-bg-hover) 60%, var(--zx-color-glass-surface)),
290
+ color-mix(in srgb, var(--zx-gray-0) 12%, transparent));
291
+ --zx-glass-control-shadow: inset 0 1px 0 light-dark(color-mix(in srgb, var(--zx-gray-0) 80%, transparent), color-mix(in srgb, var(--zx-gray-0) 14%, transparent)),
292
+ 0 1px 2px light-dark(color-mix(in srgb, var(--zx-gray-950) 6%, transparent), color-mix(in srgb, var(--zx-gray-950) 30%, transparent));
293
+ --zx-glass-chrome-shadow: inset -1px 0 0 light-dark(color-mix(in srgb, var(--zx-gray-0) 60%, transparent), color-mix(in srgb, var(--zx-gray-0) 6%, transparent)),
294
+ inset 0 1px 0 light-dark(color-mix(in srgb, var(--zx-gray-0) 80%, transparent), color-mix(in srgb, var(--zx-gray-0) 10%, transparent));
295
+ /* Overlay glass is a thin neutral base, the shade (the pane's body) painted over it, a short
296
+ lift from the top edge, a faint accent caustic at the far corner (the images, in the accent
297
+ block below), and the backdrop behind modal panels. The pane's light sits on its edge — the
298
+ rim and ring in the shadows — never as a wash on its face. Keeping the roles separate makes
299
+ the material visibly react to Aurora/content without baking decoration into each
300
+ component. */
301
+ --zx-color-overlay-base: light-dark(var(--zx-color-bg-raised),
302
+ color-mix(in srgb, var(--zx-gray-800) 60%, var(--zx-gray-700)));
303
+ --zx-color-overlay-surface: color-mix(in srgb, var(--zx-color-overlay-base) 58%, transparent);
304
+ --zx-color-overlay-panel: color-mix(in srgb, var(--zx-color-overlay-base) 64%, transparent);
305
+ --zx-color-overlay-backdrop: light-dark(color-mix(in srgb, var(--zx-gray-950) 22%, transparent),
306
+ color-mix(in srgb, var(--zx-gray-950) 38%, transparent));
307
+ --zx-color-overlay-border: color-mix(in srgb, var(--zx-color-text) 12%, transparent);
308
+ --zx-color-overlay-hover: color-mix(in srgb, var(--zx-color-text) 8%, transparent);
309
+ --zx-color-overlay-divider: color-mix(in srgb, var(--zx-color-text) 11%, transparent);
310
+ --zx-color-overlay-scrim: color-mix(in srgb, var(--zx-color-overlay-base) 28%, transparent);
311
+ --zx-app-icon-shadow: inset 0 1px 0 color-mix(in srgb, var(--zx-gray-0) 14%, transparent), inset 0 -1px 0 color-mix(in srgb, var(--zx-gray-950) 28%, transparent), 0 2px 6px color-mix(in srgb, var(--zx-color-app-icon-shade) 24%, transparent);
312
+ --zx-app-icon-shadow-hover: inset 0 1px 0 color-mix(in srgb, var(--zx-gray-0) 20%, transparent), inset 0 -1px 0 color-mix(in srgb, var(--zx-gray-950) 32%, transparent), 0 4px 10px color-mix(in srgb, var(--zx-color-app-icon-shade) 30%, transparent);
313
+ --zx-glass-raised-shadow: inset 0 1px 0 var(--zx-color-glass-rim), inset 0 0 0 1px color-mix(in srgb, var(--zx-color-glass-ring) 90%, transparent), 0 0 0 1px var(--zx-color-glass-edge), 0 1px 2px color-mix(in srgb, var(--zx-gray-950) 5%, transparent), 0 10px 28px -10px color-mix(in srgb, var(--zx-gray-950) 14%, transparent);
314
+ --zx-glass-overlay-shadow: inset 0 1px 0 var(--zx-color-glass-rim), inset 0 0 0 1px var(--zx-color-glass-ring), 0 0 0 1px var(--zx-color-glass-edge), 0 1px 2px color-mix(in srgb, var(--zx-gray-950) 6%, transparent), var(--zx-overlay-shadow);
315
+ --zx-glass-panel-shadow: inset 0 1px 0 var(--zx-color-glass-rim), inset 0 0 0 1px color-mix(in srgb, var(--zx-color-glass-ring) 90%, transparent), 0 0 0 1px var(--zx-color-glass-edge), 0 2px 4px color-mix(in srgb, var(--zx-gray-950) 6%, transparent), var(--zx-overlay-shadow);
316
+ --zx-header-bg: var(--zx-gray-900);
317
+ --zx-header-text: var(--zx-gray-50);
318
+ }
319
+
320
+ /*
321
+ * The roles that read the accent ramp, directly or through another role. A preset repoints the
322
+ * ramp on its own element, and a custom property is substituted where it is declared, so these
323
+ * are declared on every preset element as well: a nested `data-zx-preset` region rethemes on
324
+ * its own, with or without a theme attribute beside it. Inside such a region the preset decides
325
+ * these roles; an application override meant to reach it too names `[data-zx-preset]` beside
326
+ * `:root`. The accent roles read `--zx-accent-*` rather than the emerald ramp directly, which is
327
+ * what lets `tokens/themes.css` retheme them.
328
+ */
329
+ :root,
330
+ [data-zx-preset] {
331
+ /* Light takes the dark end of the ramp (600/700) for text, marks, and the focus ring, dark the
332
+ light end (300/400/500), so a preset that repoints the ramp lands correctly in both. */
333
+ --zx-color-accent: light-dark(var(--zx-accent-600), var(--zx-accent-400));
334
+ --zx-color-accent-hover: light-dark(var(--zx-accent-700), var(--zx-accent-300));
335
+ --zx-color-accent-active: light-dark(var(--zx-accent-700), var(--zx-accent-500));
336
+ --zx-color-accent-subtle: light-dark(color-mix(in srgb, var(--zx-accent-600) 10%, var(--zx-gray-0)),
337
+ color-mix(in srgb, var(--zx-accent-400) 16%, var(--zx-color-bg-surface)));
338
+ /* The solid accent — the one primary action on a screen. Both themes fill it with the 600 stop
339
+ and white ink, so it never turns into a bright slab in dark; `--zx-color-accent` stays the
340
+ stop each theme reads best as text and marks. */
341
+ --zx-color-accent-solid: var(--zx-accent-600);
342
+ --zx-color-accent-solid-hover: var(--zx-accent-700);
343
+ --zx-color-accent-solid-active: color-mix(in srgb, var(--zx-accent-700) 82%, var(--zx-gray-950));
344
+ /* Picked, not current: in dark a tint light enough that muted text on it keeps 4.5:1 under
345
+ every preset. */
346
+ --zx-color-bg-selected: light-dark(color-mix(in srgb, var(--zx-accent-600) 10%, var(--zx-gray-0)),
347
+ color-mix(in srgb, var(--zx-accent-400) 13%, var(--zx-color-bg-surface)));
348
+ /* Keyboard focus: one 2px line in the accent, opaque, so it clears 3:1 against every surface it
349
+ sits on (the page, the chrome, a card, a current or selected row) under any accent ramp that
350
+ keeps the ramp promise. One shadow, never a list, so `inset var(--zx-focus-ring)` draws the
351
+ same line inside a row or a tab. Where the focused element is itself an accent fill, the
352
+ component adds a 1px inner line in its own ink so ring and fill stay apart. */
353
+ --zx-color-ring: var(--zx-color-accent);
354
+ --zx-focus-ring: 0 0 0 2px var(--zx-color-ring);
355
+ --zx-color-overlay-selected: color-mix(in srgb, var(--zx-color-accent) 18%, transparent);
356
+ --zx-overlay-surface-image: linear-gradient(180deg, var(--zx-color-glass-lift) 0%,
357
+ color-mix(in srgb, var(--zx-color-glass-lift) 15%, transparent) 18%, transparent 45%),
358
+ radial-gradient(120% 70% at 100% 100%, color-mix(in srgb, var(--zx-color-accent) 4%, transparent), transparent 62%),
359
+ linear-gradient(var(--zx-color-glass-shade), var(--zx-color-glass-shade));
360
+ /* A toast adds its status tint itself, over this, so the kind set on the element reaches it. */
361
+ --zx-overlay-toast-image: var(--zx-overlay-surface-image);
362
+ --zx-overlay-panel-image: linear-gradient(180deg, var(--zx-color-glass-lift) 0%,
363
+ color-mix(in srgb, var(--zx-color-glass-lift) 15%, transparent) 16%, transparent 40%),
364
+ radial-gradient(90% 60% at 100% 100%, color-mix(in srgb, var(--zx-color-accent) 4%, transparent), transparent 60%),
365
+ linear-gradient(var(--zx-color-glass-shade), var(--zx-color-glass-shade));
366
+ }
367
+ }
368
+
369
+ /*
370
+ * The fallback for browsers without `light-dark()`: the same mapping as per-theme blocks. A
371
+ * custom property resolves where it is declared, so here the colours derived from other theme
372
+ * colours are restated on every theme element, and the dark theme (tokens/dark.css) restates the
373
+ * ones it derives differently. The values are the two halves of the pairs above —
374
+ * `tests/unit/colour-overrides.test.js` paints both paths and fails if they differ — and the
375
+ * reasons are there too. On this path an application's `:root` colour override stops at a nested
376
+ * theme element.
377
+ */
378
+ @supports not (color: light-dark(#000, #fff)) {
379
+ :root,
380
+ [data-zx-theme="light"] {
381
+ --zx-color-bg-page: var(--zx-gray-50);
382
+ --zx-color-bg-surface: var(--zx-gray-0);
383
+ --zx-color-bg-raised: var(--zx-gray-0);
384
+ --zx-color-bg-control: var(--zx-gray-0);
385
+ --zx-color-bg-chrome: color-mix(in srgb, var(--zx-gray-100) 80%, var(--zx-gray-50));
386
+ --zx-color-bg-muted: var(--zx-gray-100);
387
+ --zx-color-bg-selected: color-mix(in srgb, var(--zx-accent-600) 10%, var(--zx-gray-0));
388
+ --zx-color-bg-backdrop: color-mix(in srgb, var(--zx-gray-950) 50%, transparent);
389
+ --zx-color-border: var(--zx-gray-200);
390
+ --zx-color-border-strong: var(--zx-gray-300);
391
+ --zx-color-border-control: var(--zx-gray-200);
392
+ --zx-color-border-chrome: transparent;
393
+ --zx-color-text: var(--zx-gray-950);
394
+ --zx-color-text-muted: color-mix(in srgb, var(--zx-gray-500) 50%, var(--zx-gray-600));
395
+ --zx-color-text-subtle: color-mix(in srgb, var(--zx-gray-500) 70%, var(--zx-gray-400));
396
+ --zx-color-text-placeholder: var(--zx-gray-400);
397
+ --zx-color-text-invert: var(--zx-gray-50);
398
+ --zx-color-app-icon-glyph: var(--zx-gray-0);
399
+ --zx-color-app-icon-shade: var(--zx-gray-950);
400
+ --zx-color-accent: var(--zx-accent-600);
401
+ --zx-color-accent-hover: var(--zx-accent-700);
402
+ --zx-color-accent-active: var(--zx-accent-700);
403
+ --zx-color-accent-subtle: color-mix(in srgb, var(--zx-accent-600) 10%, var(--zx-gray-0));
404
+ --zx-color-on-accent: var(--zx-gray-0);
405
+ --zx-color-accent-solid: var(--zx-accent-600);
406
+ --zx-color-accent-solid-hover: var(--zx-accent-700);
407
+ --zx-color-accent-solid-active: color-mix(in srgb, var(--zx-accent-700) 82%, var(--zx-gray-950));
408
+ --zx-color-on-accent-solid: var(--zx-gray-0);
409
+ --zx-color-danger: var(--zx-red-600);
410
+ --zx-color-danger-bg: color-mix(in srgb, var(--zx-red-500) 10%, var(--zx-gray-0));
411
+ --zx-color-warning: var(--zx-amber-600);
412
+ --zx-color-warning-bg: color-mix(in srgb, var(--zx-amber-400) 18%, var(--zx-gray-0));
413
+ --zx-color-success: var(--zx-green-600);
414
+ --zx-color-success-bg: color-mix(in srgb, var(--zx-green-600) 10%, var(--zx-gray-0));
415
+ --zx-color-info: var(--zx-blue-600);
416
+ --zx-color-info-bg: color-mix(in srgb, var(--zx-blue-500) 10%, var(--zx-gray-0));
417
+ --zx-color-tone-blue-fg: var(--zx-tone-blue-700);
418
+ --zx-color-tone-teal-fg: var(--zx-tone-teal-700);
419
+ --zx-color-tone-green-fg: var(--zx-tone-green-700);
420
+ --zx-color-tone-amber-fg: var(--zx-tone-amber-700);
421
+ --zx-color-tone-orange-fg: var(--zx-tone-orange-700);
422
+ --zx-color-tone-red-fg: var(--zx-tone-red-700);
423
+ --zx-color-tone-pink-fg: var(--zx-tone-pink-700);
424
+ --zx-color-tone-violet-fg: var(--zx-tone-violet-700);
425
+ --zx-color-tone-slate-fg: var(--zx-tone-slate-700);
426
+ --zx-color-chart-1: var(--zx-tone-blue-500);
427
+ --zx-color-chart-2: var(--zx-tone-orange-500);
428
+ --zx-color-chart-3: var(--zx-tone-teal-500);
429
+ --zx-color-chart-4: var(--zx-tone-amber-500);
430
+ --zx-color-chart-5: var(--zx-tone-pink-500);
431
+ --zx-color-chart-6: var(--zx-tone-green-500);
432
+ --zx-color-chart-7: var(--zx-tone-violet-500);
433
+ --zx-color-chart-8: var(--zx-tone-red-500);
434
+ --zx-color-tone-blue-solid: var(--zx-tone-blue-500);
435
+ --zx-color-tone-teal-solid: var(--zx-tone-teal-500);
436
+ --zx-color-tone-green-solid: var(--zx-tone-green-500);
437
+ --zx-color-tone-amber-solid: var(--zx-tone-amber-500);
438
+ --zx-color-tone-orange-solid: var(--zx-tone-orange-500);
439
+ --zx-color-tone-red-solid: var(--zx-tone-red-500);
440
+ --zx-color-tone-pink-solid: var(--zx-tone-pink-500);
441
+ --zx-color-tone-violet-solid: var(--zx-tone-violet-500);
442
+ --zx-color-tone-slate-solid: var(--zx-tone-slate-500);
443
+ --zx-surface-shadow: var(--zx-shadow-1);
444
+ --zx-overlay-shadow: var(--zx-shadow-3);
445
+ --zx-drag-shadow: 0 2px 4px -1px color-mix(in srgb, var(--zx-gray-950) 10%, transparent),
446
+ 0 12px 28px -6px color-mix(in srgb, var(--zx-gray-950) 22%, transparent);
447
+ --zx-color-glass-border: color-mix(in srgb, var(--zx-gray-0) 70%, transparent);
448
+ --zx-color-glass-highlight: color-mix(in srgb, var(--zx-gray-0) 24%, transparent);
449
+ --zx-color-glass-highlight-strong: color-mix(in srgb, var(--zx-gray-0) 38%, transparent);
450
+ --zx-color-glass-rim: color-mix(in srgb, var(--zx-gray-0) 95%, transparent);
451
+ --zx-color-glass-ring: color-mix(in srgb, var(--zx-gray-0) 45%, transparent);
452
+ --zx-color-glass-lift: color-mix(in srgb, var(--zx-gray-0) 62%, transparent);
453
+ --zx-color-glass-shade: color-mix(in srgb, var(--zx-gray-0) 22%, transparent);
454
+ --zx-color-glass-edge: transparent;
455
+ --zx-color-glass-tint: color-mix(in srgb, var(--zx-gray-950) 12%, transparent);
456
+ --zx-color-overlay-backdrop: color-mix(in srgb, var(--zx-gray-950) 22%, transparent);
457
+ --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);
458
+ --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);
459
+ --zx-header-bg: var(--zx-gray-900);
460
+ --zx-header-text: var(--zx-gray-50);
461
+ }
462
+
463
+ :root,
464
+ [data-zx-theme] {
465
+ --zx-color-bg-hover: color-mix(in srgb, var(--zx-color-text) 4.5%, transparent);
466
+ --zx-color-bg-current: color-mix(in srgb, var(--zx-color-text) 8%, transparent);
467
+ --zx-color-text-chrome: color-mix(in srgb, var(--zx-color-text-muted) 70%, var(--zx-color-text));
468
+ --zx-color-border-subtle: color-mix(in srgb, var(--zx-color-text) 7%, transparent);
469
+ --zx-color-tone-blue-bg: color-mix(in srgb, var(--zx-tone-blue-500) 13%, var(--zx-color-bg-surface));
470
+ --zx-color-tone-teal-bg: color-mix(in srgb, var(--zx-tone-teal-500) 13%, var(--zx-color-bg-surface));
471
+ --zx-color-tone-green-bg: color-mix(in srgb, var(--zx-tone-green-500) 13%, var(--zx-color-bg-surface));
472
+ --zx-color-tone-amber-bg: color-mix(in srgb, var(--zx-tone-amber-500) 13%, var(--zx-color-bg-surface));
473
+ --zx-color-tone-orange-bg: color-mix(in srgb, var(--zx-tone-orange-500) 13%, var(--zx-color-bg-surface));
474
+ --zx-color-tone-red-bg: color-mix(in srgb, var(--zx-tone-red-500) 13%, var(--zx-color-bg-surface));
475
+ --zx-color-tone-pink-bg: color-mix(in srgb, var(--zx-tone-pink-500) 13%, var(--zx-color-bg-surface));
476
+ --zx-color-tone-violet-bg: color-mix(in srgb, var(--zx-tone-violet-500) 13%, var(--zx-color-bg-surface));
477
+ --zx-color-tone-slate-bg: color-mix(in srgb, var(--zx-tone-slate-500) 13%, var(--zx-color-bg-surface));
478
+ --zx-color-ring: var(--zx-color-accent);
479
+ --zx-focus-ring: 0 0 0 2px var(--zx-color-ring);
480
+ --zx-color-app-icon-depth: color-mix(in srgb, var(--zx-color-app-icon-shade) 26%, transparent);
481
+ --zx-app-icon-rim-base: var(--zx-color-glass-highlight);
482
+ --zx-color-glass-surface: color-mix(in srgb, var(--zx-color-bg-raised) 58%, transparent);
483
+ --zx-color-glass-chrome: color-mix(in srgb, var(--zx-color-bg-surface) 76%, transparent);
484
+ --zx-color-glass-control: color-mix(in srgb, var(--zx-color-bg-control) 66%, transparent);
485
+ --zx-color-glass-control-hover: color-mix(in srgb, var(--zx-color-bg-hover) 60%, var(--zx-color-glass-surface));
486
+ --zx-color-overlay-base: var(--zx-color-bg-raised);
487
+ --zx-color-overlay-surface: color-mix(in srgb, var(--zx-color-overlay-base) 58%, transparent);
488
+ --zx-color-overlay-panel: color-mix(in srgb, var(--zx-color-overlay-base) 64%, transparent);
489
+ --zx-color-overlay-border: color-mix(in srgb, var(--zx-color-text) 12%, transparent);
490
+ --zx-color-overlay-hover: color-mix(in srgb, var(--zx-color-text) 8%, transparent);
491
+ --zx-color-overlay-selected: color-mix(in srgb, var(--zx-color-accent) 18%, transparent);
492
+ --zx-color-overlay-divider: color-mix(in srgb, var(--zx-color-text) 11%, transparent);
493
+ --zx-color-overlay-scrim: color-mix(in srgb, var(--zx-color-overlay-base) 28%, transparent);
494
+ --zx-overlay-surface-image: linear-gradient(180deg, var(--zx-color-glass-lift) 0%,
495
+ color-mix(in srgb, var(--zx-color-glass-lift) 15%, transparent) 18%, transparent 45%),
496
+ radial-gradient(120% 70% at 100% 100%, color-mix(in srgb, var(--zx-color-accent) 4%, transparent), transparent 62%),
497
+ linear-gradient(var(--zx-color-glass-shade), var(--zx-color-glass-shade));
498
+ --zx-overlay-toast-image: var(--zx-overlay-surface-image);
499
+ --zx-overlay-panel-image: linear-gradient(180deg, var(--zx-color-glass-lift) 0%,
500
+ color-mix(in srgb, var(--zx-color-glass-lift) 15%, transparent) 16%, transparent 40%),
501
+ radial-gradient(90% 60% at 100% 100%, color-mix(in srgb, var(--zx-color-accent) 4%, transparent), transparent 60%),
502
+ linear-gradient(var(--zx-color-glass-shade), var(--zx-color-glass-shade));
503
+ --zx-app-icon-shadow: inset 0 1px 0 color-mix(in srgb, var(--zx-gray-0) 14%, transparent), inset 0 -1px 0 color-mix(in srgb, var(--zx-gray-950) 28%, transparent), 0 2px 6px color-mix(in srgb, var(--zx-color-app-icon-shade) 24%, transparent);
504
+ --zx-app-icon-shadow-hover: inset 0 1px 0 color-mix(in srgb, var(--zx-gray-0) 20%, transparent), inset 0 -1px 0 color-mix(in srgb, var(--zx-gray-950) 32%, transparent), 0 4px 10px color-mix(in srgb, var(--zx-color-app-icon-shade) 30%, transparent);
505
+ --zx-glass-raised-shadow: inset 0 1px 0 var(--zx-color-glass-rim), inset 0 0 0 1px color-mix(in srgb, var(--zx-color-glass-ring) 90%, transparent), 0 0 0 1px var(--zx-color-glass-edge), 0 1px 2px color-mix(in srgb, var(--zx-gray-950) 5%, transparent), 0 10px 28px -10px color-mix(in srgb, var(--zx-gray-950) 14%, transparent);
506
+ --zx-glass-overlay-shadow: inset 0 1px 0 var(--zx-color-glass-rim), inset 0 0 0 1px var(--zx-color-glass-ring), 0 0 0 1px var(--zx-color-glass-edge), 0 1px 2px color-mix(in srgb, var(--zx-gray-950) 6%, transparent), var(--zx-overlay-shadow);
507
+ --zx-glass-panel-shadow: inset 0 1px 0 var(--zx-color-glass-rim), inset 0 0 0 1px color-mix(in srgb, var(--zx-color-glass-ring) 90%, transparent), 0 0 0 1px var(--zx-color-glass-edge), 0 2px 4px color-mix(in srgb, var(--zx-gray-950) 6%, transparent), var(--zx-overlay-shadow);
508
+ }
509
+ }
510
+
511
+ /* Browsers without backdrop filtering get an intentionally opaque material instead of a washed
512
+ translucent colour. This is a capability fallback, independent of user preference fallbacks,
513
+ and it comes first so that a preference below still wins where both apply. */
514
+ @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
515
+ :root,
516
+ .zx-scope,
517
+ [data-zx-theme],
518
+ [data-zx-preset] {
519
+ --zx-color-glass-surface: var(--zx-color-bg-raised) !important;
520
+ --zx-color-glass-chrome: var(--zx-color-bg-surface) !important;
521
+ --zx-color-glass-control: var(--zx-color-bg-control) !important;
522
+ --zx-color-glass-control-hover: var(--zx-color-bg-hover) !important;
523
+ --zx-color-overlay-surface: var(--zx-color-bg-raised) !important;
524
+ --zx-color-overlay-panel: var(--zx-color-bg-raised) !important;
525
+ --zx-color-overlay-backdrop: var(--zx-color-bg-backdrop) !important;
526
+ --zx-overlay-specular-strength: 0% !important;
527
+ --zx-overlay-surface-image: none !important;
528
+ --zx-overlay-toast-image: none !important;
529
+ --zx-overlay-panel-image: none !important;
530
+ --zx-glass-filter-icon: none !important;
531
+ --zx-glass-filter-control: none !important;
532
+ --zx-glass-filter-raised: none !important;
533
+ --zx-glass-filter-chrome: none !important;
534
+ --zx-glass-filter-overlay: none !important;
535
+ --zx-glass-filter-panel: none !important;
536
+ }
219
537
  }
220
538
 
221
539
  /* Preferences are resolved at the token seam so every material consumer, including application
@@ -240,6 +558,12 @@
240
558
  --zx-overlay-surface-image: none !important;
241
559
  --zx-overlay-toast-image: none !important;
242
560
  --zx-overlay-panel-image: none !important;
561
+ --zx-color-glass-rim: transparent !important;
562
+ --zx-color-glass-ring: transparent !important;
563
+ --zx-color-glass-lift: transparent !important;
564
+ --zx-color-glass-shade: transparent !important;
565
+ --zx-color-glass-edge: transparent !important;
566
+ --zx-color-glass-tint: var(--zx-color-bg-raised) !important;
243
567
  --zx-app-icon-core-strength: 68% !important;
244
568
  --zx-app-icon-rim-strength: 62% !important;
245
569
  --zx-app-icon-bloom-strength: 0% !important;
@@ -257,11 +581,22 @@
257
581
  }
258
582
  }
259
583
 
584
+ /* Someone who asked for more contrast gets the column lines back, whatever the tone step does. */
585
+ @media (prefers-contrast: more) {
586
+ :root,
587
+ .zx-scope,
588
+ [data-zx-theme],
589
+ [data-zx-preset] {
590
+ --zx-color-border-chrome: var(--zx-color-border) !important;
591
+ }
592
+ }
593
+
260
594
  @media (forced-colors: active) {
261
595
  :root,
262
596
  .zx-scope,
263
597
  [data-zx-theme],
264
598
  [data-zx-preset] {
599
+ --zx-color-border-chrome: CanvasText !important;
265
600
  --zx-color-glass-chrome: Canvas !important;
266
601
  --zx-color-glass-surface: Canvas !important;
267
602
  --zx-color-glass-control: ButtonFace !important;
@@ -274,6 +609,12 @@
274
609
  --zx-color-overlay-selected: Highlight !important;
275
610
  --zx-color-overlay-divider: CanvasText !important;
276
611
  --zx-color-overlay-scrim: Canvas !important;
612
+ --zx-color-glass-rim: transparent !important;
613
+ --zx-color-glass-ring: transparent !important;
614
+ --zx-color-glass-lift: transparent !important;
615
+ --zx-color-glass-shade: transparent !important;
616
+ --zx-color-glass-edge: transparent !important;
617
+ --zx-color-glass-tint: Canvas !important;
277
618
  --zx-overlay-specular-strength: 0% !important;
278
619
  --zx-overlay-surface-image: none !important;
279
620
  --zx-overlay-toast-image: none !important;
@@ -287,22 +628,3 @@
287
628
  --zx-glass-panel-shadow: none !important;
288
629
  }
289
630
  }
290
-
291
- /* Browsers without backdrop filtering get an intentionally opaque material instead of a washed
292
- translucent colour. This is a capability fallback, independent of user preference fallbacks. */
293
- @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
294
- :root,
295
- .zx-scope,
296
- [data-zx-theme],
297
- [data-zx-preset] {
298
- --zx-color-overlay-surface: var(--zx-color-bg-raised) !important;
299
- --zx-color-overlay-panel: var(--zx-color-bg-raised) !important;
300
- --zx-color-overlay-backdrop: var(--zx-color-bg-backdrop) !important;
301
- --zx-overlay-specular-strength: 0% !important;
302
- --zx-overlay-surface-image: none !important;
303
- --zx-overlay-toast-image: none !important;
304
- --zx-overlay-panel-image: none !important;
305
- --zx-glass-filter-overlay: none !important;
306
- --zx-glass-filter-panel: none !important;
307
- }
308
- }