New release
Introducing a visual refresh to Forma 36 React componentsRelease notes
Forma 36

Box Shadows

Box Shadows

We use two different styles of box shadows at Contentful. Box shadows to communicate depth, and glows to communicate semantics.

Box shadows are used to give depth to the user interface.

TokenValueExample
box-shadow-positive
0px 1px 0px rgb(25, 37, 50, 0.1)
Box Shadow
box-shadow-default
0px 0px 0px 1px rgba(25, 37, 50, 0.1), 0px 3px 7px -3px rgba(25, 37, 50, 0.1), 0px 6px 12px -2px rgba(25, 37, 50, 0.1);
Box Shadow
box-shadow-heavy
0px 0px 0px 1px rgba(25, 37, 50, 0.1), 0px -6px 16px -6px rgba(25, 37, 50, 0.03), 0px 8px 16px -8px rgba(25, 37, 50, 0.2), 0px 13px 27px -5px rgba(25, 37, 50, 0.15);
Box Shadow
inset-box-shadow-default
inset 0px 2px 0px rgba(225, 228, 232, 0.2);
Box Shadow

Glows

Glows are used to indicate semantic focus states, for example in the Button component.

TokenValueExample
glow-primary
0px 0px 0px 3px #84B9F5
Box Shadow
glow-negative
0px 0px 0px 3px #ECA7A7
Box Shadow
glow-positive
0px 0px 0px 3px #8AD6B1
Box Shadow
glow-warning
0px 0px 0px 3px #FFD7A2
Box Shadow
glow-muted
0px 0px 0px 3px #e5ebed
Box Shadow