add_variable_mode
Add a mode (e.g. "Dark") to a Figma variable collection. Returns mode ID and handles plan limits by suggesting paired collections.
Instructions
Add a mode (e.g. "Dark") to a variable collection. Returns { ok, modeId, name }. Mode count is gated by the file's Figma plan (Starter allows 1 per collection) — when the plan blocks a new mode this fails with guidance: fall back to a paired collection (e.g. "Color/Dark") holding the same variable names with that theme's values.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Mode name, e.g. "Dark" | |
| collectionId | Yes | Variable collection id |