Figma

Replace Layers Figma Plugin




A Figma plugin to easily swap one layer with another.

How to Use
Select a layer in your Figma document.
Click Set Source Layer
Select another layer or layers that you want to replace
Click Replace Layer(s)
Keep Transforms: Check this box if the layers you’re replacing are rotated or scaled, and you want to apply those transforms to the replacements. Note Scaling can only be determined if the layer you’re replacing is an instance of a component.

New in 1.1: “Replace Image Fills”
If your source layer has one or more image fills, you can replace just the images on the destination layers. This is useful if you want to quickly set an image but don’t want to lose the other fills or style treatments (which would get overridden if you naively copy-pasted a layer’s properties)

Now you can also paste or drag images into the image well to use as a source.

Other notes:
Originally I wanted to be able to use the clipboard as the source for replacing a layer, but it’s not possible in Figma. If you’re using the Figma Desktop app, you can assign “Set Source Layer” to a keyboard shortcut as well.

If your source layer is a component, it will replace the target layer with an instance of that component.

The thumbnail that’s generated when you set the source layer also acts as a quick export — just drag it to your desktop to get a 2x resolution PNG of the source layer.