Skip to content

Elevation

Download .md

Cards are set apart by a border first; a shadow marks something that floats above the page.

  • borderCards on the page
  • elevation-smControls that lift slightly
  • elevation-mdThe floating search card
  • elevation-lgMenus, toasts and dialogs
TokenValueUse
elevation-sm--elevation-sm0 1px 2px 0 #1018280DSelected tabs and slightly raised controls.
elevation-md--elevation-md0 1px 2px 0 #1018280A, 0 12px 32px -8px #10182814Cards that float, such as the dashboard search card.
elevation-lg--elevation-lg0 12px 30px -6px #10182838Menus, popovers, toasts and dialogs.
TokenValueUse
elevation-sm--elevation-sm0 1px 3px 0 #00000059Selected tabs and slightly raised controls.
elevation-md--elevation-md0 1px 3px 0 #00000059, 0 12px 32px -8px #00000080Cards that float, such as the dashboard search card.
elevation-lg--elevation-lg0 12px 32px -4px #000000CCMenus, popovers, toasts and dialogs.

Dialogs and sheets dim the page behind them with the overlay token, a translucent layer that is lighter in light mode and deeper in dark mode.

TokenValueUse
overlay--overlay#10182866Translucent layer behind dialogs and sheets.
TokenValueUse
overlay--overlay#000000A3Translucent layer behind dialogs and sheets.
  • The floating header card of the dashboard uses elevation-md.
  • Menus, popovers, toasts and dialogs use elevation-lg.
  • In Tailwind v4 the levels map to shadow-sm, shadow-md and shadow-lg.