Choose how a layer sizes itself
Width and Height sit in the Size row of the Layout section in the properties panel. Each field has a menu on its right that sets how that side is sized:
Not every mode fits every layer:
- Relative and Fill need a parent, so a top-level frame can’t use them.
- Hug works on text, SVGs and frames with at least one child that follows the layout.
- Auto works on layers with a parent, and on text and SVGs.
hug or fill, into the field, or type a for Auto. Press ⌥ ↓ in the field to open the menu.
With several layers selected, the menu only lists the modes every one of them can use, and starts with Mixed when they use different ones.
The size badge under a selected layer on the canvas shows the same thing: the size in pixels, followed by Hug, Fill, the percentage or Calc when one applies.
Set a minimum or maximum size
- Open the menu on the right of Width or Height.
- At the bottom, choose Add min width or Add max width (or Add min height or Add max height).
- Type the limit in the new field.
Lock the aspect ratio
Click the lock button to the right of Width and Height (Lock aspect ratio). While it’s on:- Typing a new width also changes the height, and the other way round.
- Dragging a handle on the canvas keeps the proportions.
Follow the layout or position absolutely
A layer inside a Flex, Grid or Block frame follows that layout: the frame decides where it goes. To place it freely instead, click Make absolute in the header of the Position section. The layer keeps its place and size, moves to the front, and other layers close the gap it left. This is what Figma calls “Ignore auto layout”. To put it back into the layout, click the same button (Follow layout). The button shows only when the layer’s parent has a layout. See Layout.Place a layer
The Position section holds:- X position and Y position: where the layer sits inside its parent.
- Rotation: in degrees.
- Z-index: which absolute layers sit on top of which. It shows Auto until you set it, and you can type
ato reset it. It’s only available for absolutely positioned layers. - Alignment buttons: Align Left, Align Center, Align Right, Align Top, Align Middle and Align Bottom. With several layers selected they align to each other; a single absolute layer aligns inside its parent.
- Rotate (by 90°), Flip Horizontal (⇧ H) and Flip Vertical (⇧ V).
Pin a layer to its parent
An absolutely positioned layer inside a frame is pinned to one horizontal edge and one vertical edge of its parent. When the parent resizes, the layer keeps its distance from those edges. This replaces Figma’s constraints.- Select an absolute layer inside a frame.
- In the Position section, pick Left or Right, and Top or Bottom. You can also click an edge in the pin square next to them (Anchor to top, Anchor to left and so on).
Resize to fill or fit
- Resize to fill (⌘ ⇧ ⌥ F): makes the selected layer cover its whole parent, positioned absolutely at its top left. Its parent must be a frame without a layout (Freeform).
- Resize to fit (⌘ ⇧ ⌥ R): shrinks or grows the selected frame to fit its children. The frame must have children and no layout of its own.
Resize on the canvas
Drag a selection handle to resize. While you drag:- Hold ⇧ to keep the proportions.
- Hold ⌥ to resize from the center.
- Hold ⌘ to resize a frame without its children following their pins.
Scale a layer
The Scale tool (K) resizes a layer and everything in it in proportion, including text, borders and effects. While it’s on, the properties panel shows only the Scale section: type a new width or height, or a Scale percentage, or pick a preset such as 2×. Press V, or click Exit scale mode, to go back to the Move tool.If something goes wrong
- Fill or Relative isn’t in the menu. The layer has no parent. Put it inside a frame first.
- Hug isn’t in the menu. The frame has no children that follow its layout. Add a child, or make one of its absolute children follow the layout.
- I can’t change Z-index or the pins. They only apply to absolutely positioned layers. Click Make absolute first.
- Resize to fill is greyed out or missing. It works only inside a frame without a layout. In a Flex, Grid or Block frame, set the layer’s size to Fill instead.
- The size fields are greyed out. The layer is inline text, which sizes to its content.