figma_set_node_fill
Apply design system color variables as fill or stroke to any Figma node, automatically targeting the correct vector element inside component instances. Includes hex fallback if variable fails.
Instructions
Set a fill or stroke color variable on any node. For component instances, walks to the first vector-type descendant (the actual colored shape inside an icon). Use this to apply DS color variables to nodes after insertion.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | ||
| variablePath | No | DS color variable path, e.g. "Colors/Icon/icon-primary". | |
| hexFallback | No | Hex color fallback if variable cannot be resolved. | |
| target | No | Default: "fill". |