set_selection_colors
Recursively change stroke and fill colors of a Figma node and all its descendants. Ideal for recoloring icon instances using Figma's selection colors feature.
Instructions
Recursively change all stroke and fill colors of a node and all its descendants. Works like Figma's 'Selection colors' feature - perfect for recoloring icon instances.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | The ID of the node to modify (typically an icon instance) | |
| r | Yes | Red component (0-1) | |
| g | Yes | Green component (0-1) | |
| b | Yes | Blue component (0-1) | |
| a | No | Alpha component (0-1, defaults to 1) |