set_fill_color
Set or clear a Figma node's solid fill color via RGB, hex, or opacity; use clear:true or fills:[] to make layout containers transparent. Prefer styles/variables when available.
Instructions
Set or clear a node's solid fill. Prefer applying styles/variables when available. Pass clear:true (or fills:[]) to remove fills from layout containers that should be transparent. Also accepts fillHex.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| b | No | ||
| g | No | ||
| r | No | ||
| clear | No | Remove all fills (transparent). | |
| nodeId | Yes | ||
| fillHex | No | ||
| opacity | No |