If you maintain a library of styles and components, you may need to unpublish a library. This means anyone using this library will no longer be able to access the library or receive updates to styles and components.
Open the file you want to remove.
Go to the Assets tab and click on the Library icon or use the Keyboard Shortcuts:
Mac: ⌥ Option - 3
Windows: Ctrl + 3
Click on the Current file to view the styles and components in the library.
Click the Unpublish button at the bottom of the modal.
Click Remove File from Library to confirm. Figma will remove that file and any styles and components from the library modal.
Note: Team members can still use instances from an unpublished library. They will no longer receive any updates made to those Instances.
Anyone with can edit access to a file can publish the file as a library.
Components are elements of your designs that you want to reuse - you can think of them like building blocks. Components help keep your designs consistent and allow you to quickly apply changes across multiple files and projects. They can be basic elements made up of a few layers, like buttons or icons. Or more elaborate combinations of other elements, like toolbars and menus.
Styles are sets of properties that can be applied to objects across your team's designs. You can use Styles to define attributes for color, text, stroke, fill, effects and layout grids.
Styles and components live in the files they are originally created in. To find and access styles and components across your files and projects, you can publish them as a library.This allows you to enable that library in your teams, drafts, or files.
Access components from the Assets panel in the left sidebar, and styles using the Style icon next to any relevant property.
Build libraries
Create the styles and main components that define your brand. Publish these styles and components as a library.
Continue to develop, iterate and refine your styles and components, and publish your changes to the library. Figma will keep a detailed record of your changes in the file's version history.
It's not possible to move components to a new file without breaking the connection between the main component and any existing instances.
You can move styles between files without breaking the connection. To move a style from its original location to your current file:
Open the style picker from a relevant property.
Right-click on the style and selectMove style definition into this file.
Use style and component libraries
Enable libraries in team files to allow members to view and use them across their files. Designers and collaborators receive updates to styles and components, making sure they're always using the latest version.
Enable libraries for your drafts, for all team files, or for a specific file. The general process for enabling and disabling libraries is the same for all locations, only the entry point is different.
Anyone can enable libraries for files in their drafts.
You can only publish Styles in your drafts.
In an Organization, you can enable any library that's shared in the Organization. Outside of an Organization, you can only enable libraries from files in your Drafts.
Enable libraries in your drafts to turn on a library for all files in your drafts.
It's not possible to publish components from your drafts. You can still publish styles and enable that library to access styles across your drafts.
Enable style and component libraries from any teams of which you're a member.
If you're in an Organization, Figma will enable any default organization-wide libraries. You can choose to enable any other libraries shared within the organization.
Manage which libraries are available in your drafts from your account settings:
Open the Figma file browser.
Click on your name to access your account and select Settings at the top of the page.
Select Enable Libraries for all files in your Drafts.
View a list of available libraries in the library modal. In your drafts, you can view and enable:
Styles from published libraries in your drafts.
Styles from published libraries in any Starter teams.
Styles and components from published libraries in any Professional and Education teams.
If you're in an Organization, you can access styles and components from libraries shared across the Organization.
Click the library name to view the styles and components in that library.
Use the toggles to enable or disable that library in the current file:
You can publish styles and components in Professional or Education teams, or teams in an Organization. In free Starter teams you can only publish styles.
Only a Team admin can enable libraries for the team.
Team Admins can choose which libraries are available by default in any team files.
In free Starter teams, you can only publish styles. Enable a library in a Starter team to get access to styles in your team files.
In Professional or Education teams, you can publish libraries with both styles and components.
In a Figma Organization, you can publish libraries to a team or the entire organization.
Enable default libraries from the team's settings:
Click on the team name in the sidebar to access the team workspace.
Click Settings at the top of the page.
In the Team libraries section, click the Enable libraries option.
View a list of available libraries in the library modal. Every library corresponds to a file with published styles and components.
Click the library name to view the styles and components in that library.
Use the toggles to enable or disable that library in the current file:
Library enabled:
Library disabled:
Click <span id="x-close-icon" class="ui-icon" aria-label="Ex icon. A multiplication sign."></span> to return to the canvas.
When you first create styles and components, you can only access them in file you created them in. To use them in other files or projects, or share them with collaborators, you can publish them as a library.
Libraries allow you to publish any styles and components you create a shared repository. Every file you publish corresponds to a single library.
You, and other members of your team or organization, can browse published libraries via the libraries modal. Access the libraries modal from your drafts, as well as any team or organization files.
Caution: Libraries are a paid feature. If you're working in your drafts, or are part of a free Starter team, you won't have access to all the functionality of libraries.
You can still create and use components on a Starter team, but you can't publish them to access them in other files.
Publish styles in your drafts, or on any team or plan.
Publish components in Professional or Education teams, in Organizations.
Publish styles and components
You can choose exactly which styles and components you want to publish, by creating private components in your file, or removing styles and components during the publishing process.
Every time you publish to your library, you'll be prompted to add a description. This allows you to communicate decisions and changes to the people who use your library. Figma will include this description alongside a new checkpoint in the file's version history. Descriptions will also be displayed when accepting updates from a library.
Open the Library modal
The library modal allows you to find, view, enable, and publish libraries. You'll publish any new libraries from the libraries modal, as well as any changes or updates to existing libraries.
There are a few ways to access the library modal from within a file:
1
Editor toolbar
Click on an empty spot in the canvas to deselect.
Click the next to the file name in the toolbar.
Select Publish styles and components from the options.
To publish styles and components to a library, you will need to open the library modal from the file where they live.
Open the Library modal via any of the methods above.
In the Current file section, click the Publish button to publish the file.
Add a description of the library's purpose, or any decisions or changes, using the field provided. This description is shown in Version History, and when accepting updates.
To review the styles and components, click the arrow next to Styles and components heading.
To remove any styles or components, right-click and choose Remove from library.
When you've finalized your styles and components, click the Publish button. Figma will show a notification to confirm your file has been successfully published.
Note: If you are a member of an Organization, you can also choose to share the library with your organization. This will allow other members of the organization to find and use styles and components from this file.
If you have styles and components that you don't want to share, or are still a work in progress, you can make them private. There are a few ways to create private styles and components:
1
Add a prefix to the style or component name
To prevent Figma from publishing your styles and components, you can add a prefix or modifier to the component's name in the layers panel.
Figma will skip over these styles and components during the publishing process and list them in the Private to this file sections of the Assets panel and library modal.
Add a period . in front of the component layer's name.
Add an underscore _ to the beginning of the component layer's name.
Note: If you add a period or underscore after a style or component is published, Figma will remove it from your library the next time you publish changes to the library.
If you want to publish these styles and components at a later date, you will need to remove the prefix and then publish the components individually.
2
Remove via the assets panel
Remove a component from a library in the Assets panel. It's not possible to remove a style from a library via the style picker.
Click on the Assets tab in the left sidebar.
Right-click on the component in the list.
Select Remove from library from the options.
3
Remove during the publishing process
Remove styles and components from the library modal from the publish modal.
Open the library modal using any of the entry points above.
Click the arrow next to Styles and components to view a list of included styles and components.
Right-click on the component or style and select Remove from library.
Publish updates to a library
If you make changes to a published style or component, this will only apply those changes to instances in the current file. If you want those changes to be reflected in your library, you will also need to publish those changes to the library.
Figma will let you know if there are any updates that need to be published:
A blue dot will appear on the icon in the Assets panel of the left sidebar.
A toast notification with a prompt to Publish changes to your team library.
Clicking on either of those options will open the library modal and allow you to review and publish your changes.
Publish individual styles and components
If you are missing styles and components from a published file, or want to add more styles and components, you can publish these individually.
The fastest way to do this is via the Assets panel in the left sidebar.
Click on the Assets tab in the left sidebar or use the keyboard shortcut:
MacOS: ⌥ Option2
Windows: Alt2
Scroll down to the Private to this file section, which will list any components that exist in the file, but haven't been published.
Right-click on the component and select Add to Library. If you have made the component private using the . or _ prefix, you will need to remove this.
Figma will notify you that your updates are successfully published.
When using styles and components from a shared library, Figma will notify you of any changes made to the main components or styles. This gives you control over what updates to apply and makes sure your designs stay up-to-date.
When updates are made and published a library, Figma will send you a notification in any files that use those styles and components. This includes changes to existing styles and components, as well as any new additions.
Note: Figma won't notify you when components or styles are removed from a library. You can continue using removed styles and instances, but you won't receive any further updates.
Review updates
Review any updates to choose which changes you want to apply. You can choose to accept all changes or only specific changes.
Click Review from the notification or select the Library icon in the Assets panel.
In the Library modal, select the Updates tab .
Figma displays a list of updated styles and components with any changes with a description of any changes (if included),
Click Update next to an individual item to accept that specific change.
Click the Update all button in the bottom-right corner of the modal to accept all the changes. Figma will apply them to all styles and components in your current file.
Dismiss notification
If you're in flow state when you get the notification, you can dismiss the notification and continue to use instances in their current state. Your instances will be out of date but will still be connected to the main component
When you're ready, you can review and accept any changes in the library modal. The notification badge will remain there until you have reviewed or accepted the changes. Figma will also prompt you to update your styles and component each time you open an affected file.
When you disable the library, Figma will remove those components from the Assets panel and any styles from the style picker. As you still have access to the library, styles and components and styles may still show up in your search results.
If you don't want those styles and components to show up in search results, you'll need to leave the file where the main components and styles live.
Open a main component in the file it lives in from any instance. You can do this from a few different places.
1
Canvas
Select the Component in the Canvas.
Find the Instance section of the Properties Panel.
Click Go to Main Component link.
Figma will open the file where the Component lives.
2
Assets panel
Right-click on the component in the Assets Panel.
Select Go to main component.
Figma will open the file where the component lives.
3
Right sidebar
Select the component
In the right sidebar, click the icon next to the instance name.
Figma will open the file where the component lives.
Tip! If you haven't used the component in your file, you can temporarily add the component to your file, then use any of the Go to Main Component approaches above.
Leave the file
Open the file where the component lives.
Click the Share button to open the file share modal.
Find your name in the list of collaborators.
Click on your current access level and select Leave from the options.
There are a couple of ways to remove a style: remove it from a library, or delete it entirely.In this article, we'll cover removing style and components from a published library.
Are you a member of an organization?Design System Analytics allow you to track component usage, including when components are detached.
Remove styles
To remove a style from your library, you will need to unpublish the style from library. You can only remove a style from the original file, where the style currently lives.
You can access the original style from any object that is currently using it:
Select an object in the canvas that uses that style.
Click on the style in the right sidebar
Click the icon to edit the style.
Click Go to style definition to open the style in the library.
You will also see an option to Move style definition into this file. This allows you to edit or delete that style without leaving the current file. Moving a style removes it from the original file. If you re-publish the original file, the style would no longer be included.
Remove a style from a library
You can remove a style from a library without deleting the style itself. You can only do this from the original style, the style definition.
Open the file where the style lives.
Press Esc to clear your selection in the canvas.
Click the icon next to the file name to open the menu.
Select Publish styles and components to open the library modal.
Click on the styles and components header to expand.
Right-click on the style and select Remove from library.
Repeat for any other style you want to unpublish.
Click Publish to apply your changes and remove the styles.
Delete a style
You can view Local styles in the right sidebar, when you select nothing in the canvas. Click an empty spot in the canvas or press Esc to deselect.
To delete a style entirely:
Select one or more styles. Use Shift + click to select a range styles, or ⌘ Command / Control + click to select multiple non-adjacent styles.
Select Delete style or Delete all from the options.
Figma will remove the style and you will no longer be able to use it. Any objects using that style will keep their properties, but are detached from the style.
You can remove components when you publish changes to your Team library. Or, from a library you have already published. You can only remove components from the file they originate from.
Open the file where your component lives.
Open the Assets panel in the left sidebar.
Right-click on the component and select Remove from library.
Figma will move the component(s) to the Private to this file section.
Tip! You can also quickly remove a component from your Team library via the Layers Panel. Add a period . to the beginning of the component's name. Learn more in our Create Private components article.
Note: You can open the file for any component from any file with access to those components. Right-click on an instance of that component in the canvas and select Go to Main component.
Any member of an organization can publish styles and components to a team or the organization. Members will need can edit access to files to publish them.
Only organization admins can choose default libraries
Styles and components live in the files you created them in. To access and reuse these in other files, you can publish them to a library. This allows you to maintain a consistent brand and style, at scale.
Publish styles and components in organization files to a team in the organization, or share them with the entire organization.
At Figma we call these collections of styles and components libraries. Libraries allow you to improve access and adoption of your organization's design system.
Build collections of styles and components to reuse in your designs. Publish your styles and components to a team, or share them with your entire organization.
Determine who can view and edit libraries using the file's link sharing settings. You can set a file's link sharing settings when you first publish the library, or update after you publish the file as a library.
Open the file in the editor.
Open the Assets panel in the left sidebar.
Click the to open the Library modal.
Click Publish next to the Current file.
Enter a summary of your changes in the field provided. This description will appear in the file's version history.
Check the box next to Allow any member of organization name to access the file. Leave unchecked to publish to the team only.
Click the Publish button to confirm.
Every time you publish a library, Figma will add a checkpoint to the file's version history. You can identify these events with the icon.
Choose default libraries
Encourage adoption of your design system by enabling default component and style libraries.
When you enable a library in an organization, Figma will make styles and components from that library available to members in any organization files within the organization workspace. To allow guests to use these styles and components, you will need to invite them to the associated file.
Select styles in the style picker for any relevant properties.
Select colors from any styles in the palette of the color picker.
Access components in the Assets panel of the left sidebar.
Organization admins can also remove any libraries they don't want to share with the rest of the organization. To prevent members from using these styles and components you will need to do both unpublish the file and update the file's link sharing settings.
Unpublish the file
Open the file you want to remove.
Open the Assets panel in the left sidebar and click the library icon.
In the Library modal, click on the library in the Current file.
Click the Unpublish button at the bottom of the modal:.
Click Remove file from library to confirm.
Figma will return you to the file. The status bar will indicate that Figma has removed the file from the library.
Update link sharing
Adjust the file's link sharing settings to prevent members of the organization from finding and using the file.
Click the Share button in the menu bar.
Click the next to the existing link access. This will be set to Anyone at organization name.
Select Only people invited to this file from the options.
Members of the organization won't be able to access the file. The file will still be available to any members of the team, or anyone with a role the file.
Any member of an Organization can view Design System Analytics. Members can only see data for libraries they have at least can view access to.
Share libraries in a team or across your entire Organization. Track how members of your Organization are using libraries and components with design system analytics.
Find out which components in a library are popular
Identify components that are detached often
See how collaborators are using variants
See which components in a library members aren't using
Compare adoption between two libraries
See which teams are using each library
Find examples of components so you can see how their used and supplement documentation
Note: Figma only includes libraries a member has at least can view access to in these results. You will not be able to track component usage within another member's Drafts.
View library analytics
Any member of an Organization can view library analytics.
Open Figma in the file browser.
Click on the Organization name in the sidebar.
Select the Libraries tab to view an overview of all libraries in the Organization:
Teams with Libraries: How many teams in the Organization are using shared libraries.
Total Libraries: Total number of libraries in an Organization. This includes libraries shared across the entire Organization, or within a specific tTeam.
Total components: The total number of main components in an Organization's libraries.
Total Styles: The total number of styles in an Organization's libraries.
Use the search bar to find a specific library.
View a list of all libraries shared within teams or across the Organization. For each library you can view:
# of components: The total number of main components in that library.
# of Styles: The total number of styles in that library.
Used by: The number of teams using this library.
Inserts Last Week: The number of times a component from this library was inserted into a file. This is limited to the last week.
Click on a library in the list to view its analytics.
Tip! Figma updates Design System Analytics every hour.
View detailed analytics for a library
Click on a library to view more detailed analytics. Use the tabs at the top to switch between Overview and Library Analytics views.
Before we jump in, let's cover a few terms you'll see in the analytics:
Component Insertions / Inserts: Any time someone adds an Instance of a component to a file. Figma records any of the following actions as insertions:
Copy an instance and paste it into the file
Duplicate a component instance within a file
Drag a component from the Assets panel into a file Nested components aren't included as insertions. Figma also ignores any components you create by duplicating an entire file.
Component Detaches / Detaches: Any time someone uses Detach Instance to break the connection between the instance and the main component. Learn more about detaching components →
Last Modified: The last time a collaborator modified the file. This includes any interaction with objects on the canvas, or leaving a comment.
[Last] Week: Refers to the a calendar week, not the "last 7 days". The end of the week will depend on your geographical location. e.g. North America considers Saturday the last day of the week vs Europe where Sunday is the last day of the week.
Click on Library Analytics to view detailed analytics on how members are using components. Styles are not included in library analytics.
Figma started tracking Library Analytics September 28th, 2019. Data before this date is not available.
Select the Duration you would like to view these analytics for. Choose from:
Last 30 Days
Last 60 Days
Last 90 Days
Last Year
View a graph of Component Insertions. This shows the total insertions for this library, for the selected duration. Figma plots the graph to the end of the current week.
Current data is blue
Unavailable data is grey
Dashed line shows this week's current usage (incomplete)
Hover over the dot to view the date and total number of component insertions
What percentage of total component insertions each team contributes
How many other teams are using this library
Click the Download CSV link to download analytics for every team using this library.
View Components Statistics for each component in the library. Both inserts and detaches are for the duration you set above.
Thumbnail of the component
Variants in the component set
Component name
Inserts
Detaches
Click on the component in the list to see metrics for individual variants within that component set.
Download a CSV of component usage to see which teams are using a particular library. The CSV download includes the following analytics:
Team ID: The unique ID Figma uses to identify the team.
Team Name: The name of the team as it appears in your Organization.
Insertions: The total number of component Insertions made in each team.
Insertion %: A team's percentage of total component insertions. Use this to see how teams contribute to component insertions.
View variant and component usage
Click on a component in the Components Analytics section to see how specific components are being used with component analytics.
View information about the component set:
Description: The description for this component set.
Total: The total number of instances of any variants in this component set.
Used by: The number of teams that used any variants in this component set.
Used in: The number of files that have instances of this component set in them.
View a list of variants included in that component set. You'll see some analytics for:
Instances (Total): How many instances of that variant exist.
Detaches (Last 30 Days): How many times someone has detached that variant from the component set in the last 30 days.
Click on a variant in the list to view analytics for that specific variant.
Figma will show those same statistics, for that specific variant. You can also view a list of files that variant was used in for that reporting period. You'll only see files you have access to.
Note: Figma will only show files you have at least can view access to. This includes files from your Drafts, teams that you are a member of, and open teams.
Compare libraries
You can compare analytics between two libraries, which allows you to:
Track adoption of a new library (e.g. legacy vs new design system)
Compare how libraries are used across different operating systems
Measure work between products or brands
From the Library tab of the Organization.
Select one of the libraries you want to compare.
Open the Library Analytics tab.
Click the field next to Compare insertions to and select the second library from the list.
Figma will plot the graph for both lLibraries
Data for the original library is in blue
Data for the second library is in black
Unavailable data is grey
Dashed line shows this week's current usage (incomplete)
Hover over a dot to view the date and total number of component insertions.
Connect, share, and learn from a global community of Figma users