Elevation and surfaces
Use surface treatment to explain regions and layers.
On this page
Use surface treatment to distinguish regions and layers. A shadow, fill change or edge should explain containment, interaction or overlap rather than merely make every element appear raised.
#Establish a surface ladder
Separate the base canvas, grouped content, interactive faces, recessed inputs and overlays. Reuse these roles across the interface. A large content section can be grouped through spacing; it does not always need a card.
In light appearances, a restrained shadow and edge can define a raised face. In dark appearances, controlled fill differences and directional edges often carry more information than shadow alone. Keep the hierarchy readable without requiring a bright outline around everything.
#Keep layers distinct
Visual depth and stacking order are different decisions. A strongly shadowed card should not cover a dialog. Use native top-layer behavior where appropriate, and document which overlays may coexist. Check a tooltip, menu and modal together instead of assigning ever-larger z-index values.
Keep active, pressed and selected behavior stable. A pressed face may reduce depth without moving its label or changing the control's footprint. Functional input boundaries and focus indicators need their own contrast, separate from decorative hairlines.
#Distinguish three relationships
Grouping connects related content. Painted depth suggests separation through fill, contour or shadow. Interaction layering determines what can receive input and which region can cover another. They often cooperate but are not interchangeable.
A modal's backdrop and focus behavior remain necessary even with no shadow. A card can have a shadow without being interactive. A field can be identifiable through a border or fill without being visually recessed. Choose the mechanism that explains the role in the existing design language.
Grouping, painted depth and input layering
Space and alignment can connect it.
Fill, contour and shadow explain appearance.
Modality and focus come from behavior.
The same region can be grouped without elevation. A painted shadow does not establish modality or stacking behavior.
Text description
Three regions distinguish grouping by space and alignment, painted depth by contour and shadow, and an interaction layer requiring focus and modality behavior. Their appearance alone does not establish input behavior.
#Review a stack
Place a floating panel over both plain and busy content. Compare fill separation, contour and shadow independently, then together. Keep the panel geometry and underlying content fixed. Test clipping, forced colors and long content, and verify the foreground can still be read when decorative effects are unavailable.
#Review
Check adjacent surfaces, scrolling and overlay clipping in both themes and forced colors. Remove shadows temporarily to see whether essential boundaries still exist. See surfaces, materials and overlays.