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
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. |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"fill": {
"description": "The fill color(s) to set. Can be a single fill or an array of fills."
},
"fillColor": {
"description": "The fill color to set as RGBA object."
},
"nodeId": {
"description": "The unique Figma node ID to update. Provide either nodeId or nodeIds, not both.",
"type": "string"
},
"nodeIds": {
"description": "An array of Figma node IDs to update. Provide either nodeId or nodeIds, not both.",
"items": {
"type": "string"
},
"type": "array"
},
"stroke": {
"description": "The stroke color(s) to set. Can be a single stroke or an array of strokes."
},
"strokeColor": {
"description": "The stroke color to set as RGBA object."
},
"strokeWeight": {
"description": "The stroke weight to set in pixels.",
"type": "number"
}
},
"type": "object"
}