Design tokens
Elevation
Five levels. Rest, raised, overlay, dialog, and toast. Shadow is a token, not a one-off blur.
Buy nowPrimitive tokens
- Shadow 0none
- Shadow 10 1px 2px rgba(0,0,0,0.06)
- Shadow 20 4px 12px rgba(0,0,0,0.08)
- Shadow 30 12px 32px rgba(0,0,0,0.12)
Publish
shadow-2
Elevation exists so designers, engineers, and AI start from the same decision. The preview on this page is the component as it ships. You compose it. You do not redraw it.
Use it when the job matches the name. Reach for a neighbour in the system when it does not. Names in Figma match the names in code, which is what keeps a prototype close to what actually ships.
Tokens
| Token | Value | Use |
|---|---|---|
| --elevation-bg | var(--background) | Surface behind the control |
| --elevation-fg | var(--foreground) | Label and icon |
| --elevation-border | var(--border) | Edge |
| --radius-md | 10px | Default corner |
| --duration-fast | 120ms | Hover and press |
Code
:root {
--shadow-rest: 0 1px 2px rgb(0 0 0 / 0.04);
--shadow-overlay: 0 12px 32px rgb(0 0 0 / 0.12);
}Included
- Shadows
- rest through overlay
Memorisely