Overview

Figma Library

Enable Primer's Figma team library

Open a Figma file, and go to the Assets tab at the top of Figma's left-column panel. Click the Library button (the book icon):

Figma assets panel with libraries icon selected

The Library button opens a modal window. In the modal's library tab, turn on the switch for Primer Web under Primer Design System:

Primer Web figma library enabled

If you do not see Primer Web listed, you may not yet have permissions to access the library. 

Add Primer components to your project

With the Primer Web library enabled, Primer's components are listed in the Assets tab of Figma's left-column panel:

Primer Web library with component pages listed

Green checkmarks indicate components that are complete and ready to use. A pencil emoji indicates components that remain a work in progress.

Use the Search field to find the component to use, or browse the categories to find the component you want. Drag the desired component into the canvas of your project.

Figma's help center has more details on working with Figma components.

Use Primer text styles in your project

Primer uses a constrained set of typography presets, and the Figma library provides these as text styles. To apply a text style:

  1. Select the text to edit.
  2. In the Text section of Figma's right-column panel, click the four-dot Style button.
  3. Select the Primer preset to use:
Primer Web text styles expanded

Use Primer colors in your project

The Figma library provides Primer colors as color styles. To apply a color style:

  1. Select the object for which you would like to apply the color.
  2. In the Fill section of Figma's right-column panel, click the four-dot Style button.
  3. Select the color to use:
Primer Web color palette expanded