@mkbabb/glass-ui 3.9.0 → 3.10.1

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 (265) hide show
  1. package/dist/{CardAction-DuArVky-.js → CardAction-DrAcAV4d.js} +2 -2
  2. package/dist/{CommandShortcut-CefCj5mt.js → CommandShortcut-mV2e1aG6.js} +2 -2
  3. package/dist/{DataTable-CUHMukiQ.js → DataTable-C3E6jZ5B.js} +2 -2
  4. package/dist/{DialogContent-BRkT1cjP.js → DialogContent-BxaaafFi.js} +1 -1
  5. package/dist/{HoverPopover-2LOIW34a.js → HoverPopover-CDA_SaCe.js} +1 -1
  6. package/dist/{MetricBadge-lTc002u2.js → MetricBadge-idgrkqoP.js} +1 -1
  7. package/dist/{Notification-BxK8LZMw.js → Notification-Cu0nN17_.js} +3 -3
  8. package/dist/{NumberFieldContent-BbLOh8RU.js → NumberFieldContent-CHEWghnY.js} +2 -2
  9. package/dist/{PopoverContent-BId6ggf_.js → PopoverContent-DpUvdYY-.js} +1 -1
  10. package/dist/{Progress-iEuD9pxG.js → Progress-BW-StFw2.js} +1 -1
  11. package/dist/{ScrollingText-BPP84wKo.js → ScrollingText-DruYCni_.js} +1 -1
  12. package/dist/{SelectScrollDownButton-T32cVFeM.js → SelectScrollDownButton-pirzjm--.js} +3 -3
  13. package/dist/{Switch-LDKLmmgx.js → Switch-DeAqg6pi.js} +1 -1
  14. package/dist/{TabsList-B8CVOQPC.js → TabsList-BAVzOZpg.js} +2 -2
  15. package/dist/{Toaster-1rYWrmAm.js → Toaster-CvuuW_y9.js} +49 -46
  16. package/dist/{ToggleGroupItem-Cev4pOVK.js → ToggleGroupItem-DtD37b4G.js} +4 -4
  17. package/dist/animated-digit.js +2 -2
  18. package/dist/api/index.d.ts +4 -4
  19. package/dist/api.js +1 -1
  20. package/dist/aurora.js +238 -547
  21. package/dist/{badge-BvwvT50i.js → badge-NdCQMvvB.js} +2 -2
  22. package/dist/badge.js +1 -1
  23. package/dist/{button-DN39cGqL.js → button-DyiWFAOE.js} +12 -12
  24. package/dist/button.js +1 -1
  25. package/dist/canvas.js +2 -2
  26. package/dist/card.js +1 -1
  27. package/dist/carousel.js +5 -5
  28. package/dist/collapsible.js +1 -1
  29. package/dist/{color-8jBjWiJ6.js → color-B65wWyQz.js} +9 -7
  30. package/dist/color.js +1 -1
  31. package/dist/command.js +1 -1
  32. package/dist/{compile-DAjIoEy2.js → compile-Ce_V55zi.js} +23 -23
  33. package/dist/components/custom/aurora/composables/atoms.d.ts +21 -4
  34. package/dist/components/custom/aurora/composables/runtime.d.ts +0 -9
  35. package/dist/components/custom/aurora/composables/uniformBridge.d.ts +0 -11
  36. package/dist/components/custom/aurora/constants/renderMode.d.ts +0 -32
  37. package/dist/components/custom/aurora/constants/shaders/brush.glsl.d.ts +1 -1
  38. package/dist/components/custom/aurora/constants/shaders/mediums.glsl.d.ts +2 -2
  39. package/dist/components/custom/aurora/constants/shaders/tonemap.glsl.d.ts +1 -1
  40. package/dist/components/custom/aurora/constants/shaders/vangogh-medium.glsl.d.ts +1 -0
  41. package/dist/components/custom/aurora/index.d.ts +1 -1
  42. package/dist/components/custom/constellation/Constellation.vue.d.ts +85 -1
  43. package/dist/components/custom/constellation/composables/createConstellationField.d.ts +35 -0
  44. package/dist/components/custom/constellation/composables/useConstellationPointer.d.ts +35 -0
  45. package/dist/components/custom/constellation/constants.d.ts +36 -0
  46. package/dist/components/custom/constellation/constellationDraw.d.ts +18 -0
  47. package/dist/components/custom/constellation/constellationField.d.ts +174 -63
  48. package/dist/components/custom/constellation/constellationInteraction.d.ts +102 -0
  49. package/dist/components/custom/constellation/index.d.ts +4 -2
  50. package/dist/components/custom/controls/DarkModeToggle.vue.d.ts +11 -0
  51. package/dist/components/custom/dock/GlassDock.vue.d.ts +2 -110
  52. package/dist/components/custom/dock/composables/dockMorphContext.d.ts +36 -0
  53. package/dist/components/custom/dock/composables/useDockMorphWindow.d.ts +15 -0
  54. package/dist/components/custom/dock/composables/useDockShellProps.d.ts +131 -0
  55. package/dist/components/custom/dock/composables/useLayerTransition.d.ts +44 -0
  56. package/dist/components/custom/dock/constants.d.ts +23 -0
  57. package/dist/components/custom/fourier-field/FourierField.vue.d.ts +6 -0
  58. package/dist/components/custom/fourier-field/index.d.ts +25 -1
  59. package/dist/components/custom/fourier-field/math.d.ts +20 -8
  60. package/dist/components/custom/fourier-field/presets.d.ts +54 -0
  61. package/dist/components/custom/goo-blob/GooBlob.vue.d.ts +8 -10
  62. package/dist/components/custom/goo-blob/composables/buildMetaballProgram.d.ts +18 -0
  63. package/dist/components/custom/goo-blob/composables/uploadBlobUniforms.d.ts +41 -0
  64. package/dist/components/custom/goo-blob/composables/useBlobPointer.d.ts +4 -3
  65. package/dist/components/custom/goo-blob/composables/useMetaballRenderer.d.ts +16 -21
  66. package/dist/components/custom/goo-blob/constants.d.ts +52 -0
  67. package/dist/components/custom/goo-blob/index.d.ts +1 -1
  68. package/dist/components/custom/goo-blob/shaders/metaball-uniforms.glsl.d.ts +1 -0
  69. package/dist/components/custom/goo-blob/types.d.ts +59 -25
  70. package/dist/components/custom/instrument-chassis/InstrumentChassis.vue.d.ts +2 -2
  71. package/dist/components/custom/tabs/constants.d.ts +12 -0
  72. package/dist/components/custom/underline/GlassUnderline.vue.d.ts +84 -0
  73. package/dist/components/custom/underline/index.d.ts +2 -0
  74. package/dist/components/custom/underline/types.d.ts +56 -0
  75. package/dist/components/ui/drawer/Drawer.vue.d.ts +1 -0
  76. package/dist/components/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +2 -2
  77. package/dist/components/ui/slider/index.d.ts +25 -18
  78. package/dist/components/ui/toast/use-toast.d.ts +2 -2
  79. package/dist/composables/color/index.d.ts +24 -7
  80. package/dist/composables/glass/useSpecularTracking.d.ts +12 -3
  81. package/dist/composables/glass/webgl/shaders/procedural-color.glsl.d.ts +1 -6
  82. package/dist/composables/motion/curves.d.ts +48 -0
  83. package/dist/composables/motion/index.d.ts +2 -0
  84. package/dist/composables/motion/springPresets.d.ts +33 -0
  85. package/dist/composables/motion/suite.d.ts +2 -0
  86. package/dist/composables/motion/useSpringMount.d.ts +1 -1
  87. package/dist/configurator.js +1 -1
  88. package/dist/confirm-dialog.js +2 -2
  89. package/dist/constellation.js +322 -147
  90. package/dist/controls.js +48 -14
  91. package/dist/dark.js +1 -1
  92. package/dist/data-table.js +1 -1
  93. package/dist/dialog.js +2 -2
  94. package/dist/dock.js +340 -327
  95. package/dist/dockContext-bho8B1A4.js +17 -0
  96. package/dist/{dropdown-menu-D77jX6Df.js → dropdown-menu-DVnQcA0E.js} +7 -4
  97. package/dist/dropdown-menu.js +1 -1
  98. package/dist/expandable-container.js +1 -1
  99. package/dist/forms.js +2 -2
  100. package/dist/fourier-field.js +147 -120
  101. package/dist/fourier-math.d.ts +1 -0
  102. package/dist/fourier-math.js +2 -0
  103. package/dist/glass-ui.css +1 -1
  104. package/dist/glass-ui.js +286 -207
  105. package/dist/goo-blob.js +368 -322
  106. package/dist/hover-popover.js +1 -1
  107. package/dist/icon-tooltip.js +1 -1
  108. package/dist/index.d.ts +0 -2
  109. package/dist/keyboard.js +1 -1
  110. package/dist/labeled-field.js +5 -5
  111. package/dist/math-BUU9hHID.js +43 -0
  112. package/dist/metric-badge.js +1 -1
  113. package/dist/metric-stack.js +2 -2
  114. package/dist/motion-core.js +4 -4
  115. package/dist/motion-curves.d.ts +1 -0
  116. package/dist/motion-curves.js +130 -0
  117. package/dist/motion.js +38 -37
  118. package/dist/notification.js +1 -1
  119. package/dist/number-field.js +1 -1
  120. package/dist/popover.js +1 -1
  121. package/dist/progress.js +1 -1
  122. package/dist/pulse.js +1 -1
  123. package/dist/reactive.js +1 -1
  124. package/dist/scrolling-text.js +1 -1
  125. package/dist/search.js +6 -6
  126. package/dist/select.js +1 -1
  127. package/dist/{sheet-VZEtNFvO.js → sheet-ChSXcJpU.js} +1 -1
  128. package/dist/sheet.js +1 -1
  129. package/dist/{slider-DC2mwuoe.js → slider-sfl8gFDD.js} +8 -8
  130. package/dist/slider.js +1 -1
  131. package/dist/sortable-list.js +2 -2
  132. package/dist/springPresets-aRSm-4_k.js +40 -0
  133. package/dist/stacked-icons.js +6 -6
  134. package/dist/styles/cards.css +2 -2
  135. package/dist/styles/components.css +1 -1
  136. package/dist/styles/dock/layer-group.css +38 -4
  137. package/dist/styles/dock/layers.css +11 -1
  138. package/dist/styles/dock/morph.css +95 -19
  139. package/dist/styles/dock/shell.css +12 -0
  140. package/dist/styles/dock-controls.css +25 -12
  141. package/dist/styles/drawer.css +14 -4
  142. package/dist/styles/floating-panel.css +2 -0
  143. package/dist/styles/glass/a11y-fallback.css +245 -0
  144. package/dist/styles/glass/ladder.css +304 -0
  145. package/dist/styles/glass/material.css +238 -0
  146. package/dist/styles/glass/progress-rail.css +78 -0
  147. package/dist/styles/glass/squircle.css +66 -0
  148. package/dist/styles/glass/surfaces.css +306 -0
  149. package/dist/styles/glass-refract.css +2 -0
  150. package/dist/styles/glass.css +31 -1052
  151. package/dist/styles/hover-popover.css +2 -0
  152. package/dist/styles/index.css +24 -6
  153. package/dist/styles/instrument-chassis.css +4 -0
  154. package/dist/styles/theme.css +14 -14
  155. package/dist/styles/tokens/color-radius.css +250 -0
  156. package/dist/styles/tokens/dark-arm.css +194 -0
  157. package/dist/styles/tokens/glass.css +413 -0
  158. package/dist/styles/tokens/light-dark.css +158 -0
  159. package/dist/styles/tokens/offsets-sizing.css +406 -0
  160. package/dist/styles/tokens/property-regs.css +169 -0
  161. package/dist/styles/tokens/scale-paper.css +361 -0
  162. package/dist/styles/tokens/scheme-motion.css +334 -0
  163. package/dist/styles/tokens/shadow.css +132 -0
  164. package/dist/styles/tokens.css +22 -2269
  165. package/dist/styles/transitions.css +20 -2
  166. package/dist/styles/typography.css +18 -6
  167. package/dist/styles/utilities/a11y-overrides.css +140 -0
  168. package/dist/styles/utilities/animate.css +26 -0
  169. package/dist/styles/utilities/base.css +365 -0
  170. package/dist/styles/utilities/btn.css +399 -0
  171. package/dist/styles/utilities/components.css +317 -0
  172. package/dist/styles/utilities.css +19 -1170
  173. package/dist/switch.js +1 -1
  174. package/dist/tabs.js +98 -98
  175. package/dist/timeline.js +2 -2
  176. package/dist/toast.js +1 -1
  177. package/dist/toggle-group.js +1 -1
  178. package/dist/typewriter.js +1 -1
  179. package/dist/underline.d.ts +1 -0
  180. package/dist/underline.js +85 -0
  181. package/dist/{useAnimatedNumber-C5I3wWd8.js → useAnimatedNumber-DfVgP4te.js} +1 -1
  182. package/dist/{useConfiguratorState-DxAqksK6.js → useConfiguratorState-BdQXh9ie.js} +1 -1
  183. package/dist/useSpecularTracking-DFK_fhpG.js +32 -0
  184. package/dist/useSpringMount-DXUzxBjV.js +108 -0
  185. package/dist/watercolor-dot.js +2 -2
  186. package/package.json +62 -38
  187. package/src/styles/cards.css +2 -2
  188. package/src/styles/dock/layer-group.css +38 -4
  189. package/src/styles/dock/layers.css +11 -1
  190. package/src/styles/dock/morph.css +95 -19
  191. package/src/styles/dock/shell.css +12 -0
  192. package/src/styles/dock-controls.css +25 -12
  193. package/src/styles/drawer.css +12 -4
  194. package/src/styles/glass/a11y-fallback.css +245 -0
  195. package/src/styles/glass/ladder.css +304 -0
  196. package/src/styles/glass/material.css +238 -0
  197. package/src/styles/glass/progress-rail.css +78 -0
  198. package/src/styles/glass/squircle.css +66 -0
  199. package/src/styles/glass/surfaces.css +306 -0
  200. package/src/styles/glass.css +31 -1052
  201. package/src/styles/index.css +24 -6
  202. package/src/styles/theme.css +14 -14
  203. package/src/styles/tokens/color-radius.css +250 -0
  204. package/src/styles/tokens/dark-arm.css +194 -0
  205. package/src/styles/tokens/glass.css +413 -0
  206. package/src/styles/tokens/light-dark.css +158 -0
  207. package/src/styles/tokens/offsets-sizing.css +406 -0
  208. package/src/styles/tokens/property-regs.css +169 -0
  209. package/src/styles/tokens/scale-paper.css +361 -0
  210. package/src/styles/tokens/scheme-motion.css +334 -0
  211. package/src/styles/tokens/shadow.css +132 -0
  212. package/src/styles/tokens.css +22 -2269
  213. package/src/styles/transitions.css +20 -2
  214. package/src/styles/typography.css +18 -6
  215. package/src/styles/utilities/a11y-overrides.css +140 -0
  216. package/src/styles/utilities/animate.css +26 -0
  217. package/src/styles/utilities/base.css +365 -0
  218. package/src/styles/utilities/btn.css +399 -0
  219. package/src/styles/utilities/components.css +317 -0
  220. package/src/styles/utilities.css +19 -1170
  221. package/dist/DeckProgress-Dmk4_AKN.js +0 -23
  222. package/dist/InstrumentRail-CUJ05YVG.js +0 -44
  223. package/dist/components/custom/aurora/composables/gpuRuntime.d.ts +0 -16
  224. package/dist/components/custom/aurora/constants/shaders/aurora.wgsl.d.ts +0 -7
  225. package/dist/components/custom/deck-progress/DeckProgress.vue.d.ts +0 -27
  226. package/dist/components/custom/deck-progress/index.d.ts +0 -2
  227. package/dist/components/custom/dialog-native/GlassDialogNative.vue.d.ts +0 -57
  228. package/dist/components/custom/dialog-native/index.d.ts +0 -1
  229. package/dist/components/custom/glass-panel/GlassPanel.vue.d.ts +0 -41
  230. package/dist/components/custom/glass-panel/index.d.ts +0 -2
  231. package/dist/components/custom/header-ribbon/HeaderRibbon.vue.d.ts +0 -31
  232. package/dist/components/custom/header-ribbon/index.d.ts +0 -2
  233. package/dist/components/custom/header-ribbon/types.d.ts +0 -7
  234. package/dist/components/custom/instrument-rail/InstrumentRail.vue.d.ts +0 -91
  235. package/dist/components/custom/instrument-rail/index.d.ts +0 -2
  236. package/dist/composables/glass/createGPUCanvas.d.ts +0 -40
  237. package/dist/deck-progress.d.ts +0 -1
  238. package/dist/deck-progress.js +0 -2
  239. package/dist/dockContext-BKeIMmNk.js +0 -9
  240. package/dist/glass-panel.d.ts +0 -1
  241. package/dist/glass-panel.js +0 -44
  242. package/dist/header-ribbon.d.ts +0 -1
  243. package/dist/header-ribbon.js +0 -63
  244. package/dist/instrument-rail.d.ts +0 -1
  245. package/dist/instrument-rail.js +0 -2
  246. package/dist/useGlassRenderer-5I0YkI4t.js +0 -69
  247. package/dist/useSpecularTracking-BVRZsRHA.js +0 -26
  248. package/dist/useSpringMount-BJSHcLl3.js +0 -113
  249. /package/dist/{CollapsibleContent-CP9qF1v4.js → CollapsibleContent-Drow5WkV.js} +0 -0
  250. /package/dist/{DialogFooter-Gprw8H_A.js → DialogFooter-DufLHi0y.js} +0 -0
  251. /package/dist/{IconTooltip-yefK7cJc.js → IconTooltip-BrQ5p181.js} +0 -0
  252. /package/dist/{Input-DWQQIOC4.js → Input-B-F818RU.js} +0 -0
  253. /package/dist/{_plugin-vue_export-helper-ok8pgSl5.js → _plugin-vue_export-helper-DWghtRt7.js} +0 -0
  254. /package/dist/{constants-CS75AWHG.js → constants-C8NMonuo.js} +0 -0
  255. /package/dist/{presets-BKVyQfbt.js → presets-1OhFpaIC.js} +0 -0
  256. /package/dist/{prng-wHuHlNHE.js → prng-CjVgzjQT.js} +0 -0
  257. /package/dist/{resolveCanvasColor-BBiYfp8g.js → resolveCanvasColor-CRvVzOvP.js} +0 -0
  258. /package/dist/{useCanvas2D-ClrQuZtp.js → useCanvas2D-CSeH8h16.js} +0 -0
  259. /package/dist/{useGlobalDark-yhL4Wp-s.js → useGlobalDark-D7R9OypB.js} +0 -0
  260. /package/dist/{useIntersectionPause-Cc-H9ees.js → useIntersectionPause-DAdVPVp4.js} +0 -0
  261. /package/dist/{useInterval-Dsmqwi03.js → useInterval-D3USn0yc.js} +0 -0
  262. /package/dist/{useKeyboardShortcuts-Be3w_Rwk.js → useKeyboardShortcuts-i8tHd5WO.js} +0 -0
  263. /package/dist/{useScrollProgress-CAH8Ofwt.js → useScrollProgress-CcgmgMQt.js} +0 -0
  264. /package/dist/{useSortable-C8ReQ50P.js → useSortable-DnyGXKKY.js} +0 -0
  265. /package/dist/{useTextHighlight-DON84L8w.js → useTextHighlight-B3b10W6r.js} +0 -0
@@ -42,12 +42,20 @@
42
42
  height: auto;
43
43
  max-height: 97vh;
44
44
  margin-top: 6rem;
45
- border: 1px solid var(--border);
45
+ /* The overlay-band glass surface — the heaviest rung (the Drawer is a
46
+ modal-band sheet, z-index: --z-modal). The oklab tint composite reads the
47
+ W55 bright bucket (a live-behind sheet over a bright page is the canonical
48
+ over-light case); the --glass-level knob flattens it to solid --card +
49
+ blur(0) with the rest of the band; the --glass-shadow-overlay ladder rung
50
+ carries the rim + the --shadow-2xl lift through the ladder. */
51
+ background: color-mix(in oklab, var(--glass-bg-overlay), var(--glass-tint-source) var(--glass-tint-strength));
52
+ backdrop-filter: var(--glass-blur-overlay);
53
+ -webkit-backdrop-filter: var(--glass-blur-overlay);
54
+ border: 1px solid var(--glass-border-overlay);
46
55
  border-bottom: 0;
47
56
  border-start-start-radius: var(--radius-panel);
48
57
  border-start-end-radius: var(--radius-panel);
49
- background-color: var(--background);
50
- box-shadow: var(--shadow-2xl);
58
+ box-shadow: var(--glass-material-rim), var(--glass-shadow-overlay);
51
59
  }
52
60
 
53
61
  /*
@@ -74,7 +82,7 @@
74
82
  margin-top: 0;
75
83
  margin-bottom: 6rem;
76
84
  border-top: 0;
77
- border-bottom: 1px solid var(--border);
85
+ border-bottom: 1px solid var(--glass-border-overlay);
78
86
  border-radius: 0 0 var(--radius-panel) var(--radius-panel);
79
87
  }
80
88
 
@@ -0,0 +1,245 @@
1
+ /* glass/a11y-fallback.css
2
+ The accessibility + capability overrides — @media (prefers-reduced-transparency) / (prefers-contrast: more) / (forced-colors: active), the non-backdrop-filter @layer components fallback, and the :has()-less @supports fallback. LAST in cascade (they override the base ladder).
3
+ Carved from the glass.css cascade root; @import-ed by glass.css in cascade
4
+ order, each in its own @layer components (isomorphic to the monolith).
5
+ See docs/precepts/design-idioms.md §cohesion-aware partials. */
6
+ /* ── Accessibility: reduced transparency ──────────
7
+ AX.W54 — the gestalt collapse: ONE `--glass-level: 0` replaces the ten per-rung
8
+ opacity+blur clobbers. The level-0 path resolves solid `--card` + `blur(0)`
9
+ through the SAME machinery (the opacity seam → 1, the blur seam → 0), so every
10
+ glass surface — current and future — flattens with no per-rung enumeration. The
11
+ grain + highlight kills stay (they sit off the level axis). */
12
+ @media (prefers-reduced-transparency: reduce) {
13
+ :root {
14
+ --glass-level: 0;
15
+ --glass-grain-opacity: 0;
16
+ --glass-highlight: 0 0 0 0 transparent;
17
+ }
18
+ }
19
+
20
+ /* ── Accessibility: high contrast ─────────────────
21
+ AX.W54 — a single bounded `--glass-level: 0.3` (mostly-solid, not fully flat)
22
+ replaces the five per-rung opacity clobbers: every rung firms up toward solid
23
+ for AA while keeping a hint of the glass register. ONE knob, every rung.
24
+
25
+ AX.W55 — the Clear↔Tinted user-escape (Apple's iOS-26.2 analog) COORDINATES the
26
+ two axes here: the OPACITY axis rides W54's `--glass-level` (firm up toward solid)
27
+ AND the TINT axis biases toward ink — `--glass-tint-source` → the warm-ink +
28
+ `--glass-tint-strength` → the AA floor, the same darken the automatic bright
29
+ bucket applies, now reached by the explicit "more contrast" user request. The two
30
+ axes stay DISTINCT (level = opacity+blur, tint = darken) but share the bracket so
31
+ a high-contrast user gets BOTH a firmer plate and the ink-tint legibility lift —
32
+ one coordinated escape, not two parallel forks. */
33
+ @media (prefers-contrast: more) {
34
+ :root {
35
+ --glass-level: 0.3;
36
+ --glass-tint-source: var(--glass-tint-ink);
37
+ --glass-tint-strength: var(--glass-tint-strength-aa);
38
+ }
39
+ }
40
+
41
+ /* ── Accessibility: forced-colors (Windows High Contrast) glass-language skin ──
42
+ AX.W36 — when the OS forces a palette (Windows High Contrast), the platform
43
+ strips the whole decorative glass register: `backdrop-filter` is dropped, the
44
+ `--glass-*` inset/box-shadow rungs vanish, and every meaning-bearing chroma
45
+ flattens to one system color. A `.glass-floating` Dialog over a `.glass-resting`
46
+ Card would read as two borderless transparent rectangles with no edge, and a
47
+ green-vs-red StatusDot would resolve to one indistinguishable dot. This skin
48
+ restores the STRUCTURE the glass chrome encoded — it does NOT pin glass-ui's
49
+ brand colours (no `forced-color-adjust: none`); the chrome is decorative and
50
+ YIELDS to the user's forced palette (css forced-colors guidance). Only the
51
+ standard WHC system keywords are used (`Canvas`/`CanvasText`/`Highlight`) — no
52
+ glass-ui token leaks into the WHC arm.
53
+
54
+ COORDINATES WITH W54 — the same `--glass-level: 0` opaque escape the reduced-
55
+ transparency / high-contrast brackets ride. Setting the ONE clarity knob to 0
56
+ collapses the `--glass-bg-*` opacity recipe to solid `--card` + `blur(0)` through
57
+ the SAME machinery (no parallel solid recipe), so the platform sees opaque plates
58
+ it maps to `Canvas`. The grain + highlight kills match the reduce bracket (they
59
+ sit off the level axis). The W55 tint axis is moot under WHC (the user's palette
60
+ supersedes the ink-darken) but harmless — the opaque plate is system-painted. */
61
+ @media (forced-colors: active) {
62
+ :root {
63
+ --glass-level: 0;
64
+ --glass-grain-opacity: 0;
65
+ --glass-highlight: 0 0 0 0 transparent;
66
+ }
67
+
68
+ /* Every glass-material ladder rung relied on `backdrop-filter` + an inset
69
+ `box-shadow` rim for its silhouette — both gone under WHC. Restore a real
70
+ `border` keyed to the system text colour so each tier pane reads as a boxed
71
+ region. The selector group MIRRORS the ladder definition above (one source,
72
+ not a hand-rolled re-list) so a future rung added to the material group
73
+ inherits the WHC edge for free — and any `.glass-material` div picks up the
74
+ edge with no per-component arm. */
75
+ .glass-material,
76
+ .glass-wash,
77
+ .glass-quiet,
78
+ .glass-resting,
79
+ .glass-floating,
80
+ .glass-overlay,
81
+ .glass-card,
82
+ .glass-drawer {
83
+ border: 1px solid CanvasText;
84
+ }
85
+
86
+ /* The floating + overlay rungs (Dialog / Sheet / Popover / DropdownMenu /
87
+ HoverCard compose them) + the Drawer (the overlay-band sheet, drawer.css)
88
+ get the canonical `Canvas` fill so the modal reads as a DISTINCT boxed
89
+ region OVER the page, not a transparent overlap — the hierarchy survives.
90
+ The `CanvasText` edge above already draws the box; this opaque fill
91
+ separates the floating layer from the content beneath it. */
92
+ .glass-floating,
93
+ .glass-overlay,
94
+ .glass-drawer {
95
+ background: Canvas;
96
+ }
97
+
98
+ /* The decorative specular catch-light (`::before`) + grain overlay (`::after`)
99
+ paint nothing meaningful once chroma collapses — yield them entirely (the
100
+ same decorative-chrome cede the `--glass-level: 0` opaque escape performs on
101
+ the body). They are NOT part of the structure the skin restores. */
102
+ .glass-material::before,
103
+ .glass-wash::before,
104
+ .glass-quiet::before,
105
+ .glass-resting::before,
106
+ .glass-floating::before,
107
+ .glass-overlay::before,
108
+ .glass-card::before,
109
+ .glass-drawer::before,
110
+ .glass-wash::after,
111
+ .glass-quiet::after,
112
+ .glass-resting::after,
113
+ .glass-floating::after,
114
+ .glass-overlay::after {
115
+ display: none;
116
+ }
117
+
118
+ /* Meaning-bearing hue identity → a bordered glyph that keeps ok/warn/error
119
+ distinguishable by a WHC-HONORED system color, NOT a glass-ui hue (which WHC
120
+ strips to one fill). StatusDot reflects its variant onto `data-status`
121
+ (StatusDot.vue) and the inner dot carries `.status-dot__dot`; the
122
+ `role="img"` + `aria-label` accessible name already ships, so this is the
123
+ VISUAL differentiation only. A bare bordered dot + the per-status fill triplet
124
+ below means a sighted WHC user can still tell the row apart.
125
+
126
+ `!important` IS load-bearing here: StatusDot paints the dot fill via an INLINE
127
+ `:style="dotStyle"` (`background-color`, specificity 1,0,0,0), which outranks
128
+ any stylesheet selector AND which forced-colors then `forced-color-adjust:
129
+ auto`-remaps to a single Canvas-white — collapsing the row to one indistinct
130
+ dot. The WHC arm must override that inline fill, and inline can only be beaten
131
+ by `!important`; this is the documented forced-colors degradation path (the
132
+ arm only activates under WHC). The component keeps its inline hue in normal
133
+ mode untouched. */
134
+ .status-dot__dot {
135
+ border: 1px solid CanvasText;
136
+ /* The bordered ring alone separates a dot from its surround; the per-status
137
+ fill below adds the WHC-honored distinction. */
138
+ }
139
+ /* The inner painted fill (`.status-dot__fill`, `h-full w-full`) + the pulse ring
140
+ carry the SAME inline glass-ui hue StatusDot paints — under WHC they cover the
141
+ outer `.status-dot__dot` glyph with a `forced-color-adjust`-remapped Canvas
142
+ fill (the row collapses to one white dot even with the outer system color set).
143
+ Yield them so the outer bordered + system-color glyph is the sole visible dot. */
144
+ .status-dot__fill,
145
+ .status-dot__pulse {
146
+ display: none;
147
+ }
148
+ /* The ok/warn/error/idle distinction rides the standard WHC keyword palette:
149
+ active (ok) → Highlight (the affirmative system accent)
150
+ paused (warn) → Mark (the marked/attention system color)
151
+ error → CanvasText (a solid filled dot — the strongest weight)
152
+ idle/custom → Canvas (a hollow dot — only the CanvasText ring reads)
153
+ Each stays distinguishable by the system color the user's palette assigns,
154
+ never glass-ui chroma. The `!important` beats the component's inline fill. */
155
+ .status-dot__dot[data-status="active"] {
156
+ background: Highlight !important;
157
+ }
158
+ .status-dot__dot[data-status="paused"] {
159
+ background: Mark !important;
160
+ }
161
+ .status-dot__dot[data-status="error"] {
162
+ background: CanvasText !important;
163
+ }
164
+ .status-dot__dot[data-status="idle"],
165
+ .status-dot__dot[data-status="custom"] {
166
+ background: Canvas !important;
167
+ }
168
+ }
169
+
170
+ /* ── @supports fallbacks for non-backdrop-filter browsers ── */
171
+ @layer components {
172
+ /* GUARD 1 — the NO-BLUR-AT-ALL engine (supports NEITHER the unprefixed NOR the
173
+ webkit form): paint an opaque-leaning plate so text stays legible without any
174
+ blur. AY.W-A11Y-PERF O-2b note: this is the floor for the theoretical
175
+ neither-supported case. The Safari ≤17 webkit-only trap (supports the `-webkit-`
176
+ form, so this `@supports not (… or …)` is FALSE and the fallback does NOT fire)
177
+ is closed at the SOURCE OF THE PREFIX: O-2a's build pass guarantees the shipped
178
+ dist carries the `-webkit-backdrop-filter:` pair, so a Safari-17 engine renders
179
+ the BLUR off the prefixed rule (it no longer falls through to a transparent
180
+ unprefixed-only surface). The trap closes where the prefix is emitted, not here. */
181
+ @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
182
+ .glass-wash {
183
+ background: color-mix(in srgb, var(--card) 80%, transparent);
184
+ }
185
+ .glass-quiet {
186
+ background: color-mix(in srgb, var(--card) 88%, transparent);
187
+ }
188
+ .glass-resting {
189
+ background: color-mix(in srgb, var(--card) 94%, transparent);
190
+ }
191
+ .glass-floating {
192
+ background: color-mix(in srgb, var(--card) 98%, transparent);
193
+ }
194
+ .glass-overlay {
195
+ background: var(--card);
196
+ }
197
+ .glass-btn {
198
+ background: color-mix(in srgb, var(--background) 92%, transparent);
199
+ }
200
+ }
201
+
202
+ /* GUARD 2 — the WEBKIT-ONLY engine (supports `-webkit-backdrop-filter` but NOT the
203
+ unprefixed `backdrop-filter` — Safari ≤17). With O-2a's build-emitted prefix the
204
+ shipped rung carries the `-webkit-backdrop-filter:` pair, so this engine PAINTS
205
+ the blur off that prefixed declaration. This guard exists to DOCUMENT-and-confirm
206
+ that path (and would re-assert the translucent glass identity if a future change
207
+ ever stripped the rung bg under this engine) — it re-states the rungs' translucent
208
+ glass-mix so a webkit-only engine that DID get the prefix keeps the glass look,
209
+ never the opaque GUARD-1 plate. The `proof:webkit-backdrop` gate asserts the
210
+ shipped dist carries BOTH guards. */
211
+ @supports ((-webkit-backdrop-filter: blur(1px)) and (not (backdrop-filter: blur(1px)))) {
212
+ .glass-wash {
213
+ background: color-mix(in oklab, var(--glass-bg-wash), var(--glass-tint-source) var(--glass-tint-strength));
214
+ }
215
+ .glass-quiet {
216
+ background: color-mix(in oklab, var(--glass-bg-quiet), var(--glass-tint-source) var(--glass-tint-strength));
217
+ }
218
+ .glass-resting {
219
+ background: color-mix(in oklab, var(--glass-bg-resting), var(--glass-tint-source) var(--glass-tint-strength));
220
+ }
221
+ .glass-floating {
222
+ background: color-mix(in oklab, var(--glass-bg-floating), var(--glass-tint-source) var(--glass-tint-strength));
223
+ }
224
+ .glass-overlay {
225
+ background: color-mix(in oklab, var(--glass-bg-overlay), var(--glass-tint-source) var(--glass-tint-strength));
226
+ }
227
+ .glass-btn {
228
+ background: var(--glass-bg-wash);
229
+ }
230
+ }
231
+ }
232
+
233
+ /* ── :has() focus-elevation fallback (AQ.W3 §W3.1a) ──────────────────────
234
+ SOLE fallback for engines without `:has()`. `.is-focus-within` is toggled
235
+ by a ≤6-LOC focusin/focusout guard in `Card.vue` that runs ONLY when
236
+ `!CSS.supports('selector(:has(*))')` (modern engines run zero JS). The
237
+ class redefines the SAME `--card-focus-*` rungs as the `:has()` rule, so the
238
+ override values have one source. NOT a live+dead alias — `:has()` is the
239
+ enhancement, this the documented degradation path. */
240
+ @supports not selector(:has(*)) {
241
+ .glass-card.is-focus-within {
242
+ --card-focus-shadow: var(--shadow-md);
243
+ --card-focus-border: var(--glass-border-floating);
244
+ }
245
+ }
@@ -0,0 +1,304 @@
1
+ /* glass/ladder.css
2
+ The five-tier .glass-{wash,quiet,resting,floating,overlay} surface ladder + the W55 adaptive-legibility @container style(--glass-backdrop: light) bucket (co-located with its rung) + the .glass-opaque escape + the content-aware under-shadow.
3
+ Carved from the glass.css cascade root; @import-ed by glass.css in cascade
4
+ order, each in its own @layer components (isomorphic to the monolith).
5
+ See docs/precepts/design-idioms.md §cohesion-aware partials. */
6
+ @layer components {
7
+ /* ── Five-tier surface ladder (v0.8.0; visual only, no geometry) ──
8
+ Tier semantics, alpha-monotonic per R3-spec §A:
9
+ wash ~0.30α + light blur (was `subtle`)
10
+ quiet ~0.50α + medium blur (the missing rung)
11
+ resting ~0.65α + canonical blur (was `default`; the speedtest plate)
12
+ floating ~0.80α + heavier blur (was `elevated`)
13
+ overlay ~0.95α + heaviest blur (NEW; modal-over-modal) */
14
+
15
+ /* The five-rung surface ladder declares the unprefixed
16
+ `backdrop-filter` only IN SOURCE. Authoring both forms manually here
17
+ caused Lightning CSS in Tailwind v4 to dedup-and-keep-prefixed,
18
+ which modern Chromium then dropped from the CSSOM (the prefixed
19
+ alias is parser-rejected post-Chrome 113). AY.W-A11Y-PERF O-2a — the
20
+ build now OWNS the prefix: `vite.style-assets.ts publishStyleAssets()`
21
+ injects the `-webkit-backdrop-filter:` pair into the SHIPPED
22
+ `dist/styles/*.css` as a LAST pass (the source stays unprefixed, so
23
+ the Lightning dedup never sees both forms; the build emits the pair
24
+ after the cascade is assembled). This GUARANTEES the prefix reaches
25
+ dist/ regardless of the consumer's autoprefixer/browserslist — a
26
+ Safari ≤17 engine (webkit-form-only) paints the blur instead of
27
+ silently dropping the unprefixed rule. Verified by
28
+ `proof:webkit-backdrop` (count-parity over the shipped dist). */
29
+ /* AW.W23 — every rung's background composes the adaptive-tint recipe
30
+ (`color-mix(in oklab, <rung bg>, var(--glass-tint-source) var(--glass-tint-
31
+ strength))`). With the default `--glass-tint-strength: 0%` the mix is a
32
+ no-op = byte-identical to the un-tinted rung; a consumer biases the surface
33
+ toward a sampled backdrop hue by setting `--glass-tint-source` + a
34
+ strength ≤30%. oklab is the mwg-preferred tint space (NEVER an
35
+ `oklch(from …)` lightness-shift — browsers don't gamut-map yet). */
36
+ .glass-wash {
37
+ position: relative;
38
+ background: color-mix(in oklab, var(--glass-bg-wash), var(--glass-tint-source) var(--glass-tint-strength));
39
+ backdrop-filter: var(--glass-blur-wash);
40
+ border: 1px solid var(--glass-border-wash);
41
+ box-shadow: var(--glass-material-rim), var(--glass-shadow-wash);
42
+ }
43
+
44
+ /* AL-W10 SLIM under-shadow wiring (tokens.css §AL-W10 SLIM —
45
+ UNDER-SHADOW recipe rungs). Each tier composes its canonical
46
+ iOS Liquid Glass under-shadow (a 0.5px dark hairline along the
47
+ bottom edge reading as glass thickness) as a NON-INSET layer
48
+ PREPENDED to the existing `--glass-shadow-*` recipe — the under-
49
+ shadow lays the floor; the existing shadow stack lays the lift.
50
+ quiet → `--glass-under-shadow-quiet` (0 2px 8px -1px α0.04)
51
+ resting → `--glass-under-shadow-default` (0 4px 16px -2px α0.08)
52
+ floating→ `--glass-under-shadow-vivid` (0 8px 32px -4px α0.12)
53
+ `.glass-wash` is sub-perceptual; `.glass-overlay` is modal-heavy
54
+ — neither composes an under-shadow rung (Y4/Y6/Y7 SLIM retention).
55
+ Spine tier wires its own rung at instrument-chassis.css. */
56
+ .glass-quiet {
57
+ position: relative;
58
+ background: color-mix(in oklab, var(--glass-bg-quiet), var(--glass-tint-source) var(--glass-tint-strength));
59
+ backdrop-filter: var(--glass-blur-quiet);
60
+ border: 1px solid var(--glass-border-quiet);
61
+ box-shadow:
62
+ var(--glass-material-rim),
63
+ var(--glass-under-shadow-quiet),
64
+ var(--glass-shadow-quiet);
65
+ }
66
+
67
+ .glass-resting {
68
+ position: relative;
69
+ background: color-mix(in oklab, var(--glass-bg-resting), var(--glass-tint-source) var(--glass-tint-strength));
70
+ backdrop-filter: var(--glass-blur-resting);
71
+ border: 1px solid var(--glass-border-resting);
72
+ box-shadow:
73
+ var(--glass-material-rim),
74
+ var(--glass-under-shadow-default),
75
+ var(--glass-shadow-resting);
76
+ }
77
+
78
+ /* AV.W15 M3 / AW.W22 — the floating tier carries the full-perimeter rim (the
79
+ catch-light that "defines the silhouette", WWDC25 sess. 219). The rim now
80
+ comes from the unified `--glass-material-rim` (= `--glass-edge-light`) so
81
+ it shares ONE source with the rest of the ladder; it rides INSIDE the
82
+ box-shadow stack so it composes with the under-shadow floor + the lift. */
83
+ .glass-floating {
84
+ /* AY.W-A11Y-PERF O-1 — engage the W55 bright-backdrop bucket BY DEFAULT on
85
+ the overlay band: a floating surface floats over WHATEVER the consumer
86
+ painted (frequently a light/near-white app surface — the canonical G2
87
+ case), so the library opts its own overlay-band glass in at its own root
88
+ via the SELF-CONTAINER reach below (`.glass-floating { --glass-backdrop }`
89
+ + `:where(.glass-floating) > * `-less: the rung re-points its OWN tint
90
+ through the companion self-rule, not only the ancestor @container). `dark`
91
+ (the :root default at tokens.css) stays the explicit per-surface override a
92
+ dark-substrate consumer dials in on an ancestor. */
93
+ --glass-backdrop: light;
94
+ position: relative;
95
+ background: color-mix(in oklab, var(--glass-bg-floating), var(--glass-tint-source) var(--glass-tint-strength));
96
+ backdrop-filter: var(--glass-blur-floating);
97
+ border: 1px solid var(--glass-border-floating);
98
+ box-shadow:
99
+ var(--glass-material-rim),
100
+ var(--glass-under-shadow-vivid),
101
+ var(--glass-shadow-floating);
102
+ }
103
+
104
+ .glass-overlay {
105
+ /* AY.W-A11Y-PERF O-1 — the overlay band engages the W55 bucket by default
106
+ (see .glass-floating). */
107
+ --glass-backdrop: light;
108
+ position: relative;
109
+ background: color-mix(in oklab, var(--glass-bg-overlay), var(--glass-tint-source) var(--glass-tint-strength));
110
+ backdrop-filter: var(--glass-blur-overlay);
111
+ border: 1px solid var(--glass-border-overlay);
112
+ box-shadow: var(--glass-material-rim), var(--glass-shadow-overlay);
113
+ }
114
+
115
+ /* ── Adaptive legibility: the bright-backdrop bucket (AX.W55 — the iOS-26/27
116
+ "locally darken the glass over light content" move; G2) ──────────────────
117
+ When a consumer sets `--glass-backdrop: light` on any ancestor (a near-white
118
+ card surface, a pale aurora bleed, a bright data grid), the `@container
119
+ style()` read engages here and LIFTS the tint toward ink: `--glass-tint-
120
+ strength` climbs from the `0%` rest default to the bounded AA floor
121
+ (`--glass-tint-strength-aa`, ≤24% — translucent floor preserved) and `--glass-
122
+ tint-source` re-points from `var(--card)` to the warm-ink `--glass-tint-ink`.
123
+ Both are INHERITING custom properties the rungs' `background:` composite
124
+ already reads, so re-pointing them on the material group re-resolves the
125
+ EXISTING `color-mix(in oklab, <rung bg>, …)` toward ink — ZERO new compositing
126
+ seam, the literal darken-over-light recipe. The `.glass-*::before` specular
127
+ `plus-lighter` gleam (W52) is untouched (it composes ON the darkened plate;
128
+ the darkening is the orthogonal oklab-tint axis). No `@supports` wrapper:
129
+ style queries introduce no new `container-type` value (every element is a
130
+ style container by default), so an engine without style-query support parses
131
+ the unknown at-rule as invalid, drops the block, and keeps the zero-delta
132
+ glass (the graceful degradation — the surface is today's-glass, the pre-W55
133
+ state; see utilities.css §density for the same precedent). */
134
+ @container style(--glass-backdrop: light) {
135
+ .glass-material,
136
+ .glass-wash,
137
+ .glass-quiet,
138
+ .glass-resting,
139
+ .glass-floating,
140
+ .glass-overlay,
141
+ .glass-card {
142
+ --glass-tint-source: var(--glass-tint-ink);
143
+ --glass-tint-strength: var(--glass-tint-strength-aa);
144
+ }
145
+ }
146
+
147
+ /* AY.W-A11Y-PERF O-1 — SELF-ENGAGE the overlay band by default. The
148
+ `@container style()` rule above queries an ANCESTOR (CSS style queries never
149
+ self-match — verified on Chrome 148), so the `.glass-floating { --glass-backdrop:
150
+ light }` default we set on the rung would NOT darken the rung's OWN surface, only
151
+ its descendants. AND the `:root` library default is `--glass-backdrop: dark`
152
+ (tokens.css), so a `@container style(--glass-backdrop: dark)` revert would ALWAYS
153
+ fire (every element has the dark :root as an ancestor) — it cannot distinguish an
154
+ explicit consumer `dark` from the default. So the overlay band self-engages
155
+ UNCONDITIONALLY as the library default: a floating/overlay surface floats over
156
+ WHATEVER the consumer painted (frequently a light/near-white app surface — the
157
+ canonical G2 case the user reported), so darkening the translucent plate toward
158
+ the warm-ink is the correct default. This re-points the tint tokens DIRECTLY on
159
+ the overlay-band surfaces (`.glass-floating` / `.glass-overlay` — the Dialog/
160
+ Sheet/Popover/DropdownMenu/HoverCard/Command/Tooltip/Toast/Select-content band),
161
+ engaging the SAME oklab tint axis (zero new compositing seam). Over a DARK page
162
+ the darken is sub-perceptual (warm-ink over an already-dark plate is a small
163
+ shift); a dark-substrate consumer who wants the pristine plate sets
164
+ `--glass-tint-strength: 0%` on the overlay band or uses `.glass-opaque`. SCOPED
165
+ to the overlay band ONLY — NOT `.glass-card`/`.glass-resting`/`.glass-dock`, so
166
+ the W55 default-path byte-identity canary (which tests those KINDS with a bare
167
+ no-ancestor div) stays GREEN; and the in-srgb `--surface-tint-*` family is never
168
+ touched (this edits only the in-oklab glass tint axis). */
169
+ :where(.glass-floating, .glass-overlay) {
170
+ --glass-tint-source: var(--glass-tint-ink);
171
+ --glass-tint-strength: var(--glass-tint-strength-aa);
172
+ }
173
+
174
+ /* AX.W55 — the `contrast-color()` foreground-ink flip (Chrome 147+/Safari 26+).
175
+ A PROGRESSIVE-ENHANCEMENT layer, NEVER the load-bearing floor (Open-Q #5
176
+ ratified): the declarative bucket above already carries AA on ALL engines (it
177
+ darkens the translucent plate so dark text clears ~11:1 over white at the 18%
178
+ floor — the live π readback ratifies). On a supporting engine `contrast-color()`
179
+ REFINES the foreground-ink pick natively, anchored on the LIGHT BACKDROP signal
180
+ (`--card`, the warm-white surface base the bright bucket implies) — NOT on the
181
+ ink. `contrast-color(var(--card))` over the light backdrop resolves to the
182
+ maximally-legible DARK ink (anchoring on the dark ink instead would invert to
183
+ white, illegible on the still-light translucent plate). The bucket is the floor;
184
+ this is the native refinement. Scoped to the bright bucket. */
185
+ @supports (color: contrast-color(white)) {
186
+ @container style(--glass-backdrop: light) {
187
+ .glass-material,
188
+ .glass-wash,
189
+ .glass-quiet,
190
+ .glass-resting,
191
+ .glass-floating,
192
+ .glass-overlay,
193
+ .glass-card {
194
+ color: contrast-color(var(--card));
195
+ }
196
+ }
197
+ /* AY.W-A11Y-PERF O-1 — the same contrast-color refinement for the
198
+ SELF-ENGAGED overlay band (the @container block above queries an ancestor;
199
+ the overlay band engages its own tint unconditionally, so its ink-flip
200
+ companion mirrors that). Progressive enhancement only — the declarative
201
+ darken above is the AA floor on all engines. */
202
+ :where(.glass-floating, .glass-overlay) {
203
+ color: contrast-color(var(--card));
204
+ }
205
+ }
206
+
207
+ /* ── The opaque escape (AX.W54) ───────────────────
208
+ The level-0 endpoint of the SAME glass machinery — a solid `--card` plate
209
+ (the opacity seam → 1) with `blur(0)` (the blur seam → 0), routed through
210
+ the ONE `--glass-level` knob. NOT a parallel solid `background:` recipe:
211
+ a `.glass-*` surface that ALSO carries `.glass-opaque` keeps its glass edge,
212
+ rim, and under-shadow (a solid plate with a glass edge, not a bare div), and
213
+ the @supports fallback + the a11y brackets compose coherently. This is the
214
+ explicit opt-out from the MAXIMAL glass default (dense data, forced-colors,
215
+ a consumer that wants a flat surface). */
216
+ .glass-opaque {
217
+ --glass-level: 0;
218
+ }
219
+
220
+ /* ── Content-aware under-shadow modifier (AV.W15 M4) ──────────────
221
+ Apple raises the under-shadow over text (so the glass reads as
222
+ lifting OFF the text) and drops it over solid light. The modifier
223
+ is ATTRIBUTE-DRIVEN, no JS: a consumer adds `.glass-over-text`
224
+ (or `[data-over-content="text"]`) to a text-bearing glass surface to
225
+ swap it ONE under-shadow rung heavier, or `[data-over-content="solid"]`
226
+ to lighten it one rung over a solid-light backdrop. It reuses the
227
+ existing `--glass-under-shadow-{quiet,default,vivid}` rungs (no new
228
+ shadow value — `vivid` is sufficient over text), redefining only the
229
+ leading under-shadow layer per tier; the lift stack is untouched.
230
+
231
+ The selectors are per-tier so the swap is rung-correct
232
+ (quiet→default, resting→vivid). `.glass-floating` already sits at the
233
+ `vivid` ceiling over text, so the heavier variant is a no-op there
234
+ (the rung saturates) — documented, not an error. */
235
+ .glass-quiet.glass-over-text,
236
+ .glass-quiet[data-over-content="text"] {
237
+ box-shadow: var(--glass-under-shadow-default), var(--glass-shadow-quiet);
238
+ }
239
+ .glass-resting.glass-over-text,
240
+ .glass-resting[data-over-content="text"] {
241
+ box-shadow: var(--glass-under-shadow-vivid), var(--glass-shadow-resting);
242
+ }
243
+
244
+ /* The inverse — over a solid-light backdrop the under-shadow lightens
245
+ one rung (the glass need not lift as hard off a flat bright field). */
246
+ .glass-resting[data-over-content="solid"] {
247
+ box-shadow: var(--glass-under-shadow-quiet), var(--glass-shadow-resting);
248
+ }
249
+ .glass-floating[data-over-content="solid"] {
250
+ box-shadow:
251
+ var(--glass-material-rim),
252
+ var(--glass-under-shadow-default),
253
+ var(--glass-shadow-floating);
254
+ }
255
+
256
+ /* Grain noise overlay — reuses paper texture SVG, no extra assets */
257
+ .glass-wash::after,
258
+ .glass-quiet::after,
259
+ .glass-resting::after,
260
+ .glass-floating::after,
261
+ .glass-overlay::after {
262
+ content: '';
263
+ position: absolute;
264
+ inset: 0;
265
+ border-radius: inherit;
266
+ background: var(--paper-clean-texture);
267
+ background-repeat: repeat;
268
+ background-size: var(--paper-texture-size);
269
+ opacity: var(--glass-grain-opacity);
270
+ pointer-events: none;
271
+ mix-blend-mode: overlay;
272
+ }
273
+
274
+ /* (b) The unified rim — `--glass-edge-light` full-perimeter inset ring on
275
+ EVERY material surface (AW.W22). Previously the rim was wired only into
276
+ the floating/overlay tiers' box-shadow stack; promoting it to the material
277
+ group makes wash/quiet/resting/card/dock-control all carry the same
278
+ silhouette catch-light from ONE token. The rim is its OWN `box-shadow`
279
+ declaration on the material group so it composes uniformly without
280
+ perturbing each tier's elevation recipe (the floating/overlay tiers drop
281
+ their now-redundant inline `--glass-edge-light` layer below). The alpha is
282
+ deliberately low so the rim never eats AA legibility over a busy
283
+ backdrop. */
284
+ .glass-material,
285
+ .glass-wash,
286
+ .glass-quiet,
287
+ .glass-resting,
288
+ .glass-floating,
289
+ .glass-overlay,
290
+ .glass-card,
291
+ .glass-specular-track,
292
+ .dock-icon-button {
293
+ --glass-material-rim: var(--glass-edge-light);
294
+ }
295
+
296
+ .dark .glass-wash::after,
297
+ .dark .glass-quiet::after,
298
+ .dark .glass-resting::after,
299
+ .dark .glass-floating::after,
300
+ .dark .glass-overlay::after {
301
+ mix-blend-mode: soft-light;
302
+ }
303
+
304
+ }