Elevation

Elevation conveys how far a surface sits above its background or other elements. Compass combines shadows, borders, surface colors, and overlays.

Defining elevation

Elevation describes relationships, not a physical height in pixels. Keep normal content flat and distinguish floating surfaces such as menus and sheets.

Shadow scale

Compare shadows at the same size and surface color. Keep basic surfaces flat and apply only the depth floating surfaces need.

Flat
Basic content surface
Low
Selected tab surface
Medium
Menus and selection lists
High
Bottom sheet

Component usage

Do not add shadows to every card or button.

Card

Distinguish with borders and surface color

Selected tab

Distinguish the selected surface from its background

Theme and language menus / Dropdown

Show options above existing content

Bottom sheet

Show a supporting task above content

Dialog / Alert Dialog

Distinguish with a border and backdrop instead of a shadow

Stacking order

Base content

Normal document flow

Docs sidebars

Fixed navigation at the screen edges

Gallery filters

Filters retained while scrolling

Header

Global navigation above filters and sidebars

Menus, dialogs, and sheets

Popup surfaces above the page

Themes and states

Retain borders and surface colors to distinguish depth on dark backgrounds.

Do not arbitrarily increase shadow strength for button selection or hover states.