Skip to content

Apply targets

Reference2026-07-27

Every Figma property a token can be pushed onto, by token type.


Color

Default: Fill.

TargetFigma property
FillReplaces the fill list with one solid paint
StrokeReplaces the stroke list with one solid paint
Drop shadow colourColour of the first drop shadow effect
Inner shadow colourColour of the first inner shadow effect
Gradient stop colour XStop 0 of the first gradient fill
Gradient stop colour YStop 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

TargetNotes
OpacityClamped to 0–1
RotationDegrees
Layout growAuto-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

TypeTargets
textText content — replaces a text layer’s characters; other layers get plugin data
fileHyperlink — sets the layer’s link; other layers get plugin data
otherSave on node (plugin data) or Copy to clipboard

Types without targets

These apply with a single built-in behaviour and offer no target menu:

TypeBehaviour
borderStroke paint + weight + dash pattern, in that order
shadowReplaces the layer’s drop and inner shadows
typographyFont, size, line height, letter spacing, plus the Figma extensions
strokeStyleDash 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

LoudThe target exists but its precondition is missing — no shadow to recolour, no strokes on the layer. You get an error message
SilentThe 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”.