Interface layer tokens
Audience: Developers.
Use named CSS variables for page-wide layers. The numeric values describe their order.
Layer tokens
| Purpose | Value | CSS variable | When to use it |
|---|---|---|---|
| Normal content | 0 / automatic | --layer-content | Page sections, cards, images and text. Usually no z-index is necessary. |
| Local details | 1–20 | — | Badges, image controls and other details inside an isolated component. These values are not page-wide layers. |
| Sticky content | 30 | --layer-sticky | Sticky calls to action, quick links and a table of contents. |
| Navigation | 40 | --layer-navigation | The header and navigation panels. |
| Floating tools | 50 | --layer-tools | Comparison/audio controls, page editing tools and scroll-to-top controls. |
| Dropdowns | 60 | --layer-dropdown | Menus, selection lists and search suggestions. Shared controls assign this layer automatically. |
| Dialogs | 100, then +20 per open dialog | --layer-dialog | Filters, enquiries, financing, account dialogs and image viewers. Opening order is assigned automatically. |
| Notifications | 1000 | --layer-notification | Transient status notifications and page-loading progress. Do not use this layer for controls or dialogs. |
The same layer rules apply at every breakpoint. See interface layers for stacking behavior. See style custom controls for the task.
Last updated on