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

# Import existing design system

> Bring your theme, components, and icons from code into Subframe.

## Importing from your codebase

In the [desktop app](https://docs.subframe.com/desktop-app.md), Agent chat can read your codebase and add your theme, components, and icons to the project.

1. Open **Theme**, **Components**, or **Icons** in the left sidebar
2. Click **Import** and select **Import from codebase...**
3. If your project isn't connected to a codebase yet, click **Open local codebase...** and choose your app's root folder
4. Review the prefilled prompt in Agent chat and send it

For components, the agent starts with a few core ones, like buttons, inputs, and cards, then lists what else it found so you can pick more.

## Importing from files

To import tokens from a Tailwind config, CSS, or a Figma export, see [Importing tokens](https://docs.subframe.com/design/theme/importing-tokens.md). To add SVG icons, open **Icons**, click **Import**, and select **Upload from file...**.

After importing, use [Agent chat](https://docs.subframe.com/design/ask-ai/making-quick-edits.md) to refine the design if needed.


## Related topics

- [Importing tokens](https://docs.subframe.com/design/theme/importing-tokens.md)
- [Overview](https://docs.subframe.com/design/components/overview.md)
- [Generating designs](https://docs.subframe.com/design/ask-ai/prompt-to-design.md)


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