Export overview

Docs

Export on the workbench's breadcrumb row opens the one dialog for getting the design system into code. Ship to Figma and Connect an agent beside it cover the Figma file and the coding agent. DS source supports React apps only for now; see React only for now. Every export reads the saved tokens, never the unsaved overlay. While you have unsaved edits, the Export, Ship to Figma and Add to app panels say so in an amber note; the Export and Ship to Figma notes carry a Save button.

The Export dialog: the note for coding agents, then the UI kit card with the setup command, the step-by-step commands and the project token

How to use it

The dialog opens with a Coding agent? note telling an agent not to copy values from the site by hand, then has three parts:

  1. Add the UI kit to your React app: the setup command npx designsource first (it signs you in, picks this design system, adds the kit and connects your coding apps). Then, one step at a time, npx designsource add, Starting a new app? with npx designsource create my-app, and your project token, read-only, under the line Keep this token out of chats and prompts. The command asks for it, hidden, or reads it from DS_SYNC_TOKEN.
  2. Prompt for your coding agent: a short prompt to paste into an agent working in your app. It checks package.json and stops if the app is not React, runs npx designsource add --yes, asks you to run npx designsource in a terminal if no design system is connected, asks before --force, and restyles the app with the kit components rather than copying values by hand. It carries no token and no values.
  3. The line React apps only for now. Vue, Svelte, Angular and plain CSS are not supported yet.

Which to pick:

You have Pick
A React app on React 19 and TypeScript The UI kit in your app
No app yet A new Next.js app
Vue, Svelte, Angular, plain CSS or React 18 Not supported yet; see React only for now
A coding agent in the loop Connect a coding agent
A Figma file to fill Figma

How it works

The command line and the agent tools fetch the saved tokens from the server with the project token; the dialog itself copies no token values. The project token is shown read-only here with Manage in project settings, so a copy flow can never rotate it by accident.

On the free plan the dialog shows Exports need Pro with the plan panel in place of the kit card and the prompt. The workbench itself, the preview and the checks are free.