@vadenai/mcp-server 0.2.0 → 0.2.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.
@@ -95,10 +95,17 @@ export function generateComponentGuide(info) {
95
95
  }
96
96
  // Important rules (common to all)
97
97
  lines.push("## Important Rules");
98
- lines.push("- Always use design token CSS variables — never hardcode colors or spacing.");
98
+ lines.push("- Always use design token CSS variables — never hardcode colors or spacing. However, Style Config classes override tokens when explicitly specified (see Style Precedence below).");
99
99
  lines.push("- Follow the variant system — do not create ad-hoc style overrides.");
100
100
  if (meta.type === "multipart") {
101
101
  lines.push("- Use the slot-based structure — each slot has specific styling responsibilities.");
102
102
  }
103
+ lines.push("");
104
+ // Style precedence rules
105
+ lines.push("## Style Precedence");
106
+ lines.push("When Style Config and Semantic Tokens conflict, apply this order:");
107
+ lines.push("1. **Style Config classes take highest priority** — they encode component-specific design intent (e.g. `text-white` overrides `text-primary-foreground`).");
108
+ lines.push("2. **Semantic Tokens as fallback** — use tokens only for attributes not specified in the Style Config.");
109
+ lines.push("3. **Resolved Colors are reference values** — they show the actual rendered colors but do not override Style Config classes.");
103
110
  return lines.join("\n");
104
111
  }
package/dist/index.js CHANGED
@@ -17,7 +17,7 @@ import { handleGetConcept, handleGetDesignRationale } from "./tools/concept.js";
17
17
  import { handleGetDesignTokens, handleGetThemeCss, } from "./tools/design-tokens.js";
18
18
  import { handleGetWireframeDetail, handleGetWireframes, } from "./tools/wireframes.js";
19
19
  // --- コマンドライン引数パース ---
20
- const VERSION = "0.2.0";
20
+ const VERSION = "0.2.1";
21
21
  function parseArgs() {
22
22
  const args = process.argv.slice(2);
23
23
  if (args.includes("--help") || args.includes("-h")) {
@@ -247,6 +247,8 @@ function formatStyleSection(data) {
247
247
  const overrideApplied = data.overrideApplied;
248
248
  lines.push(`## Style Config${styleId ? ` (${styleId})` : ""}${overrideApplied ? " [override applied]" : ""}`);
249
249
  lines.push("");
250
+ lines.push("> **Priority**: Resolve conflicts in this order — (1) **Style Config classes** (highest), (2) **Semantic Tokens** (fallback when class is not specified), (3) **Resolved Colors** (reference-only; never override classes).");
251
+ lines.push("");
250
252
  lines.push(`**Type**: ${type}`);
251
253
  lines.push("");
252
254
  if (type === "single") {
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  ],
11
11
  "homepage": "https://vaden.ai",
12
12
  "license": "MIT",
13
- "version": "0.2.0",
13
+ "version": "0.2.1",
14
14
  "type": "module",
15
15
  "publishConfig": {
16
16
  "access": "public"