Cards are set apart by a border first; a shadow marks something that floats above the page.
borderCards on the pageelevation-smControls that lift slightlyelevation-mdThe floating search cardelevation-lgMenus, toasts and dialogs
| Token | Value | Use |
|---|
elevation-sm--elevation-sm | 0 1px 2px 0 #1018280D | Selected tabs and slightly raised controls. |
elevation-md--elevation-md | 0 1px 2px 0 #1018280A, 0 12px 32px -8px #10182814 | Cards that float, such as the dashboard search card. |
elevation-lg--elevation-lg | 0 12px 30px -6px #10182838 | Menus, popovers, toasts and dialogs. |
| Token | Value | Use |
|---|
elevation-sm--elevation-sm | 0 1px 3px 0 #00000059 | Selected tabs and slightly raised controls. |
elevation-md--elevation-md | 0 1px 3px 0 #00000059, 0 12px 32px -8px #00000080 | Cards that float, such as the dashboard search card. |
elevation-lg--elevation-lg | 0 12px 32px -4px #000000CC | Menus, popovers, toasts and dialogs. |
Dialogs and sheets dim the page behind them with the overlay token, a translucent layer that is lighter in light mode and deeper in dark mode.
| Token | Value | Use |
|---|
overlay--overlay | #10182866 | Translucent layer behind dialogs and sheets. |
| Token | Value | Use |
|---|
overlay--overlay | #000000A3 | Translucent layer behind dialogs and sheets. |
- The floating header card of the dashboard uses
elevation-md.
- Menus, popovers, toasts and dialogs use
elevation-lg.
- In Tailwind v4 the levels map to
shadow-sm, shadow-md and shadow-lg.