Shadows
A set of box shadows have been defined in Torq for use in components to provide either an elevated shadow or the standard focus indicator.
Overview
Shadows play a crucial role in design systems documentation as they help establish visual hierarchy by indicating the relative importance or prominence of different elements.Usage
- Use shadows for hierarchy and depth; small, sharp shadows imply proximity, while larger, softer shadows suggest elevation or floating.
- Maintain consistency in shadow usage for a unified visual language across components.
- Use shadows to help with visual hierarchy on the page and to draw focus on key elements within the UI, like a dropdown or a drawer.
- Limit shadow levels in UI for enhanced user attention and action direction.
- Ensure shadows consider accessibility; avoid hindrance to readability and maintain contrast.
DoUse shadow to highlight how content is layered in the UI
Don'tApply excessive shadows
Shadows
| Name | Value | Usage |
|---|---|---|
t.semantic.box-shadow.0 0 | Use for elements with no elevation | |
t.semantic.box-shadow.20 20 | ||
t.semantic.box-shadow.40 40 | ||
t.semantic.box-shadow.60 60 | For elements that are moderately elevated from the surface of the interface, e.g tooltip and dropdown | |
t.semantic.box-shadow.80 80 | For elements that are elevated substantially from the surface of the interface, e.g elevated card and tertiary button | |
t.semantic.box-shadow.100 100 | For elements that are the most elevated from the surface of the interface, e.g modals | |
t.semantic.box-shadow.focusindicator focusindicator | Use for any focusable element |