Create paint style
figma_create_paint_styleCreates reusable Figma paint styles from solid colors or fills, optionally binding the first color to a variable so styles follow design tokens.
Instructions
A local PAINT style: one color, or fills (several paints, gradients — entries as in figma_set_fills). variableId / variableName binds the first paint's colour to a COLOR variable, so a semantic colour style follows its token. Change it later in place with figma_update_style. A gradient style's angle is exact only on a square node — a style has no size; for an exact CSS angle on a known node use figma_set_fills, or give transform. Editors: Design only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| color | No | A solid colour. Give this or `fills`. | |
| fills | No | Several paints or a gradient, entries as in figma_set_fills. | |
| opacity | No | ||
| session | No | Optional sessionId or file name, to pick a Figma file when more than one is connected. | |
| variableId | No | Bind the first paint's colour to this COLOR variable. | |
| description | No | What the style is for — shown in Figma's style picker. | |
| variableName | No | Or the variable's full name, e.g. "color/bg/brand". | |
| idempotencyKey | No | Caller-owned retry key, ≤128 chars. Re-calling with the same key never executes twice: it returns the existing result, or waits for the op still in flight. Supply your own for anything large — if the MCP client times out (rather than the bridge), only a key you chose can be used to retry safely. |