Apply targets
Every Figma property a token can be pushed onto, by token type.
Color
Default: Fill.
| Target | Figma property |
|---|---|
| Fill | Replaces the fill list with one solid paint |
| Stroke | Replaces the stroke list with one solid paint |
| Drop shadow colour | Colour of the first drop shadow effect |
| Inner shadow colour | Colour of the first inner shadow effect |
| Gradient stop colour X | Stop 0 of the first gradient fill |
| Gradient stop colour Y | Stop 1 of the first gradient fill |
Dimension and Number
Dimension defaults to Size (all); number defaults to Opacity. Apart from the General group, both types share the same list.
General — number only
| Target | Notes |
|---|---|
| Opacity | Clamped to 0–1 |
| Rotation | Degrees |
| Layout grow | Auto-layout grow factor |
Sizing
All, width, height, min width, max width, min height, max height.
Border radius
All corners, top-left, top-right, bottom-right, bottom-left.
Border width
All sides, top, right, bottom, left. Falls back to the uniform stroke weight if the layer does not support per-side weights.
Spacing
Padding (all sides), padding top, right, bottom, left, gap, counter-axis gap. Requires auto layout.
Typography — text layers only
Font size, letter spacing, line height. Letter spacing and line height are forced to pixel units.
Effects
Shadow offset X, offset Y, blur radius, spread. These modify the first drop or inner shadow on the layer, and fail with “add a drop or inner shadow first” if there is none.
Font family and Font weight
One target each: font family, font weight. Text layers only. See the caveats on font family and font weight.
Text, file, other
| Type | Targets |
|---|---|
text | Text content — replaces a text layer’s characters; other layers get plugin data |
file | Hyperlink — sets the layer’s link; other layers get plugin data |
other | Save on node (plugin data) or Copy to clipboard |
Types without targets
These apply with a single built-in behaviour and offer no target menu:
| Type | Behaviour |
|---|---|
border | Stroke paint + weight + dash pattern, in that order |
shadow | Replaces the layer’s drop and inner shadows |
typography | Font, size, line height, letter spacing, plus the Figma extensions |
strokeStyle | Dash pattern and stroke cap |
And these cannot be applied at all, because Figma has no matching property:
duration, cubicBezier, transition, gradient.
Two failure modes to know
| Loud | The target exists but its precondition is missing — no shadow to recolour, no strokes on the layer. You get an error message |
| Silent | The target does not exist on that layer type — corner radius on a line, padding without auto layout. The apply is skipped with no error |
A success message therefore means “nothing errored”, not “every layer changed”.