Box Shadow
Elevate components with drop shadows to create hierarchy and emphasis.
Here are some early guidelines on what elements should receive which drop shadows:
- 2 extra small (2xs) tokens are for text, icons and borders.
- Extra small (xs) tokens are for cards and buttons
- Small (sm) tokens are for hover states for cards and buttons.
- Medium (md) tokens are navigational drawers and bars.
- Large (lg) tokens are for floating action buttons.
- Extra large (xl) tokens are for modals.
- 2 extra large (2xl) tokens are for dialogs.
Components in the design system will ultimately have drop shadows automatically applied to them.
Name
Figma usage
Current value
--box-shadow-2xs
0 1px 1px 0 rgba(0, 0, 0, 0.10)
0 0.063rem 0.063rem 0 rgba(0, 0, 0, 0.10)
--box-shadow-xs
0 2px 2px 0 rgba(0, 0, 0, 0.10)
0 0.125rem 0.125rem 0 rgba(0, 0, 0, 0.10)
--box-shadow-sm
0 4px 4px 0 rgba(0, 0, 0, 0.10)
0 0.25rem 0.25rem 0 rgba(0, 0, 0, 0.10)
--box-shadow-md
0 8px 8px 0 rgba(0, 0, 0, 0.08)
0 0.5rem 0.5rem 0 rgba(0, 0, 0, 0.08)
--box-shadow-lg
0 12px 12x 0 rgba(0, 0, 0, 0.07)
0 0.75rem 0.75rem 0 rgba(0, 0, 0, 0.07)
--box-shadow-xl
0 18px 18px 0 rgba(0, 0, 0, 0.06)
0 1.125rem 1.125rem 0 rgba(0, 0, 0, 0.06)
--box-shadow-2xl
0 24px 24px 0 rgba(0, 0, 0, 0.05)
0 1.5rem 1.5rem 0 rgba(0, 0, 0, 0.05)