Skip to main content

Elevation

UI Design

What is Elevation

Elevation is the distance between two surfaces along the z-axis, the depth of the screen. Designers use it to show which elements sit above others, such as a menu over a page or a dialog over content.

How Elevation works

  • Shadows: Higher elements cast larger, softer shadows
  • Surface color: Higher surfaces can be lighter, especially in dark mode
  • Levels: Material 3 uses six levels, from 0 to +5
  • Interaction: Elements can rise on hover or while dragged

When to use Elevation

Use elevation to show layers and focus. Menus, dialogs, bottom sheets and floating buttons sit higher than the page. Keep the number of levels small so the depth stays easy to read. Do not raise every card, or nothing will stand out.

Elevation in dark mode

Shadows almost disappear on dark backgrounds. Apple uses brighter elevated backgrounds for layers in front, and Material 3 uses tonal surface colors to show which surface is higher.

Frequently asked questions

How many elevation levels does Material Design use?

Material 3 uses six levels, from 0 to +5. Elements at rest sit on levels 0 to +3, and levels +4 and +5 are kept for interaction states such as hover and dragging.

How do you show elevation in dark mode?

Shadows are hard to see on dark backgrounds, so higher surfaces get lighter colors. Apple uses brighter "elevated" backgrounds, and Material 3 uses tonal surface colors.

What is the difference between elevation and a drop shadow?

Elevation is the idea of how far one surface sits above another. A drop shadow is one way to show it. Surface color and overlap can show elevation too.