set_stroke_color
Change the stroke color of a Figma node by specifying RGB values, alpha, and stroke weight to customize design elements programmatically.
Instructions
Set the stroke color of a node in Figma
Input Schema
Name | Required | Description | Default |
---|---|---|---|
a | No | Alpha component (0-1) | |
b | Yes | Blue component (0-1) | |
g | Yes | Green component (0-1) | |
nodeId | Yes | The ID of the node to modify | |
r | Yes | Red component (0-1) | |
weight | No | Stroke weight |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"a": {
"description": "Alpha component (0-1)",
"maximum": 1,
"minimum": 0,
"type": "number"
},
"b": {
"description": "Blue component (0-1)",
"maximum": 1,
"minimum": 0,
"type": "number"
},
"g": {
"description": "Green component (0-1)",
"maximum": 1,
"minimum": 0,
"type": "number"
},
"nodeId": {
"description": "The ID of the node to modify",
"type": "string"
},
"r": {
"description": "Red component (0-1)",
"maximum": 1,
"minimum": 0,
"type": "number"
},
"weight": {
"description": "Stroke weight",
"exclusiveMinimum": 0,
"type": "number"
}
},
"required": [
"nodeId",
"r",
"g",
"b"
],
"type": "object"
}