better-design 0.12.0 → 0.15.1

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.
package/README.md CHANGED
@@ -8,62 +8,42 @@ Design systems, UI principles, icons, and code review for AI coding agents. [bet
8
8
  npx better-design
9
9
  ```
10
10
 
11
- Run it once. No signup needed: a free key is created automatically and written into your installed MCP clients (Claude Code, Cursor, VS Code, Windsurf, Zed, Cline, JetBrains, and more), merge-safe, with an auto-invoke rule.
11
+ Run it once. It creates a free key, writes the config into the MCP clients you already have, and merges rather than overwriting. No signup. [See a page per client](https://better-design.com/mcp/install).
12
12
 
13
- Using ZCode? Follow the [ZCode MCP setup guide](https://better-design.com/mcp/install/zcode) to add Better Design as an HTTP server.
13
+ Already have a key? Set `BETTER_DESIGN_API_KEY`. Manage keys at [better-design.com/mcp](https://better-design.com/mcp).
14
14
 
15
- The free key has a query limit; the tools link you to turn it into a free account (same key, unlimited, history kept). Already have a key? Set `BETTER_DESIGN_API_KEY`. Manage keys at [better-design.com/mcp](https://better-design.com/mcp).
16
-
17
- > After install, set `"style": "new-york"` in `components.json` before running the shadcn command (the default `base-nova` style rewrites Radix `asChild` and breaks components). The returned install instructions include this.
15
+ > Set `"style": "new-york"` in `components.json` before running the shadcn command. The default `base-nova` style rewrites Radix `asChild` and breaks components.
18
16
 
19
17
  ## Tools
20
18
 
21
- The server exposes MCP tools only; it does not register prompts.
22
-
23
19
  | Tool | Purpose |
24
20
  | --- | --- |
25
- | `find-design-system` | Start any UI build by searching the catalog for visual foundations, or browse and compare existing systems. Returns IDs and the build/review guardrails needed for the next step. |
26
- | `create-design-system` | Start a custom design system generation job. |
27
- | `get-design-system-status` | Poll a generated design system and return the install command when ready. |
28
- | `review-illustration` | Render an SVG illustration you drew, look at it, and report what is visibly wrong |
29
- | `get-design-system-kit` | Return the correct implementation kit through one entry point. Use `target: "react"` in coding hosts for shadcn install commands and real components; use `target: "html"` only in inline canvases/artifacts for the framework-free HTML/CSS kit. Accepts a catalog `designSystemId`, or a generated `projectId` for the HTML target. Base UI is the default React flavor; pass `library: "radix"` when the project already uses Radix. |
30
- | `preview-design-system` | Return a token-true visual preview for a catalog design system. |
31
- | `get-ui-principle` | Load or search visual UI principles. |
21
+ | `find-design-system` | Search the catalog for a look to build on. |
22
+ | `create-design-system` | Generate a custom design system. |
23
+ | `get-design-system-status` | Poll a generation job and return the install command. |
24
+ | `get-design-system-kit` | Return the implementation kit: React components, framework-free HTML, or Shopify Liquid. |
25
+ | `preview-design-system` | Return a token-true visual preview. |
26
+ | `extract-design-system` | Pull a semantic token set out of a project's existing CSS. |
27
+ | `get-ui-principle` | Load or search visual principles. |
32
28
  | `get-ux-principle` | Load or search flow and interaction principles. |
33
- | `get-react-native-guide` | Load or search implementation guidance and code recipes for React Native and Expo projects. |
34
- | `get-review-rules` | Return the Better Design self-review checklist. Supports `category`: `accessibility`, `visual-design`, `animation`, `content`, `comprehension`, or `all`. |
35
- | `check-comprehension` | Check a finished screen against the mom test, the 15 second test, and the screenshot test. Pass the copy (`headline`, `body`, `actions`) or the screen's `code`, and it returns the findings that would stop a stranger understanding it. |
36
- | `extract-design-system` | Distill an oklch-normalized semantic token set out of a project's existing CSS (paste `globals.css` / Tailwind v4 `@theme`) so new components match the app the user already built. |
37
- | `find-icon-library` | Find an icon library for an app or project style. |
29
+ | `get-react-native-guide` | React Native and Expo implementation guidance. |
30
+ | `get-three-js-guide` | Three.js and React Three Fiber implementation guidance. |
31
+ | `get-motion-guide` | Building a product demo video in code. |
32
+ | `get-review-rules` | The self-review checklist. `category`: `accessibility`, `visual-design`, `animation`, `content`, `comprehension`, `all`. |
33
+ | `check-comprehension` | Check a finished screen against the mom test, the 15 second test, and the screenshot test. |
34
+ | `review-illustration` | Render an SVG you drew, look at it, report what is visibly wrong. |
35
+ | `find-icon-library` | Find an icon library that fits the project. |
38
36
  | `find-icons` | Search icons by name, library, and variant. |
39
- | `install-icons` | Generate local icon components in the target project. |
40
- | `detect-icon-library` | Read an existing icon-library manifest and report the active library. |
41
-
42
- ## Retrieve Principles
43
-
44
- Use `topic` when you know the principle or one of its aliases. Use `query` when you want the most relevant sections for a specific design problem.
45
-
46
- ```text
47
- get-ui-principle({ topic: "blur test" })
48
- get-ui-principle({ query: "group this dense settings screen with clearer proximity" })
49
- get-ux-principle({ topic: "reward design" })
50
- get-ux-principle({ query: "confirm a high-stakes action with control rather than celebration" })
51
- get-ux-principle({ topic: "clarity audit" })
52
- get-ux-principle({ topic: "motion brief" })
53
- ```
54
-
55
- The principle tools return complete documents for topic lookups and focused document sections for natural-language searches. After implementation, call `get-review-rules({ category: "all" })` so the same hierarchy, accessibility, motion, copy, and reward guidance is applied during review.
56
-
57
- ## Setup Behavior
37
+ | `install-icons` | Write icon components into the project. |
38
+ | `detect-icon-library` | Report which icon library a project already uses. |
58
39
 
59
- `npx better-design` auto-creates a free key when none is set, then prompts for clients, scope, and auto-invoke rules. Non-interactive runs (agents, or `-y`/`--yes`) install silently. Configs are merged into your existing files (backed up first, never clobbering other MCP servers); scope falls back per client when one isn't supported.
40
+ Every load-or-search tool takes `topic` when you know the name, or `query` when you are describing a problem.
60
41
 
61
- Options:
42
+ ## Options
62
43
 
63
44
  | Option | Description |
64
45
  | --- | --- |
65
- | `-y`, `--yes` | Non-interactive: skip prompts, auto-create a key. |
66
- | `BETTER_DESIGN_API_KEY` | Use your own key instead of auto-provisioning. |
67
- | `--global` | Install at user/global scope when the client supports it. |
68
- | `--project` | Install in the current project when the client supports it. |
69
- | `--help` | Print setup usage. |
46
+ | `-y`, `--yes` | Skip prompts. Agents and CI run this way by default. |
47
+ | `--global` | Install at user scope, where the client supports it. |
48
+ | `--project` | Install in the current project, where the client supports it. |
49
+ | `--help` | Print usage. |