Elevations
Elevations refer to the overlapping position of elements with one another, while shadows create the illusion of depth and separate elements from the background. Together they create visual depth and dimension.
Elevation color
Sample | Token | Value | Contrast |
---|---|---|---|
--uxa-elevation-color--base | #f6f6f6 |
19.48:1 12.2:1 | |
--uxa-elevation-color--1 | #ffffff |
21:1 13.15:1 | |
--uxa-elevation-color--2 | #ffffff |
21:1 13.15:1 | |
--uxa-elevation-color--3 | #ffffff |
21:1 13.15:1 | |
--uxa-elevation-color--4 | #ffffff |
21:1 13.15:1 | |
--uxa-elevation-color-contrast | #323435 |
1.6:1 1:1 |
Sample | Token | Value | Contrast |
---|---|---|---|
--uxa-elevation-color--base | #101629 |
19.08:1 7.54:1 | |
--uxa-elevation-color--1 | #1d2238 |
16.71:1 6.6:1 | |
--uxa-elevation-color--2 | #24293f |
15.21:1 6.01:1 | |
--uxa-elevation-color--3 | #2a2f45 |
13.92:1 5.5:1 | |
--uxa-elevation-color--4 | #33384c |
12.12:1 4.79:1 | |
--uxa-elevation-color-contrast | #dce0e8 |
1.31:1 1.93:1 |
Box shadow
Sample | Token | Value | Usage |
---|---|---|---|
--uxa-elevation__box-shadow--1 | box-shadow: 0px 2px 6px rgba(0,0,0,0.06); | usually applied on cards, dashboards, tables | |
--uxa-elevation__box-shadow--2 | box-shadow: 0px 2px 4px rgba(0,0,0,0.1); | used on the masthead and side panels | |
--uxa-elevation__box-shadow--3 | box-shadow: 0px 6px 10px rgba(0,0,0,0.1); | used for dialogs and notifications | |
--uxa-elevation__box-shadow--4 | box-shadow: 0px 12px 24px rgba(0,0,0,0.12); | used on tooltips, pickers and menus |
Sample | Token | Value | Usage |
---|---|---|---|
--uxa-elevation__box-shadow--1 | box-shadow: 0px 1px 4px rgba(0,0,0,0.32); | usually applied on cards, dashboards, tables | |
--uxa-elevation__box-shadow--2 | box-shadow: 0px 6px 12px rgba(0,0,0,0.32); | used on the masthead and side panels | |
--uxa-elevation__box-shadow--3 | box-shadow: 0px 12px 24px rgba(0,0,0,0.32); | used for dialogs and notifications | |
--uxa-elevation__box-shadow--4 | box-shadow: 0px 18px 32px rgba(0,0,0,0.32); | used on tooltips, pickers and menus |