# Design system packages (https://www.dessn.com/docs/your-code/design-system-packages)

How Dessn brings in a design system that lives in another repository, a monorepo package or Storybook.

Dessn draws your pages with the components your app really uses, so your design system needs to come in too. Most of the
time that happens by itself. This page covers the cases where your design system lives somewhere else.

## In the same repository
A design system in the same repository, such as a `packages/ui` folder in a monorepo, comes in with the app. If the
repository has several apps, Dessn asks which one to set up; each app is its own project. On a repository that's
already in Dessn, press **Set up another app** to add the next one.

A component library can't be set up on its own: Dessn sets up an app that uses it. In the list of apps, a library shows
as **Shared code**.

## In another repository
If your app installs its design system as a package built in another of your repositories (say `@acme/ui`, built in
`acme/design-system`), Dessn finds that repository from your code. Before setup starts, it's listed under
**Dependencies** as **Your own library**:

| The row says | What happens |
| --- | --- |
| **Built in acme/design-system. Dessn will use it.** | Dessn connects that repository, builds the package from it, and your pages use the real components. |
| **Built in acme/design-system. Give Dessn access to acme/design-system to use it.** | Dessn's GitHub App can't read that repository yet. Give it access, or carry on: Dessn mocks the package out until you do. |

Git dependencies and submodules come in the same way. Dessn connects up to 10 of your own repositories like this by
itself.

If setup already ran with stand-ins, hover the **Stand-ins** tag on a frame and press **Connect owner/repo**. When
there's no repository to build from, a [read token](https://www.dessn.com/docs/your-code/private-packages) for its registry does the same.

## From a private registry
If your design system is a package on a private registry, add a read-only token for it: see
[Private packages](https://www.dessn.com/docs/your-code/private-packages).

## Storybook
If your repository has a Storybook, you can set it up instead of an app: pick **Storybook** in the list of apps. Dessn
sets up your components from their stories, one frame per story, and the Library leads with **Components**.

## See what came in
Your colours, type and components are in the Library: see [Design system](https://www.dessn.com/docs/working-in-dessn/design-system).
