# Libraries (/products/design/libraries)

A library is a file whose components, styles and variables your other files can use: one Button for every screen in every file, changed in one place.

## Publish a library [#publish-a-library]

In the file with the components, open **Assets** in the left rail and choose **Manage libraries** › **Publish library**.

Choose who can use it under **Available to**: **This project's files** or **Every file in the workspace**.

Press **Publish**. After later changes, come back and press **Publish changes**, so other files get them.


**Unpublish** takes it out of the list. Files that already use it keep their copies; **Publish again** brings it back.

## Use a library [#use-a-library]

In another file, open **Assets** › **Manage libraries** › **Browse libraries** and add the library. Its components appear in **Assets**, marked with the library's name, and its styles and variables show in the pickers.

## Take updates [#take-updates]

When a library you use publishes changes, a notice says **Library updates available**. Choose **Review** to see what changed, then **Update all**, or update instances one at a time. Overrides you made on an instance, like its text, are kept.

## Keep a library in step with code [#keep-a-library-in-step-with-code]

**Sync with code** (in **Manage libraries** or **Publish library**) compares the file's variables with your project's design tokens, the colours, sizes and radii in its code, line by line:

- **Code → Design** takes the code's values into the file.
- **Design → Code** sends the file's values to the Lead as an issue, so the code catches up.

It needs a file that belongs to a project with code.

Next: [Import a .fig file](/products/design/import-a-fig-file).
