create_variable
Create local variables in a Figma collection and set per-mode values for color, number, string, boolean, easing, or timing tokens, including animation curves and durations.
Instructions
Create a local variable in a collection and set values by mode. resolvedType: COLOR, FLOAT, STRING, BOOLEAN, EASING, or TIMING — EASING and TIMING hold motion easing curves and durations, letting a design system tokenize animation alongside color and spacing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| scopes | No | ||
| description | No | ||
| collectionId | Yes | ||
| resolvedType | Yes | ||
| valuesByMode | No | ||
| valuesByModeEntries | No |