Auto Layout vs Resizing Constraints
People think Auto Layout and resizing constraints do the same job, and they do not. Auto Layout sizes a frame from what is inside it, so a button grows when its label gets longer. Constraints work the other way. They say what a layer does when the frame around it changes size, such as staying pinned to one corner.
Figma Auto Layout
A Figma tool that lines things up in a row or a column. The box grows to fit.
Auto Layout is a Figma feature that arranges items in a row or a column with set gaps and padding. When content changes, the frame grows or shrinks to fit. A button gets wider when its label gets longer, and a list makes room for a new item. It works much like flexbox in CSS, which makes handoff to code easier.
Resizing Constraints
Rules for where a layer sticks, or how it stretches, when its frame grows.
Resizing constraints are rules that say what a layer does when its frame changes size. A layer can stay pinned to the left, right, top or bottom edge. It can stay in the center, or stretch to keep its distance from both sides. It can also grow and shrink with the frame. Designers use them to test one screen at many sizes.
In one line
- Figma Auto Layout
- A Figma tool that lines things up in a row or a column. The box grows to fit.
- Resizing Constraints
- Rules for where a layer sticks, or how it stretches, when its frame grows.