Seemore Glass
Seemore Glass is VD3 UI’s frosted material system: every strength step follows the Fibonacci sequence so blur, tint, edge, and elevation move together — the same harmonic language as the rest of the kit. The rim sheen follows --vd-golden-angle (137.508deg) and fades at 38.2% and 61.8%. Opt in with .vd-glass and a step class; stage demos on package .vd-surface-* backdrops. Steps run through 89 (extreme marketing ceiling); prefer 1–21 for everyday UI.
Blur
backdrop-filter softens the Surface behind the panel. Soft-cap ~20px for UI; 34/55/89 rise modestly to 26px.
Tint
Semi-transparent fill so blur never ships alone. Opacity rises with the same Fibonacci index.
Edge
A light border + single-direction rim highlight separates glass from the backdrop.
Elevation
Soft box-shadow scales with the step so thicker glass also floats a little higher.
Fibonacci strength explorer
Click any step to preview how thickness changes across the scale. Default .vd-glass is step 5. Past 21, blur rises only a little — tint, edge, and elevation do the heavy lifting through 89. The backdrop row changes the Surface behind that same preview.
.vd-glass-5
Primary cards, panels (default)
- Blur
8px - Tint
0.20 - Border
0.24
| Step | Blur | Tint | Edge |
|---|---|---|---|
.vd-glass-1 | 2px | 0.08 | 0.12 |
.vd-glass-2 | 3px | 0.12 | 0.16 |
.vd-glass-3 | 5px | 0.16 | 0.20 |
.vd-glass-5 | 8px | 0.20 | 0.24 |
.vd-glass-8 | 13px | 0.28 | 0.30 |
.vd-glass-13 | 16px | 0.32 | 0.34 |
.vd-glass-21 | 20px | 0.38 | 0.38 |
.vd-glass-34 | 22px | 0.46 | 0.44 |
.vd-glass-55 | 24px | 0.55 | 0.50 |
.vd-glass-89 | 26px | 0.66 | 0.58 |
Aliases: .vd-glass-sm→3, .vd-glass-md→5, .vd-glass-lg→8, .vd-glass-xl→13. Ceiling: .vd-glass-89.
Surfaces make glass sing
Mesh, stripe, noise, aurora, dots, and grid ship as .vd-surface-* — see the Surfaces page for the full assorti.
Modifiers
Accessibility
prefers-reduced-transparency— near-opaque solid, no blur, including.vd-glass-causticand.vd-glass-obsidianprefers-contrast: more— thicker border, higher tintprefers-reduced-motion— floating / scroll proxy transitions stop@supports not (backdrop-filter)— solid--vd-bg-primaryfallback- Scroll glass never transitions
backdrop-filter— GPU-friendly proxy only
Tip: never put long-form body copy on raw glass; keep one fib step per surface type; limit overlapping frost layers to two.
Component integration
Glass modifiers on kit components — open the modal over a rich Surface so frost reads light, not opaque chrome.
Theming tokens
| Token | Role | Default (step 5) |
|---|---|---|
--vd-glass-blur | Backdrop blur (step-driven) | 8px @ step 5 |
--vd-glass-bg-opacity | Tint opacity | 0.20 @ step 5 |
--vd-glass-border-alpha | Edge opacity | 0.24 @ step 5 |
--vd-glass-saturate | Backdrop saturation | 1.7 @ step 5 |
--vd-glass-highlight-alpha | Rim sheen | 0.22 @ step 5 |
--vd-glass-shadow | Elevation shadow | step-scaled |
--vd-glass-noise-opacity | Grain overlay | 0.035 @ step 5 |
Scroll-activated glass
The dashed box is only a trigger — it does not dim or restyle. Scroll inside the well until that sentinel clips out; the glass panel below the well frosts via useGlass toggling .is-glass-active.
backdrop-filter transition). | API | Applies to | Effect |
|---|---|---|
useGlass(root) | composable | On mount, observes a sentinel for every [data-glass-scroll] under root. Viewport root (no custom overflow root). |
[data-glass-scroll] | glass element | Opt-in. Transparent (no blur) until .is-glass-active; blur enables instantly — no backdrop-filter transition. |
data-glass-sentinel | glass element | CSS selector for the observed node. Defaults to the previous sibling when omitted or unmatched. |
.is-glass-active | glass element | Toggled on when the sentinel is not intersecting the viewport (overflow ancestors clip intersection). |