Spectra v0.1

Fundamentals / elevation

Priority 1

Shadows

Back to docs

Spectra uses a small elevation ladder: three surface shadows and three text shadows. Keep the scale tight so raised UI still feels related.

Shadow tokens

PreviewTokenTypeUsed forValue
Spectra
--sp-shadow-1Surface shadowDefault cards and grounded surfaces
Spectra
--sp-shadow-2Raised shadowElevated cards, stronger shells
Spectra
--sp-shadow-3Deep shadowHero moments or heavy overlays
Spectra
--sp-text-shadow-1Text shadow 1Readable glow on dense backgrounds
Spectra
--sp-text-shadow-2Text shadow 2Stronger display text lift
Spectra
--sp-text-shadow-3Text shadow 3Dramatic headlines only

How to use the scale

Default

Use --sp-shadow-1 for regular cards and shells.

Raised

Use --sp-shadow-2 when a surface needs to step above the page.

Deep

Reserve --sp-shadow-3 for special moments.