Decorative Surfaces
Surfaces are reusable backdrop fills for heroes, marketing bands, and Seemore Glass demos. Ship .vd-surface plus a variant, then tune Fibonacci intensity with .vd-surface-2|3|5|8|13 (powers of φ). Primary mixes use color-mix(in oklab, …).
.vd-surface-meshSoft radials + micro-stripes over a warm spectrum — classic glass stage.
.vd-surface-stripeBold diagonal bands on blue → purple → orange. High-energy hero fill.
.vd-surface-noiseGrainy stipple over slate / indigo / magenta for editorial depth.
.vd-surface-auroraOverlapping color ribbons — calm atmosphere for marketing bands.
.vd-surface-dotsPolka lattice on a cool field — playful without fighting frost.
.vd-surface-gridFine technical lattice for dashboards and product chrome.
.vd-surface-phi-radialDual elliptical blooms at (61.8%, 38.2%) and (38.2%, 61.8%) over a 137.508° base.
.vd-surface-golden-waveCrossed 137.508° and 222.492° bands at 13px, 21px, 34px, and 55px.
.vd-surface-fib-latticeNested grids at 13px, 34px, and 89px.
.vd-surface-golden-prismConic sectors anchored at (61.8%, 38.2%) with stops at 137.508° and 222.492°.
.vd-surface-phyllotaxisVogel 137.508° seed field on a 233px tile, plus Fibonacci rings.
.vd-surface-spiral610×377 rectangle subdivision with an inscribed quarter-turn spiral.
.vd-surface-vortexFour-arm 16.18° inflow curves and Fibonacci isobars.
.vd-surface-caustic144×89 tile of phase-shifted golden-ratio light filaments.
Intensity modifiers
Intensity adjusts pattern opacity/contrast — not blur — so Surfaces stay cheap under glass.
.vd-surface-2φ⁻².vd-surface-3φ⁻¹.vd-surface-5φ⁰.vd-surface-8φ^0.5.vd-surface-13φ¹Pairing recipe
Surface + Seemore Glass
Put busy color in the Surface; keep one Fibonacci glass step on the content panel. Consumers get the same classes we use in docs.
Explore Seemore GlassFocal drift
useSurface(driftRoot, { amplitude: 16, speed: 1 }) moves --vd-surface-focal-x and --vd-surface-focal-y on this card. [data-surface-drift] follows a 1 : φ Lissajous curve (±16 points at 1 rad/s). [data-surface-parallax] offsets by nx × 8 (about ±4 points). Library defaults stay 5.5 points, 0.45 rad/s, and nx × 8. The loop pauses off-screen and stops under prefers-reduced-motion: reduce.
Golden horizon + caustic glass
Drift and pointer parallax stay inside this surface.
Recommended glass pairings
| Surface | Glass |
|---|---|
.vd-surface-phi-radial | .vd-glass-5 or .vd-glass-8 + .vd-glass-caustic |
.vd-surface-golden-wave | .vd-glass-8 or .vd-glass-13 + .vd-glass-adaptive |
.vd-surface-fib-lattice | .vd-glass-5 + .vd-glass-obsidian |
.vd-surface-golden-prism | .vd-glass-13 or .vd-glass-21 + .vd-glass-caustic |
.vd-surface-phyllotaxis | .vd-glass-8 + .vd-glass-caustic |
.vd-surface-spiral | .vd-glass-8 or .vd-glass-13 + .vd-glass-obsidian |
.vd-surface-vortex | .vd-glass-8 + .vd-glass-caustic |
.vd-surface-caustic | .vd-glass-5 or .vd-glass-8 + .vd-glass-caustic |
Tokens
| Token | Role | Default |
|---|---|---|
--vd-surface-intensity | Pattern layer strength | 1 (step 5, φ⁰) |
--vd-surface-contrast | Dark-layer punch | 1 (step 5) |
--vd-surface-min-height | Default min-height | 12rem |
--vd-surface-base | Variant base gradient | set per variant |
--vd-golden-angle | Surface light vector | 137.508deg |
--vd-golden-angle-conj | Conjugate wave angle | 222.492deg |
--vd-surface-focal-x | Primary focal x | 61.8% |
--vd-surface-focal-y | Primary focal y | 38.2% |
--vd-surface-focal-x-alt | Secondary focal x | 38.2% |
--vd-surface-focal-y-alt | Secondary focal y | 61.8% |