@classic-homes/theme-mcp 0.5.12 → 0.6.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.
package/README.md CHANGED
@@ -73,6 +73,8 @@ Core component and design system resources:
73
73
  - `components://list`
74
74
  - `components://{name}`
75
75
  - `components://category/{category}`
76
+ - `components://react/catalog` (the `@classic-homes/theme-react` components, props from their TypeScript types)
77
+ - `components://react/{name}`
76
78
  - `tokens://all`
77
79
  - `tokens://colors`
78
80
  - `tokens://spacing`
@@ -82,6 +84,7 @@ Core component and design system resources:
82
84
  - `styles://base`
83
85
  - `styles://accessibility`
84
86
  - `styles://utilities`
87
+ - `styles://components-css` (the plain-CSS `ch-*` classes of `@classic-homes/theme-styles/components.css`, with the recipes they come from)
85
88
  - `patterns://all`
86
89
  - `patterns://layouts`
87
90
  - `patterns://forms`
@@ -167,6 +170,10 @@ Package-specific resources:
167
170
  | `suggest_pattern` | Get recommended pattern for a use case |
168
171
  | `validate_component_usage` | Check if usage follows guidelines |
169
172
 
173
+ The component tools take an optional `framework`: `"svelte"` (the default, `@classic-homes/theme-svelte` and the other Svelte packages) or `"react"` (`@classic-homes/theme-react`); `search_components` also takes `"all"`. Every result carries a `framework` field.
174
+
175
+ React entries are generated from theme-react's exports and TypeScript types, so a newly exported component appears on the next `npm run generate`. Their `props` are the component's own (plus its cva variants and Radix primitive props); the DOM attributes it also accepts are named in `inherits` (for example `ButtonHTMLAttributes`), and `validate_component_usage` reports such a prop as a warning, not an error. Description, category and related components come from the Svelte component of the same name when there is one.
176
+
170
177
  ### Prompts (Templates)
171
178
 
172
179
  | Prompt | Description |
@@ -216,7 +223,7 @@ Claude uses the `build_form` prompt to generate a form with `FormField` componen
216
223
 
217
224
  ### Regenerate Catalog
218
225
 
219
- When Classic Theme components are updated:
226
+ When Classic Theme components are updated (Svelte docs pages, theme-react exports, or the recipes behind `components.css`; build theme-styles first so its `components.json` is current):
220
227
 
221
228
  ```bash
222
229
  npm run generate