designsource 0.9.0 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +4 -2
  2. package/dist/index.js +1276 -209
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -7,11 +7,13 @@
7
7
  The command line for a [DS source](https://designsource.app) design system. Node 20 or newer, zero runtime dependencies; also installed as **`dss`**.
8
8
 
9
9
  - **[`add`](https://designsource.app/docs/cli/add)** — add the UI kit to the React app you already have: your theme in its global stylesheet, the 61 components and the libraries they import, the Tailwind and shadcn setup when the app lacks it, and a `/design-system` section showing them. Run it again to pull updates.
10
+ - **`add --screen`** — pull a screen you made in the workbench into your app as code: `npx designsource add --screen customers` (or `--screen all`) writes the screen, its sample data and the parts it uses, with the kit components it needs. `add --screen shell` adds a sidebar app shell that links them, and `add --screen site` a menu and footer that list the marketing pages in your app. [More](https://designsource.app/docs/cli/screens).
10
11
  - **[`connect`](https://designsource.app/docs/cli/connect)** — connect your coding apps (Claude Code, Cursor, VS Code, Codex, Gemini CLI) to the design system: the project token saved once, privately, on this computer, and each app's MCP settings written in the project with no token in them.
11
12
  - **[`login`](https://designsource.app/docs/cli/login-and-logout)** / **`logout`** — sign this computer in to your account for coding agents, so your agent can create a design system for the app it is working on and add its UI kit.
12
- - **[`create`](https://designsource.app/docs/cli/create-and-integrate)** — a new Next.js project from it: tokens, every component, a front page and the design system under `/design-system`.
13
+ - **Pages** — the marketing pages you made (home, pricing, waitlist) come with `add --screen` too, and `create` puts them on their own routes with the home page at `/`. The CLI always asks the server for them.
14
+ - **[`create`](https://designsource.app/docs/cli/create-and-integrate)** — a new Next.js project from it: tokens, every component, a front page, the design system under `/design-system` and your screens on `/app/<name>` in a sidebar shell (`--no-screens` leaves them out).
13
15
  - **[`integrate`](https://designsource.app/docs/cli/create-and-integrate)** — a `design-system/` folder for Vue, Svelte, Angular or plain CSS: your tokens as CSS variables, a prompt for your coding agent, the component kit as reference.
14
- - **[`mcp`](https://designsource.app/docs/cli/mcp)** — serve the design system to your coding agent over MCP: tokens, component source, blocks, your mockup page, an integration guide, and tools that add the UI kit or create a design system. `connect` and `login` write its config for you.
16
+ - **[`mcp`](https://designsource.app/docs/cli/mcp)** — serve the design system to your coding agent over MCP: tokens, component source, blocks, your mockup page, an integration guide, and tools that add the UI kit (and your screens, with `screens`), list and read screens (`list_screens`, `get_screen_source`), create a design system, or, signed in with `login`, make a screen (`generate_screen`, which spends credits or your key and writes no files). `connect` and `login` write its config for you.
15
17
 
16
18
  ```sh
17
19
  npx designsource add