Elevation
Loading
Elevation is used to create a visual distinction between components and visual elements with different spatial relationships. Elevation helps to create areas of hierarchy, emphasis, priority and focus within our experiences. By combining surfaces and shadows, elevations create an illusion of depth or lift.
Two types of elevation are used:
Elevation can be achieved by applying:
| Reference | Value | Example |
|---|---|---|
| small | box-shadow: 0 .125rem .25rem .4 | |
| medium | box-shadow: 0 .25rem 1rem .4 | |
| large | box-shadow: 0 1rem 2rem .4 | |
| xlarge | box-shadow: 0 2rem 4rem .4 |
There are 11 Z-index values available:
| Reference | Value | Description |
|---|---|---|
| --z-index-default | auto | The base z-index |
| --z-index-1 | 1 | Used to elevate over adjacent tokens |
| --z-index-100 | 100 | Used for modals and menus attached to elements |
| --z-index-2 | 200 | Used for popup help and other on demand elements |
| --z-index-3 | 300 | Used for the skip-to link to ensure visibility when active in any page. |