Shadows & Glow
VD3 UI provides a comprehensive shadow system based on Fibonacci proportions, plus glow effects for interactive elements. Shadows create depth and visual hierarchy, while glow effects add emphasis on hover.
Fibonacci elevation ladder
Each level's Y-offset and blur are a Fibonacci pair. Depth steps through the sequence —
1/2 → 2/3 → 3/5 → 8/13 → 13/21 → 21/34 — so elevation grows at a natural rate rather than in arbitrary jumps. .elevation-0…5 map onto the shadow scale. .elevation-0flat
.elevation-11 / 2
.elevation-22 / 3
.elevation-33 / 5
.elevation-48 / 13
.elevation-513 / 21
The same pairs drive the .vd-shadow-* utilities below (.vd-shadow-2xl reaches 21/34). These proportions come from the Golden Ratio system.
Shadow Utilities
Apply shadows with utility classes:
.shadow-none.shadow-sm.shadow.shadow-md.shadow-lg.shadow-xl.shadow-2xlGlow Utilities
Add glowing effects to any element:
.glow or .glow-primary - permanent glow .hover-glow - glow on hover only .hover-glow-success - green glow .hover-glow-warning - yellow glow .hover-glow-error - red glow Glow Intensity Variants
Control the glow intensity with size variants:
.hover-glow-smSubtle (10px blur)
.hover-glow-mdMedium (20px blur)
.hover-glow-lgStrong (30px blur)
Colored Shadows
Semantic color shadows for emphasis:
.shadow-primary.shadow-success.shadow-warning.shadow-errorCSS Variables
Customize glow colors via CSS variables:
Note: Glow intensity is automatically increased in dark mode for better visibility.