Design System

Depth reference ​

Every surface and layer, with the values behind them. For what these mean, see Overview. For how to choose between them, see Usage.

Surfaces available for depth ​

TokenPosition
surface-pageResting. The application background
surface-subtleResting. A quieter region inside a page
surface-raisedFloating. Anything sitting above the page

surface-hover and surface-selected sit above surface-raised on the ramp and are states rather than depths.

The edge of a floating surface ​

TokenUsed for
line-defaultThe edge of a floating panel
line-subtleA rule inside a panel, between two rows

Measured separation ​

Against surface-page, in each appearance. A ratio is never rounded up.

TokenLightDark
surface-raised1.201.20
line-subtle1.671.66
line-default2.062.03
line-strong3.163.11

line-strong is the only one clearing the 3 to 1 non-text floor, and it is still not used for panel edges, because that floor applies where colour is the only thing identifying a control.

The layers ​

The first four order siblings inside one panel. The last six order the page.

ClassValueWhat belongs here
z-below-1Something drawing underneath the content it belongs to, like the workflow connection canvas beneath its node cards
z-base0Ordinary content. Nothing needs to write this
z-raised1Lifted above its own siblings inside one panel. A column resize handle, a state panel covering an editor, a label floated over one
z-sticky2Stays in place while its container scrolls. One rung above raised so a sticky header clears anything its own panel has lifted
z-overlay50Floats over one panel. A jump to row pill, a drawer inside a panel, a drag mirror. Above forty because the component library preset writes z-40 on a popover root and a sticky table header, and those land in the same stacking context as this one
z-scrim60Dims the page so one thing can be worked on. Above overlay because it covers panel overlays too
z-spotlight70The one element a scrim isolates
z-floating100Where the component library opens. The application points the menu, overlay, modal and tooltip groups here, which covers a menu, a select, a popover, a dialog, a drawer, a toast and a tooltip
z-detached10000A surface placed outside the element it belongs to, where that element can itself be floating
z-cover20000Replaces the application. Onboarding, the welcome screen, the loading screen

What does not exist ​

AbsentExamplesWrite instead
Shadowsshadow-sm, shadow-md, shadow-lga surface step and a border

The shadow-md and shadow-lg the preset writes on a card, a drawer and a tooltip read the empty scale and paint nothing, without any report.

Numeric z-index classes such as z-10 and z-50 still compile, because they come from the framework rather than from this system. The named layers are a rule, not something the compiler enforces.