Shadow

Reshaped supports two shadow tokens that demonstrate the level of elevation of the component.

Base shadow is used to elevate the elements that initially don't have any elevation, for example, in elevated Card. Elevated shadow is used for elements that are displayed on top of other elements, like in DropdownMenu.

Shadows are usually used with base and elevated background color tokens: --rs-color-background-base and --rs-color-background-elevated. Since shadows are less prominent in dark mode, these color tokens will adjust the element's background color to communicate the elevation to the user.

Previous