figma_set_layout_sizing
Adjust layout sizing, alignment, padding, or dimensions of a Figma node within its auto-layout parent using design system variables or explicit values. Set fill, hug, fixed sizing, grow, alignment, and padding for precise layout control.
Instructions
Adjust layout sizing, alignment, padding, or explicit dimensions of a node within its auto-layout parent.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | ||
| layoutGrow | No | 0 = fixed, 1 = fill container. | |
| layoutAlign | No | ||
| primaryAxisSizingMode | No | ||
| counterAxisSizingMode | No | ||
| layoutSizingHorizontal | No | ||
| layoutSizingVertical | No | ||
| paddingTop | No | DS variable path (e.g., "spacing-xl") preferred. Raw px number allowed in permissive mode only. | |
| paddingRight | No | DS variable path preferred. Raw px allowed in permissive mode only. | |
| paddingBottom | No | DS variable path preferred. Raw px allowed in permissive mode only. | |
| paddingLeft | No | DS variable path preferred. Raw px allowed in permissive mode only. | |
| width | No | ||
| height | No |