> ## Documentation Index
> Fetch the complete documentation index at: https://docs.figr.design/llms.txt
> Use this file to discover all available pages before exploring further.

# Set up your design system from an npm package

> Set up your Figr design system from a public npm component library, so designs use the same components and tokens as your app.

*Use your published component library, so Figr designs with the same components your app is built from.*

If your team publishes its design system as a public npm package, Figr can read it directly. Your components, tokens and styles come straight from the source your engineers use, so designs stay in sync with code.

> [!NOTE]
>
> Only public npm packages are supported. For a private package, use [your code repo](https://docs.figr.design/design-system/code-repo.md) instead.

**1. Start a new design system**

Open **Design System** in the sidebar and create a new one, or open an existing one to add a source.

**2. Choose npm package as a source**

Under **Sources**, choose **npm package**.

![Sources list with npm Package selected](https://mintcdn.com/figr-1af7ae64/6fNHqiw94uTEs_lh/images/docs/npm-02-source.png?fit=max\&auto=format\&n=6fNHqiw94uTEs_lh\&q=85\&s=ae6cbeb3e7dcbd50e7998370f48d0ac1)

**3. Enter your package name**

Type the package name, like `@yourcompany/design-system`.

![Add an npm package dialog with the package name filled in](https://mintcdn.com/figr-1af7ae64/6fNHqiw94uTEs_lh/images/docs/npm-03-fields.png?fit=max\&auto=format\&n=6fNHqiw94uTEs_lh\&q=85\&s=619665dc7aad82c5393c68ba06637263)

**4. Set it up**

Click **Setup design system**. Figr reads the package and adds its components and tokens to your design system.

## Next

> [card] [From your code repo](https://docs.figr.design/design-system/code-repo.md)
>
> Build your design system from code.

> [card] [Add brand assets](https://docs.figr.design/design-system/brand-assets.md)
>
> No full design system yet? Start here.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.