set_fill_and_stroke
Configure fill and stroke colors or stroke weight for specified Figma nodes using unique IDs. Ideal for updating design elements programmatically within real-time workflows.
Instructions
Sets fill and/or stroke color(s) and/or stroke weight for one or more nodes.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fill | No | The fill color(s) to set. Can be a single fill or an array of fills. | |
| fillColor | No | The fill color to set as RGBA object. | |
| nodeId | No | The unique Figma node ID to update. Provide either nodeId or nodeIds, not both. | |
| nodeIds | No | An array of Figma node IDs to update. Provide either nodeId or nodeIds, not both. | |
| stroke | No | The stroke color(s) to set. Can be a single stroke or an array of strokes. | |
| strokeColor | No | The stroke color to set as RGBA object. | |
| strokeWeight | No | The stroke weight to set in pixels. |