> ## Documentation Index
> Fetch the complete documentation index at: https://wonder.design/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Select and arrange layers

> Select layers with Deep or Classic selection, move, resize, rotate and scale them, snap and measure, align and distribute, set layer order and z-index, and duplicate and paste layers and styles.

Pick the layers you want, then move, size and line them up. Shortcuts are shown for macOS. On Windows, use <kbd>Ctrl</kbd> for <kbd>⌘</kbd> and <kbd>Alt</kbd> for <kbd>⌥</kbd>, except where a table says otherwise.

**Before you start** · Web and desktop · Free plan

## Select layers

Click a layer to select it. To pick more than one:

* <kbd>Shift</kbd>-click adds a layer, or removes it if it's already selected.
* Drag on an empty spot to draw a box. Everything the box touches is selected. Hold <kbd>Shift</kbd> to add to the selection, or <kbd>⌘</kbd> to select the deepest layers the box touches.
* <kbd>⌘</kbd><kbd>A</kbd> selects everything next to the current selection, inside the same frame. With nothing selected, it selects every layer at the top level of the page.
* <kbd>⌘</kbd><kbd>⇧</kbd><kbd>A</kbd> (**Select inverse**) selects the layers next to the selection that aren't selected.
* <kbd>Esc</kbd> clears the selection.

### Choose Deep or Classic selection

Frames sit inside frames, so a click could mean any of them. **Selection behavior** decides which one a click picks:

* **Deep** (the default): a click selects the innermost frame around what you click.
* **Classic**: a click selects the outermost frame you click inside.

In both, double-click to go one level deeper, and <kbd>⌘</kbd>-click to select the deepest layer under the pointer.

A frame at the top level of a page that has layers inside it is never selected by a click inside it. Click its name above it, or its row in the Layers panel.

Change it in **Settings** > **Preferences** > **Canvas** > **Selection behavior**, or in the Wonder menu under **View** > **Selection Behavior**. It's saved to your account.

### Move through the layer tree

| Shortcut | Action |
| - | - |
| <kbd>Enter</kbd> | **Select child**: select the layers inside the selected frame. On a text layer, start editing it. |
| <kbd>Shift</kbd><kbd>Enter</kbd> or <kbd>\\</kbd> | **Select parent**: select the frame the selection is in. |
| <kbd>Tab</kbd> / <kbd>Shift</kbd><kbd>Tab</kbd> | Select the next or previous layer at the same level. |

### Select a layer under others

Right-click and open **Select layer** to see every layer under the pointer, from the outermost to the deepest. Hover one to highlight it, and click it to select it. <kbd>⌘</kbd>-right-click opens the list straight away.

You can also select layers in the Layers panel. See [Frames, pages and layers](https://wonder.design/docs/frames-pages-and-layers.md#use-the-layers-panel).

### Select similar or matching layers

* **Select matching layers** (<kbd>⌘</kbd><kbd>⌥</kbd><kbd>A</kbd>) selects the same layer in every other frame at the top level of the page, found by its name and place in the frame. Use it to change, say, the title of every screen at once. It skips hidden and locked layers, and needs edit access.
* **Select similar layers**, in the command palette (<kbd>⌘</kbd><kbd>K</kbd>), selects the layers of the same type with the same fill color and border color. It looks through every layer you can see in the Layers panel, so open closed frames first to include what's inside them.

## Move, resize and rotate

### Move

* **Drag** a layer. Hold <kbd>Shift</kbd> to move in a straight line, or hold <kbd>Space</kbd> to keep the layer inside its frame.
* **Nudge** with the arrow keys: 1 px at a time, or 10 px with <kbd>Shift</kbd>. Change these steps in **Settings** > **Preferences** > **Canvas**, or in the Wonder menu under **View** > **Nudge amount**.

Inside a frame with auto layout, dragging or nudging a layer changes its place in the order instead. With nothing selected, the arrow keys move around the canvas.

### Resize

Drag a handle on the selection's edge or corner.

* Hold <kbd>Shift</kbd> to keep the proportions.
* Hold <kbd>⌥</kbd> to resize from the center.
* <kbd>⌘</kbd> plus an arrow key changes the width or height by 1 px, or 10 px with <kbd>Shift</kbd>.

To always keep a layer's proportions, click **Lock aspect ratio** next to its width and height in the Properties panel.

### Rotate and flip

Move the pointer just outside a corner of the selection until it turns into a rotate cursor, then drag. Hold <kbd>Shift</kbd> to rotate in 15° steps.

In the Properties panel, the **Position** section has a **Rotation** field, a button that turns the layer 90°, and buttons to flip it. You can also flip with <kbd>Shift</kbd><kbd>H</kbd> and <kbd>Shift</kbd><kbd>V</kbd>.

### Undo

<kbd>⌘</kbd><kbd>Z</kbd> undoes your last change, and <kbd>⌘</kbd><kbd>⇧</kbd><kbd>Z</kbd> redoes it. Wonder keeps your last 200 steps. A run of nudges counts as one step.

## Scale in proportion

Resizing a frame changes its width and height but keeps its text size, borders and corner radius. The **Scale** tool scales everything together, as if you zoomed the layer itself.

1. Click **Scale** in the toolbar, or press <kbd>K</kbd>.
2. Drag a handle of the selection, or type a percentage in the **Scale** field in the Properties panel. The field's menu has presets from **0.25×** to **10×**.
3. Click **×** (**Exit scale mode**) at the top of the **Scale** section, or press <kbd>V</kbd>, to go back to the Move tool.

The Scale tool always keeps the proportions. Dragging past the opposite edge mirrors the layer.

## Snap and measure

While you move or resize a layer, it snaps to the edges and centers of the layers around it, and guides show what it lines up with. Moves and resizes land on whole pixels. Hold <kbd>Ctrl</kbd> while you drag to stop snapping for that move.

To measure, select a layer and hold <kbd>⌥</kbd>:

* Point at another layer to see the distances between them.
* Point at an empty spot to see the distances to the frame it's in.

Hold <kbd>⌘</kbd><kbd>⌥</kbd> to measure to the deepest layer under the pointer.

## Align, distribute and tidy up

Select two or more layers. The top section of the Properties panel, headed with how many layers you selected, has buttons to align them. Every action is also in the command palette under **Alignment**.

| Action | macOS | Windows |
| - | - | - |
| Align left | <kbd>⌥</kbd><kbd>A</kbd> | <kbd>Alt</kbd><kbd>A</kbd> |
| Align horizontal center | <kbd>⌥</kbd><kbd>H</kbd> | <kbd>Alt</kbd><kbd>H</kbd> |
| Align right | <kbd>⌥</kbd><kbd>D</kbd> | <kbd>Alt</kbd><kbd>D</kbd> |
| Align top | <kbd>⌥</kbd><kbd>W</kbd> | <kbd>Alt</kbd><kbd>W</kbd> |
| Align vertical middle | <kbd>⌥</kbd><kbd>V</kbd> | <kbd>Alt</kbd><kbd>V</kbd> |
| Align bottom | <kbd>⌥</kbd><kbd>S</kbd> | <kbd>Alt</kbd><kbd>S</kbd> |
| Distribute horizontal spacing | <kbd>⌃</kbd><kbd>⌥</kbd><kbd>H</kbd> | <kbd>Ctrl</kbd><kbd>Alt</kbd><kbd>Shift</kbd><kbd>H</kbd> |
| Distribute vertical spacing | <kbd>⌃</kbd><kbd>⌥</kbd><kbd>V</kbd> | <kbd>Ctrl</kbd><kbd>Alt</kbd><kbd>Shift</kbd><kbd>V</kbd> |
| Tidy up | <kbd>⌃</kbd><kbd>⌥</kbd><kbd>T</kbd> | <kbd>Ctrl</kbd><kbd>Alt</kbd><kbd>Shift</kbd><kbd>T</kbd> |

* **Distribute** keeps the two outer layers where they are and spaces the rest evenly between them.
* **Tidy up** arranges the layers into a neat row, column or grid with even gaps.

Both need at least three layers. A single layer that's positioned freely inside a frame aligns to that frame.

## Layer order and z-index

Layers higher in the Layers panel sit in front of the ones below them. To change the order, drag them in the Layers panel, or right-click and open **Arrange**:

| Action | macOS | Windows |
| - | - | - |
| Bring to front | <kbd>⌥</kbd><kbd>⌘</kbd><kbd>]</kbd> | <kbd>Ctrl</kbd><kbd>Shift</kbd><kbd>]</kbd> |
| Bring forward | <kbd>⌘</kbd><kbd>]</kbd> | <kbd>Ctrl</kbd><kbd>]</kbd> |
| Send backward | <kbd>⌘</kbd><kbd>\[</kbd> | <kbd>Ctrl</kbd><kbd>\[</kbd> |
| Send to back | <kbd>⌥</kbd><kbd>⌘</kbd><kbd>\[</kbd> | <kbd>Ctrl</kbd><kbd>Shift</kbd><kbd>\[</kbd> |

For a layer positioned freely in its frame (**Make absolute** in the **Position** section), that section also has a **Z-index** field, from −9999 to 9999. It sets the CSS `z-index` your code gets, so the layer can sit in front of layers that come later. Choose **Auto** to clear it. The field is only on when every selected layer is positioned freely. See [Size and position](https://wonder.design/docs/size-and-position.md#follow-the-layout-or-position-absolutely).

## Duplicate and paste

* **Duplicate** (<kbd>⌘</kbd><kbd>D</kbd>) copies the selection and selects the copies. You can also hold <kbd>⌥</kbd> while you drag a layer.
* **Copy** (<kbd>⌘</kbd><kbd>C</kbd>), **Cut** (<kbd>⌘</kbd><kbd>X</kbd>) and **Paste** (<kbd>⌘</kbd><kbd>V</kbd>) work within a file and between files. Right-click an empty spot and choose **Paste here** to paste at the pointer.
* **Paste over selection** (<kbd>⌘</kbd><kbd>⇧</kbd><kbd>V</kbd>) puts a copy on top of each selected layer.
* **Paste to replace** (<kbd>⌘</kbd><kbd>⇧</kbd><kbd>R</kbd>) replaces each selected layer with what you copied.

### Copy and paste styles

1. Select a layer with the look you want, right-click it and choose **Copy as** > **Copy styles** (<kbd>⌘</kbd><kbd>⌥</kbd><kbd>C</kbd>).
2. Select the layers to change, right-click and choose **Paste styles** (<kbd>⌘</kbd><kbd>⌥</kbd><kbd>V</kbd>).

## If something goes wrong

### A click doesn't select a frame

It's a frame at the top level of the page with layers inside it. Click its name above it on the canvas instead.

### A click selects the wrong frame

Switch **Selection behavior** between **Deep** and **Classic**, or <kbd>⌘</kbd>-click to reach the deepest layer. To pick from everything under the pointer, use **Select layer**.

### Distribute or Tidy up does nothing

Select at least three layers.

### The alignment buttons are greyed out

Select two or more layers. A single layer only aligns when it's positioned freely inside a frame, and then aligns to that frame.

### The Z-index field is greyed out

It only works for layers positioned freely in their frame. In the **Position** section, click **Make absolute** first.

### A layer won't move where I drag it

Its frame has an auto layout, so dragging changes the order instead. Hold <kbd>Ctrl</kbd> while dragging to place it freely, or turn off the frame's auto layout.

## Related

* [Frames, pages and layers](https://wonder.design/docs/frames-pages-and-layers.md)
* [Canvas basics](https://wonder.design/docs/canvas-basics.md)
* [Copy and export](https://wonder.design/docs/copy-and-export.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.