logo
Help Center/Design systems/Libraries/Publish or unpublish libraries

Publish or unpublish libraries

Motiff supports publishing and unpublishing libraries, allowing you to share styles, components, and variables across files for easy access and consistent design.

Publish a library

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.

  1. 1.Open the Library panel:
  • Click Assets in the left sidebar, then click .

'Libraries.png'

  • Use shortcuts:

    • macOS: ⌥ Option + 3

    • Windows: Alt + 3
  1. 2.Click on Publish library.
  2. 3.Review the changes (updates, modifications, deletions).
  3. 4.Select the items and Click Publish.'2@2x (2).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:

    1. a.Select the component you want to publish.
    2. b.Right-click on it.
    3. c.Choose Publish selected component.
  • Publish via the right sidebar:

    1. a.Select the component you want to publish.
    2. 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.

Unpublish a library

Unpublishing a library stops sharing its styles and components with your team or organization. Once unpublished, team members can still use existing instances of the components, but they will no longer receive updates.

You can navigate to the Local Library panel , select the library, and click Unpublish. 'Unpublish a library.png'