Set Stroke
node_set_strokeSet the stroke color and weight of a Figma node, with support for uniform or individual side weights.
Instructions
Set a node's stroke color and weight; supports uniform or per-side weights.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | The ID of the node to modify | |
| nodeName | Yes | Name of the node to modify | |
| r | Yes | Red component (0-1) | |
| g | Yes | Green component (0-1) | |
| b | Yes | Blue component (0-1) | |
| a | No | Alpha component (0-1) | |
| weight | No | Uniform stroke weight (used when individual side weights are not provided) | |
| strokeTopWeight | No | Top side stroke weight | |
| strokeBottomWeight | No | Bottom side stroke weight | |
| strokeLeftWeight | No | Left side stroke weight | |
| strokeRightWeight | No | Right side stroke weight |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the modified node |