designsource is the command line for a design system made in the app. It supports React apps only for now. It runs with npx, needs Node 20 or newer, and has no runtime dependencies. Installed globally it is also available as dss.
How to use it
Start with one command, in a terminal in your app's folder:
npx designsourceIt runs setup: it signs you in, picks or makes a design system, adds the UI kit to the app and connects your coding agent, asking only what it cannot tell. The verbs below do one step each, for scripts, agents and anyone who wants less.
pnpm dlx designsource …, yarn dlx designsource … and bunx designsource … work the same. npx designsource --menu shows a menu of the verbs: Add the UI kit to a React app, Connect your coding apps, Sign in for coding agents, Create a new project. Outside a terminal the bare command prints the usage and exits with an error. --help on any verb prints its options.
| Verb | What it does |
|---|---|
setup |
Everything in one go, in a terminal: sign in, pick or make a design system, add it to the app, connect your coding agent. What the bare command runs. |
add |
Put the UI kit into the React app you have: your theme in its stylesheet, the components, their libraries, and the /design-system section. Run again to pull updates. |
check |
See what in the app still bypasses the kit: hardcoded colours, hand-built controls, your own copies of kit components. Reads the disk only. |
connect |
Connect Claude Code, Cursor, VS Code, Codex and Gemini CLI to one design system: the token saved privately on this computer, each app's MCP settings written with no token in them. |
login / logout |
Sign this computer in to your account, so an agent can create a design system for the app it is working on. |
create |
A new Next.js project wearing the system. |
mcp |
Serve the system to a coding agent over MCP. Not for a terminal: connect and login put it in your app's config. |
Every verb asks for what it was not given: a list with the arrow keys, a folder, and the project token typed hidden. Outside a terminal the pickers become numbered prompts, and a missing answer stops the run with a line saying which flag to pass.
How it works
Each run talks to the app's API with the project token (workbench, Project settings) or, after login, your account sign-in. The token travels in a header and is never printed; connect is the only verb that keeps it, in this computer's private store. See Tokens and credentials.
Every write stays inside the target folder. On a failure the command removes what it created, restores what it overwrote, and says so in one line. Ctrl+C or Esc in a picker exits 130 with nothing written.
Every export, the kit, the starter and the MCP tools, needs the project's account on Pro. On the free plan each verb stops with one line saying so.
What can go wrong
- In a Vue, Svelte, Angular or plain CSS folder,
setupstops withDS source supports React apps only for now. Vue, Svelte, Angular and plain CSS are coming later.See React only for now.
Related
- CLI errors: every line the CLI can stop with, and what to do.
- Tokens and credentials: where a token comes from and where it is kept.