logo
Help Center/Design systems/Libraries/Publish libraries

Publish libraries

When you first create styles, components, and variables, you can only access them in the current file. If you want to use them in other files, you need to publish them as Libraries.

Tips: Publishing libraries is only available for Professional plan and Organization plan.

If you are a Starter plan user, you can still create styles, components, and variables in files, but you cannot publish them.

There are several ways to access Libraries from a file:

  • Assets panel

    a. Click Assets in the left sidebar.

    b. Click https://conan-test.fbcontent.cn/atom-test/zye5wzwy1.svg to open Libraries.

'Libraries.png'

  • Use shortcuts
    • macOS: ⌥ Option + 3
    • Windows: Alt + 3

Publish libraries

When you publish a library, make sure the file contains at least one style, component, or variable. If the file is in your drafts, you need to move it to the team first before publishing.

You can follow the steps below to publish libraries:

  1. 1.Open the Library modal from the file.
  2. 2.Click Publish library.
  3. 3.Review the list of changes to the library, which details all of the update, modification, or deletion.
  4. 4.Select the styles, components, and variables you want to publish.
  5. 5.Click Publish. Motiff will display a notification confirming that your library has been successfully published.

'Publish library.png'

Scopes for publishing libraries

In Motiff, the scopes for publishing a library determines which members are authorized to access and use the library.

  • If you are a user under the Professional plan, the scope for publishing a library is limited to a specific team and is suitable for sharing and collaborating within the team.
  • If you are a user under the Organization plan, you can choose to share the library with your organization, and when published, members of your organization can refer to the styles, components, and variables in the library.

'Publish updates 2.png'

Publish an individual component

If you only want to publish a single component instead of all the components in the file, you can publish them individually using the following methods:

  • Publish via right-click:

    a. Select the component you want to publish.

    b. Right-click on it.

    c. Choose Publish selected component.

  • Publish via the right sidebar:

    a. Select the component you want to publish.

    b. In the component modal in the right sidebar, select Publish changes… .

'Publish individual components and styles.png'

Publish updates

If you apply changes to styles, components, or variables that are already published, you need to publish an update to the library. After publishing the updates, all files that reference these libraries will receive update notifications.

Motiff will display a blue dot on https://conan-test.fbcontent.cn/atom-test/l5m6mh1ok.svg icon in the Assets panel of the left sidebar to let you know if there are updates that need to be published:

  1. 1.Open the Library panel and select a local library that you want to publish.
  2. 2.Click Publish.'Publish updates.png'
  3. 3.Review the list of changes to the library. This details all of the update, modification, or deletion.
  4. 4.Select the updated styles, components, and variables you want to publish.
  5. 5.Click Publish. Motiff will display a notification confirming that the updates have been successfully published.