Skip to content

Box shadow

  • Stable
  • Not reviewed for accessibility

Box shadows are used to make content appear elevated. They are typically applied to containers of content that users need to pay attention to or content that appears on top of (overlapping) other elements on the page (like a pop-over or modal).

Small

Small shadows are mainly used on things that need to appear slightly elevated, like pricing cards or UI elements containing important information.

These types of shadows are typically applied to elements with borders, such as the Box component.

Medium

Medium box shadows are more diffused and slightly larger than small box shadows.

Medium box shadows are typically used on editorialized content that needs to appear elevated. Most of the time, the elements using this level of shadow will be clickable.

Large

Large box shadows are very diffused and used sparingly in the product UI.

These shadows are used for marketing content, UI screenshots, and content that appears on top of other page elements.

Extra large

Extra large box shadows are even more diffused.

These shadows are used for marketing content and content that appears on top of other page elements.

Remove a box shadow

Additionally there is a box-shadow-none class that removes box-shadow:

Edit this page on GitHub
4 contributorssimuraijonrohanyailicolebemis
Last edited by simurai on September 17, 2021