Renaming a Library
You can easily rename a Library in the web app, just as you would rename any document. You can rename local Libraries from the Mac app too, but only by removing it first and renaming it using Finder.
Follow these steps to rename a Library in the Mac app:
- Head to Sketch > Settings or press ⌘, and click on the Libraries tab.
- Right click the local Library you want to rename, and select Show in Finder
- Choose Remove Library
- Rename the Library using Finder
- Add the Library again via Sketch > Settings > Libraries (see Creating and Adding Libraries)
To rename a Library in the web app, click on on the Library’s thumbnail and select Rename from the menu. Enter a new name and save by clicking the Rename button.
Replacing a Library
You can replace Libraries in your documents, which can help you save a lot of time when you’re doing things like theming. When you replace a Library, Components with the same name and location will swap their equivalent in the replacement Library. You can choose to replace all Components, just a specific type or even a custom selection.
To replace a Library, head to Edit > Replace Library in the menu bar, choose All Components to replace all Components with the same name or select the Component type. Finally, choose the Replacement Library (make sure it’s already part of your Libraries).
For more control, you can select specific Components on the Canvas and head to Edit > Replace Selected Components in the menu bar to swap out the Library for just those specific elements.