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-0
flat
.elevation-1
1 / 2
.elevation-2
2 / 3
.elevation-3
3 / 5
.elevation-4
8 / 13
.elevation-5
13 / 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-2xl
Glow 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-sm
Subtle (10px blur)
.hover-glow-md
Medium (20px blur)
.hover-glow-lg
Strong (30px blur)
Colored Shadows

Semantic color shadows for emphasis:

.shadow-primary
.shadow-success
.shadow-warning
.shadow-error
CSS Variables

Customize glow colors via CSS variables:

Note: Glow intensity is automatically increased in dark mode for better visibility.