When you first create styles and components, 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.
Tip: Who can publish styles and components?
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:
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:
If you only want to publish a single component instead of all components in the file, you can publish them individually using the following ways:
Publish via right-click:
Publish via the right sidebar:
If you want to make changes to already published styles or components, you need to publish an update to the library, and then the files that reference these styles or components will receive notification updates.
Motiff will display a blue dot on icon in the Assets panel of the left sidebar to let you know if there are updates that need to be published:
Open the Libraries modal.
Select a local library you want to publish.
Click Publish.
Review the list of changes to the library. This details any new, modified, or deleted styles and components.
Select the changes you want to publish:
Add a description of changes.
After completing the styles and components, click Publish. Motiff will display a notification confirming that the updates have been successfully published.
Note: If you are a user under the Organization plan, you can share the library with your organization. After publishing, members of the organization can find and use the styles and components in the library.
Before publishing, you can select the scope of the publication from the dropdown menu.
If there are styles and components you are not ready to share or are still working in progress, you can hide them from publishing. When you want to share them in the future, you can show them again to publish and share them.
There are several ways to hide styles and components:
You can hide styles and components by adding a prefix to their names. Motiff will skip these styles and components during the publishing process and place them under the Hidden group in the Assets panel and Publish libraries modal.
Note: If you add the above prefixes to already published styles or components, Motiff will remove them the next time you publish an update to the library. If you want to publish these hidden styles and components later, you will need to remove the prefixes from their names before publishing an update to the library.
Hide components from the Assets panel. Styles cannot be hidden from the library via the style selector.
Hide styles and components from the Publish library modal.