How depth guides attention,
hierarchy, and emotional tone
—Part of CSS Primer for the AI Era — Visual Style
Shadows are the softest structural tool in visual style.
They don’t draw lines or define edges.
They create 'atmosphere' —
a sense of depth, elevation, and spatial relationship.
A shadow can make a component feel:
Where borders define 'edges',
shadows define 'space'.
A quiet mental model:
Shadows are depth cues —
the soft geometry of atmosphere.
Shadows help the user understand:
They create a visual hierarchy
without adding noise.
A shadow is not decoration.
It is 'spatial meaning'.
Shadows communicate elevation:
Elevation is not literal height
— it is perceived importance.
Common elevation levels
These levels help maintain consistency across components.
Shadows have two key qualities:
Soft shadows feel:
Hard shadows feel:
A quiet rule:
The softer the shadow,
the calmer the interface.
Real shadows are rarely pure black.
In UI design, black shadows often feel heavy or artificial.
Modern shadows use:
This creates depth without harshness.
A common pattern
Together, they create a natural, layered effect.
Shadows can communicate interaction states:
These cues help the user understand
what is happening without reading anything.
A shadow can say:
Shadows are one of several ways to separate
or elevate elements.
Use a shadow when:
Use a border when:
Use background color when:
Shadows are atmospheric.
Borders are structural.
Color is contextual.
These cues help AI make shadow decisions intentionally:
“Use soft, low‑contrast shadows for calm interfaces.”
“Increase elevation for interactive or floating elements.”
“Use layered shadows for natural depth.”
“Avoid pure black shadows; use translucent neutrals.”
“Use shadows sparingly to avoid visual noise.”
These keep AI grounded in clarity and atmosphere.
AI understands shadows because it knows the patterns:
It can propose shadows that are mathematically consistent.
But humans feel something AI cannot:
AI can suggest shadows.
Humans decide whether
the depth feels right.
A quiet reminder:
Shadows give depth.
Atmosphere gives meaning.
And sometimes, breaking the elevation pattern
is what makes the interface feel alive.
Depth is both geometry and mood.
AI supports the geometry.
Humans guide the mood.
Tony de Araujo —New York | Lisbon