Skip to content

Background blur token should bind as Figma variable, not static value #3886

Description

@UdayHyma

Title: Background blur token should bind as Figma variable, not static value
Describe the bug
When applying a backgroundBlur token to a frame via right-click, the plugin sets the blur radius as a raw number instead of binding it as a Figma variable. Box shadow effects do bind variables correctly.
To Reproduce

Create a Dimension token (e.g. blur.background, value 12)
Set up a theme with the token set enabled
Export variables via "Styles & Variables" so a Figma variable is created for the token
Select a frame
Right-click the token, apply as "Background blur"
Open the background blur settings in Figma's design panel
The blur radius is 12 but no variable is bound to it

Expected behavior
The blur radius should be bound as a Figma variable, the same way box shadow effects bind variables using setBoundVariableForEffect.
Screenshots or Screencasts

Relevant files

src/plugin/setBackgroundBlurOnTarget.ts — sets radius as raw number, no variable binding
src/plugin/applyBackgroundBlurValuesOnNode.ts — no call to tryApplyVariableId or setBoundVariableForEffect
src/plugin/setEffectValuesOnTarget.ts line 67 — box shadow variable binding for reference
Figma API confirms BlurEffect supports boundVariables: { ['radius']?: VariableAlias }: https://developers.figma.com/docs/plugins/api/Effect/#blureffect

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

Status
✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions