Skip to content

Shadows

There are five shadows. xs, pop, menu and card are the four effect styles in Figma; modal is used by the dialog and is not in Figma.

xs--su-shadows-xsFigma 'shadow 1': switch thumb, active tab
pop--su-shadows-popFigma 'shadow 2': tooltip, toast
menu--su-shadows-menuFigma 'shadow 3': select, menu, popover
card--su-shadows-cardFigma 'regular shadow': cards, top bar, action bar
modal--su-shadows-modaldialog (not in Figma)
.summary {
box-shadow: var(--su-shadows-card);
}

Overlays use these z-index values, so they stack in a predictable order. An app that adds its own fixed elements should pick values around them.

TokenValueCSS variableNotes
base0--su-z-index-base
sticky100--su-z-index-sticky
dropdown1000--su-z-index-dropdown
overlay1300--su-z-index-overlay
modal1400--su-z-index-modal
popover1500--su-z-index-popover
toast1700--su-z-index-toast
tooltip1800--su-z-index-tooltip
TokenValueCSS variableNotes
fast120ms--su-durations-fasthover and focus fades (POC 'all .12s')
normal200ms--su-durations-normalmenus, popovers, toasts
slow320ms--su-durations-slowdialog and drawer enter
TokenValueNotes
standard0.2, 0, 0, 1
enter0.16, 1, 0.3, 1
exit0.4, 0, 1, 1