set_stroke_color
Set or clear a Figma node's stroke color, weight, alignment, dash pattern, caps, joins, opacity, or paint style by node ID to control borders and outlines.
Instructions
Set or clear a node's stroke. Color via hex/strokeHex or r/g/b (0..1 or 0..255), optional strokeWeight, strokeAlign (CENTER|INSIDE|OUTSIDE), dashPattern (e.g. [4,4]), strokeCap (NONE|ROUND|SQUARE), strokeJoin (MITER|BEVEL|ROUND), or styleId to apply a paint style. Pass clear:true to remove strokes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| b | No | ||
| g | No | ||
| r | No | ||
| hex | No | ||
| clear | No | Remove all strokes | |
| nodeId | Yes | ||
| opacity | No | ||
| styleId | No | Apply a local paint style to strokes | |
| strokeCap | No | NONE | ROUND | SQUARE | |
| strokeHex | No | ||
| strokeJoin | No | MITER | BEVEL | ROUND | |
| dashPattern | No | e.g. [4, 4] for dashed; [] for solid | |
| strokeAlign | No | CENTER | INSIDE | OUTSIDE | |
| strokeWeight | No |