Elevation
Cards have no shadow. Things that float do. A control over content and a toast use shadow-raised. A menu, popover or select uses shadow-floating, a soft stack with a 1px edge built in. A dialog or sheet uses shadow-sheet, one soft shadow with no edge line, since bands and a ring show over the scrim. No floating surface has a border.
Steps
shadow-glassA thumb on its track
shadow-raisedA control over content
shadow-floatingMenu, popover, toast
shadow-sheetSheet, dialog
Tokens
--edgeA 1px line built into each shadow, used in place of a borderrgb(0 0 0 / 5%)Dark: rgb(255 255 255 / 12%)--elev-glassThe thumb in a segmented control, tabs or a switch, the glass nav's pill, and a round bar button0 1px 2px rgb(0 0 0 / 4%), 0 0 0 1px rgb(0 0 0 / 4%)--elev-raisedA control floating over content, and a toast0 18px 47px rgb(0 0 0 / 3%), 0 7.5px 19px rgb(0 0 0 / 2%), 0 4px 10.5px rgb(0 0 0 / 2%), 0 1.2px 3.1px rgb(0 0 0 / 1%), 0 0 0 1px var(--edge)--elev-floatingA popover, menu or select, and a floating Grow panel0 25px 50px rgb(0 0 0 / 5%), 0 12px 24px rgb(0 0 0 / 4%), 0 6px 12px rgb(0 0 0 / 3%), 0 3px 6px rgb(0 0 0 / 2%), 0 1.5px 3px rgb(0 0 0 / 2%), 0 0 0 1px var(--edge)--elev-sheetA sheet or dialog: one soft shadow and no edge line0 16px 48px -8px rgb(0 0 0 / 16%)Dark: 0 16px 48px -8px rgb(0 0 0 / 50%)--outline-imageA 1px line just inside a photooklch(0 0 0 / 10%)Dark: oklch(1 0 0 / 10%)--on-photoAn icon drawn over a photo or its dark scrim: white in both themesoklch(1 0 0)
