Auto layout and constraints

Frames that line up their own layers, and layers that follow a resized slide.

Auto layout (Shift A): select a slide or frame, or some layers, and choose Add auto layout in Properties. Layers are wrapped in a new frame first. The layers then sit in a row or a column, in their layer order, with the gap and padding you set. Direction and gap are read from how the layers sat, so they move as little as possible.

Spread places the layers from the start, centered, from the end, or with equal space between. Line up aligns them across: tops, middles or bottoms in a row. Hug width and Hug height make the frame fit around its layers; Fixed keeps the size you give it. Dragging a side of the frame sets it to Fixed on that side.

Inside an auto layout frame, a layer’s Resizing can be Fill width or Fill height, so it takes the space that is left (text keeps its own size). Drag a layer along the row or column to change its place in the order. The minus button in the Auto layout section takes auto layout off and leaves the layers where they are.

Ignore auto layout (under Resizing) lets one layer in an auto layout frame be placed by hand, like Figma’s absolute position: the others close up around it, and it keeps its place by its Constraints when the frame changes size. Use it for a badge on a button or a close button in a corner.

Auto layout works in components too: a button whose label is changed in an instance grows to fit the new words.

Constraints: for a layer in a slide or component, Constraints say what it does when that is resized: stay at the left, the right, both (stretch), the center, or scale; and the same for top and bottom. Resizing a slide by dragging or in W and H follows them. Hold Ctrl or ⌘ while dragging to resize the slide alone. Instances follow their component’s constraints when they are resized.