Skip to main content
Import from code when your components already live in a repository, or in a folder on your computer. Magic Patterns reads that source, then proposes the components, colors, and tokens it finds. You review them before they are added. To start, click the + next to Resources in the left sidebar, then choose Design System. You can also choose Import your design system when you open a new project. The Resources menu in the left sidebar with GitHub and Design System options
Linking GitHub only needs read access. Magic Patterns reads the repository to import your components and styles. It does not write to your repo.
1

Name your design system

In the Import a design system window, type a name under Name.The Import a design system window with a repository search bar and Name field
2

Connect your GitHub account

The first time you do this, click Connect, then Connect GitHub, then Authorize in the GitHub window that opens. You only need to do this once.The Connect your GitHub account window
3

Find your repo

Search for it by name, or paste its URL, like https://github.com/your-org/your-repo.
4

Choose folders (optional)

For a large repo, select only the folder that holds your components, so Magic Patterns only scans that code.
5

Click Continue

Magic Patterns scans your repo and suggests the components, colors, and styles it finds. You review them before anything is added.
Paste a link to a specific folder or file in your repo, and Magic Patterns will select it for you.

Upload a zip

Can’t reach your code in a GitHub repo? Upload a .zip or .tar of it instead, along with .fig files and docs. See Upload files.

Keep your design system up to date

Your design system stays linked to your GitHub repo, but new commits don’t update it automatically. In MagicOS: click Re-sync to pull the latest from your connected sources and create a new version. Branch or folder changes wait until someone confirms them. A project doesn’t take that new version on its own either. Each project builds from its own copy, so once the design system has a new version, every project using it shows Update available. Click Update there to bring it in. See Resources.