Skip to content

Apply targets

Reference2026-11-09

Every Figma property Syntope Tokens can write a token to, by token type. The first column is the label in the Apply token menu. The second is the name the inspect tab shows. See Applying tokens for the steps.

Color

Target Name Effect
fill fills Replaces the whole fill list with one solid paint
stroke strokes Replaces the whole stroke list with one solid paint
drop shadow color effects-drop-shadow Color of the first drop shadow. The layer needs one
inner shadow color effects-inner-shadow Color of the first inner shadow. The layer needs one
gradient stop color X gradient-stop-0 First stop of the first gradient fill
gradient stop color Y gradient-stop-1 Second stop of the first gradient fill

Gradient stops on a layer without a gradient

If the layer has no gradient fill, its first fill becomes a linear gradient, and the token sets the chosen stop.

Dimension and number

dimension tokens convert to pixels, with 1rem as 16px. number tokens write their number. Both types share these groups.

general (number only)

Target Name Notes
opacity opacity Limited to 0–1
rotation rotation Degrees. Figma refuses it inside an instance
layout grow layoutGrow Must be 0 or 1

sizing

Target Name
all size-all
width, height width, height
min width, max width minWidth, maxWidth
min height, max height minHeight, maxHeight

Sizes inside an instance fail, because Figma ignores them. Change them on the main component. Minimum and maximum values must be above 0.

border radius

Target Name
all cornerRadius
top left radius, top right radius topLeftRadius, topRightRadius
bottom right radius, bottom left radius bottomRightRadius, bottomLeftRadius

border width

Target Name
all strokeWeight
top, right, bottom, left strokeTop, strokeRight, strokeBottom, strokeLeft

spacing

Target Name
all padding-all
padding top, padding right paddingTop, paddingRight
padding bottom, padding left paddingBottom, paddingLeft
gap itemSpacing
counter axis spacing counterAxisSpacing

typography (text layers only)

Target Name Notes
font size fontSize At least 1
letter spacing letterSpacing Written in pixels
line height lineHeight In pixels. A number token uses the line height unit stored with it, see Number

effects

Target Name Notes
offset X, offset Y effects-offset-x, effects-offset-y First drop or inner shadow
blur radius effects-radius First drop or inner shadow
spread effects-spread Other than 0 only on rectangles, ellipses, and clipped frames, components or instances with a visible fill

These targets need an existing shadow. To create one from a token, use a shadow token.

Types with one target

These apply at once, without a submenu.

Type Name Effect
fontFamily font-family Text layers. Tries each family in the list in order, and each text range keeps its style
fontWeight font-weight Text layers. Each range keeps its family and italic, and takes the nearest named weight
strokeStyle strokestyle Dash pattern, plus the cap for the object form
border border Replaces the strokes with one paint, then sets weight and dash pattern
shadow shadow Replaces all drop and inner shadows. Other effects stay
typography typography Text layers. Font, size, letter spacing and line height, plus the Figma fields in $extensions

strokeStyle and border take the keywords solid, dashed and dotted, or the object form. Other keywords fail. The Figma fields of a typography token are paragraphSpacing, paragraphIndent, textDecoration, textCase, fontStyle, lineHeight, letterSpacing and keep, which names fields left as they are on the layer. See Typography.

Types without a target

duration, cubicBezier, transition, gradient and string have no target, so the Apply token menu is unavailable for them. Use them in code.

How failures appear

A target that a layer does not have is reported as a failure with a message. Nothing is skipped silently, and no binding is saved.

One exception: padding and gap are written to any layer that has those fields, including a frame without auto layout. The value only shows once auto layout is on. Syntope MCP checks this first and refuses such a write.