ZAO造

Depth

A lifted part has a face, a fixed base a rest depth behind it, and the gap between them, drawn as two side planes toward the shared screen axis. Hover lifts the face further; press seats it onto its base. These finish tokens control paint only: native targets, focus brackets, content spacing, and neighboring layout stay fixed.

Try the construction

Scale the depth, then use the controls. The painted edges change while their targets, content spacing, and neighboring layout stay fixed. The default 1× uses the published distances; zero removes depth.

1.00×

Button

Card

Workspace storage

Storage used
68%

Menu

Switch

Secondary tabs

12 members can access this workspace.

Progress

Preview file upload
x

Composer

Enter adds a line. Ctrl or Cmd + Enter sends.

Select field

Preview region

This preview keeps every action local.

Su depth tokens

The values below come from the published token JSON. Su uses the same construction distances and axis in light and dark. Axis values are unitless: positive x points right, and negative y points up.

depth.rest.small
2px
Small faces inside a track: the Switch face and the secondary Tabs face.
--zao-depth-rest-small
depth.rest.control
3px
Controls and floating popups: Button, IconButton, Menu, Select and Combobox.
--zao-depth-rest-control
depth.rest.surface
4px
Content surfaces: Card and Dialog. A press inside a Card seats it by one contact step.
--zao-depth-rest-surface
depth.lift
2px
Extra face travel along the depth axis on hover, on top of the rest depth: a Button rests 3px above its base and lifts to 5px. Native hit areas, focus brackets and neighboring layout stay fixed.
--zao-depth-lift
depth.contact
1px
A one-step drawn contact for recessed walls and thin edges: wells, the Progress end edge and the Menu reveal lip. Independent of border stroke width; never changes a layout box.
--zao-depth-contact
depth.axis.x
1
Unitless screen x multiplier for paint offsets toward the viewer. Positive points right; multiply a depth distance by this value.
--zao-depth-axis-x
depth.axis.y
-1
Unitless screen y multiplier for paint offsets toward the viewer. Negative points up; multiply a depth distance by this value.
--zao-depth-axis-y

Side planes

Each plane is drawn in two flat bands, 叠晕: the near band beside the face and the far band at the base. The bands are shades of the part’s own semantic face. Light faces step toward black, dark faces toward white, and solid seal faces always toward black. The bottom plane is only slightly darker than the side plane, so it never reads as a detached shadow. Depth is drawn, never blurred.

One leading corner of a lifted face is faceted, 卷杀. Browsers without corner shaping keep it square.

Wells

Fields, the Switch channel, the Progress track and the secondary Tabs list are recessed. Their inner walls on the far side of the axis step down in two hard steps of the contact distance.