Skip to content
UX Atlas
UI foundationCraft conventionIntermediate

Elevation

A system of layers that says what sits above what, expressed visually and enforced in code.

Definition

Elevation is the apparent distance of a surface from the background. It is communicated through shadow, surface lightness or both, and it should map to a documented set of levels rather than to arbitrary z-index values.

Craft convention. True because the industry converged on it. Breaking it costs familiarity, not correctness.

On this page
  1. Definition
  2. A working elevation system
  3. In practice
  4. Continue from here
0 page1 card2 dropdown3 popover4 modalIn dark mode, each level lightens instead of casting a shadow.
A five-level elevation system. Each level has a defined shadow, a defined dark-mode surface, and a defined z-index range.

A working elevation system

LevelUsed byLight modeDark mode
0Page backgroundBase surfaceBase surface
1Cards, raised panelsVery subtle shadowSurface one step lighter
2Sticky headers, dropdownsSmall shadowTwo steps lighter
3Popovers, tooltipsMedium shadowThree steps lighter
4Modals and dialogsLarge shadow plus scrimFour steps lighter plus scrim
5Toasts and critical alertsLarge shadowHighest surface

In practice

Dark mode elevation by lightness

Theming

Shadows are almost invisible against dark surfaces. Raising elevation by lightening the surface is the standard approach, and it needs to be defined per level rather than improvised.

Each link says what the connection is, so you can tell a principle from an alternative from a thing people mix this up with.

Applied through

Where this shows up as a concrete interface decision.

Principles behind this

The reasoning this solution is an application of.

Short definition

The one-paragraph version, for when that is all you need.

Related concept

Connected closely enough to change how you apply this.