create_frame
Generate and customize frames in Figma by specifying position, size, name, fill/stroke colors, auto-layout settings, and padding. Easily integrate frames into existing designs by providing a parent node ID.
Instructions
Create a new frame in Figma
Input Schema
Name | Required | Description | Default |
---|---|---|---|
counterAxisAlignItems | No | Counter axis alignment for auto-layout frame | |
fillColor | No | Fill color in RGBA format | |
height | Yes | Height of the frame | |
itemSpacing | No | Distance between children in auto-layout frame. Note: This value will be ignored if primaryAxisAlignItems is set to SPACE_BETWEEN. | |
layoutMode | No | Auto-layout mode for the frame | |
layoutSizingHorizontal | No | Horizontal sizing mode for auto-layout frame | |
layoutSizingVertical | No | Vertical sizing mode for auto-layout frame | |
layoutWrap | No | Whether the auto-layout frame wraps its children | |
name | No | Optional name for the frame | |
paddingBottom | No | Bottom padding for auto-layout frame | |
paddingLeft | No | Left padding for auto-layout frame | |
paddingRight | No | Right padding for auto-layout frame | |
paddingTop | No | Top padding for auto-layout frame | |
parentId | No | Optional parent node ID to append the frame to | |
primaryAxisAlignItems | No | Primary axis alignment for auto-layout frame. Note: When set to SPACE_BETWEEN, itemSpacing will be ignored as children will be evenly spaced. | |
strokeColor | No | Stroke color in RGBA format | |
strokeWeight | No | Stroke weight | |
width | Yes | Width of the frame | |
x | Yes | X position | |
y | Yes | Y position |