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.
Token | Value | Example |
---|---|---|
box-shadow-positive | 0px 1px 0px rgba(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.
Token | Value | Example |
---|---|---|
glow-primary | 0px 0px 0px 3px #98CBFF | Box Shadow |
glow-negative | 0px 0px 0px 3px #FFB1B2 | Box Shadow |
glow-positive | 0px 0px 0px 3px #9ED696 | Box Shadow |
glow-warning | 0px 0px 0px 3px #FDE5C0 | Box Shadow |
glow-muted | 0px 0px 0px 3px #E7EBEE | Box Shadow |