Home
Bookmarks
Leagues
LEARN
Courses
Career Paths
Assessments
Tutorials
Arcade
Glossary
GROW
Certifications
Log in
Glossary
Log inSign up
Courses/UX Design Foundations/Intro to Shadows/
Exercise #3

Layered Shadows: Avoiding the Muddy Black Anti-Pattern

A single harsh shadow (e.g., box-shadow: 0 10px 20px rgba(0,0,0,0.4)) looks amateur, heavy, and creates a 'muddy' edge that distracts from content.

The Multi-Layer Technique

To create realistic, smooth shadows that mimic natural ambient lighting, combine two or more subtle shadow declarations:

/* Smooth, realistic card shadow */
box-shadow:
  0 1px 2px rgba(0, 0, 0, 0.04), /* Crisp ambient contact shadow */
  0 8px 16px rgba(0, 0, 0, 0.06); /* Soft, diffused elevation cast */

Multi-layered shadows maintain crisp edge definition near the element while casting a gentle atmospheric blur into the distance.

Topics

The Physics of Light: Virtual Sunlight & Ambient Occlusion
Deconstructing CSS Box-Shadow Properties
Layered Shadows: Avoiding the Muddy Black Anti-Pattern
Elevation Hierarchy and Design System Tokens
Shadows in Dark Mode: Tonal Elevation vs. Opacity
Cognitive Affordance: Communicating Interactivity and Drag States
design
UX Design

From lesson

11

Intro to Shadows

Level 3 · Elements of Design II

Top contributors

Community contribution details will appear here once real learner activity is available.

Share