Is there a way to switch from local variables to a library?

I’ve been starting a colour system. Since I was refining it while mocking up screens it made sense to have the variable locally. I intend to make themes as variations of this system. Is there a way to create a new library and replace local variable with the ones from the library? Obviously there is the Find and Replace Color command but it is maddenly slow to replace 70+ tints.

Hey @Gael

If you Library contains the same Color Variables (as in name and organisation) you could use the Edit > Replace Library feature and only replace the Color Variables within your document with those from the new Library.

Thank Raul,

Replace Library was greyed because I have no Library yet. But you did put me on the right track. Replace Selected Components was what I needed

Here is what I did if somebody else needs to move document colour variables to a new Library document (or other components probably).

  1. Duplicate your original file and save it
  2. Make it a library (Menu File > Add as library)
  3. Make the library available in settings (needs to be checked)
  4. Open your original file
  5. Go to the component view and then to the colour tabs
  6. Select all colour variables
  7. Menu Edit > Replace Selected Components
  8. Choose the Library you added previously
  9. Profits! … I mean you should see the variables disappear as they are replaced by the ones in the Library
1 Like