Skip to main content
Anika5E7A
Participant
September 20, 2021
Question

Two Xd libraries

  • September 20, 2021
  • 2 replies
  • 261 views

We built two Xd libraries for our Design System, one with atoms/molecules and another with more complicated organisms (maybe that wasn't the best way to do it, but it was too much for one file).

 

The plan was for components ot go one way—from the first library to the second, and from the first and second to other files, but not from the second library to the first.

 

Now we're getting an issue where a component that was created with multiple states in the first library (like a button), now has some states in that library and some in the second. We have no idea how this happened or how to fix it. When we try to 'Edit Main in Source Document' it flickers back and forth between the two. 

    This topic has been closed for replies.

    2 replies

    Randy Edmunds 2
    Adobe Employee
    Adobe Employee
    September 21, 2021

    Sorry to hear that you are having problems.

     

    For your Source document that was used to create your Library, have you ever used Save As... to create a copy of that document? It's ok to do that to make a backup copy. But it causes problems if you use that copy to start another Library.

     

    The issue is that the components in the copied doc keep the same internal IDs of the originbal doc, so if you Publish that to another Library, there will be duplicate Components with same ID. Documents that use the component may refer to a different Library than you are expecting. This could explain what you have described here.

     

    Use this method to create a new Library based on an existing Library:
    Open source document of existing Library in XD, select all Components that you want in new Library, and then Copy. Create a new cloud doc named what you want to call your new Library, then Paste. All of the Components should be Linked to the existing document. For each Linked Component in Assets Panel, right-click > Make Local (which generates new internal ids). You should be able to multi-select to do a few at a time to save time. Finally, Publish new Library.

     

    To fix your current problem, you'll have to Delete one of the Components, then manually re-create the States in the other Component.

     

    Hope this helps,

    Randy

    Nancy OShea
    Community Expert
    Community Expert
    September 20, 2021

    [Moderator moved from Using the Community (forums) to Adobe XD.]

     

    Nancy O'Shea— Product User & Community Expert