← All plugins

Library Swap

Move a design to another design-system library by name: components, styles, variables and modes, previewed first.

What it does

Library Swap moves a design from one design-system library to another by name. Each instance becomes the same component in the new library with the closest variant, keeping the text and switches you set. Text, color, effect and grid styles and variables are rebound to the same names, every range of a text included. And a frame set to Dark stays on Dark in the new collection, which Figma's own swap leaves behind.

Figma gives plugins no list of what a library holds, so a library is indexed once: open the library file, run Library Swap and click Index this file. The map, names and keys only, stays on your computer, and you can copy it to another one. Then pick what to swap and the library to swap to, read the preview (what matches, what is close, what has no match) and swap on a copy or in place. It works in small steps with a Stop button, leaves what has no match linked and listed, and never sends anything out of your file.

It is made for Alea's seven looks (Graphite, Midnight, Glass, Ember, Solar, Moss and Fun Lab): they share every component, style and variable name, so a whole product can move from one look to another in one pass. It works for any two libraries that share names, and you can map the rest by hand.

  1. Pick the new library

    The libraries you indexed, or pasted in.

  2. See what changes first

    Matches, close ones and what has no match, with counts.

  3. Index a library once

    Run it in the library file. The map stays on your computer.

  4. Swapped on a copy

    What changed, what stayed linked, one click to select it.

Everything it does

Matches

  • Components with the closest variant, sets and single ones
  • Text, color, effect and grid styles by name
  • Every range of a text with mixed styles
  • Variables by collection and name
  • Variable modes: Dark stays Dark
  • Map what has no match by hand

Keeps

  • The text and switches you set on an instance
  • The name you gave it
  • Instances inside instances, and slot content
  • What has no match stays linked and is listed
  • Detach only if you ask, with the count shown

Safe

  • Preview first: matches, close ones, no match
  • On a copy of the screens, a page or the file, or in place
  • Small steps, a Stop button and a single undo
  • Selection, a page or the whole file
  • Report for the pull request as Markdown

10 free uses, then one license or Lab Pro. See pricing →

More plugins