Skip to main content

Elevation

When something rises above the page, and what separates groups.

elevation.card elevation.overlay

The five answers​

QuestionAnswerWhy
What rises above the page?Only what floatsOnly menus and dialogs float.
How many shadow levels exist?OneOne shadow for floating things.
What separates groups on the page?SpaceSpace separates groups; lines would interrupt reading.
How soft are shadows?SoftSoft shadows suit warm paper.
Where does elevation show?Menus and dialogsMenus and dialogs are the only layers.

Tokens​

Each token points to another token. Values live only on primitives, below.

TokenPoints to, lightPoints to, dark
elevation.cardcontent-first.theme.light.elevation.card → shadow.nonecontent-first.theme.dark.elevation.card → shadow.none
elevation.overlaycontent-first.theme.light.elevation.overlay → shadow.overlaycontent-first.theme.dark.elevation.overlay → shadow.overlay-dark

The raw values these tokens end at are on Primitives › Effects.

When to use what​

SituationUseNotWhy
A card on the pageA border, no shadowA strong shadowCards stay flat on the page; shadows are for floating things.
A menu or dialogelevation.overlay and a dimmed pageNo shadowThe dimmed page focuses the reader on the dialog.