How to

Managing your library file

Declare your library file, merge duplicates into Default and deprecate old variables without breaking the files that use them.

Sébastien Verschaete

UX ContentHub in a library file, in Library mode: all collections in Manage variables, with the Consolidate into Default window


Your Team Library is the file every other file relies on. UX ContentHub turns it into a place to maintain your copy: you see all your collections at once, merge duplicates and retire old variables without breaking the files that use them.

Declare your library file

  1. Open the Figma file that holds your library and open UX ContentHub.

  2. Go to Settings › Library setup and turn on This file is the library.

The setting is saved in the file, for everyone who opens it. Use one library file per workspace: when a collection gets close to Figma’s limit of 5,000 variables, add a new collection to the same file. The plugin may also suggest declaring a file that looks like a library.

With Advanced Features, the declaration syncs with the Portal, where admins see it in Administration › Figma files. If another file was already declared, the plugin asks you which one to keep.

What changes in your library file

  • The status chip next to the tab shows Library mode, so everyone knows they’re working in the library file.

  • The plugin opens on Manage variables, the only tab you need there. A library file holds copy, not screens, so Scan & write is hidden.

  • All your collections load at once. Use the Collection menu to show only some of them.

  • The Health Score doesn’t count unbound variables, since the library is used in other files.

Consolidate into Default

When the same text exists in several collections, the ready for Default chip of the Health Score shows it. Open it, select the groups you want and click Consolidate selected groups.

The plugin creates a DEF- variable in Default with all translations, the element type, the note and the rich text formatting. Then it deprecates the original variables. If texts only differ by their capitalization, you choose the variable to copy.

Deprecate instead of delete

Deleting a published variable breaks every file that uses it. In the duplicates view, Deprecate duplicates keeps the variable but marks it with the one to use instead. Designers see “Deprecated → use …” in Figma’s variable picker, and the plugin no longer suggests it in matches.

Changed your mind? Use Restore variable in the ⋮ menu of the row.

In your working files

Publish your library and accept the update in your working files. Then:

  • When you scan, deprecated variables are listed under Deprecated library variables. Actions › Replace deprecated variables switches them to their replacement.

  • To do it for a whole file, go to Manage variables › Actions › Swap to Default.

With Advanced Features

  • The Portal shows which screens use each library variable, in every synced file.

  • Deprecated variables are flagged in the Portal and left out of matches, rebinding and the MCP server.

  • A library variable is only edited in the library file. In other files, the Portal shows it read-only, with a link to open it in the library file.

Next steps

Read Setting up your Team Library to create your library, and From local variables to your Team Library to move your variables into it.