sonance-brand-mcp 1.3.103 → 1.3.104

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.
@@ -1532,6 +1532,27 @@ DESIGN ISSUES TO FIX (${problems.length} problems identified)
1532
1532
 
1533
1533
  ${problemsList}
1534
1534
 
1535
+ BEFORE GENERATING PATCHES, analyze each problem:
1536
+
1537
+ For EACH problem, determine:
1538
+ 1. What is the current DOM structure for this element?
1539
+ 2. Can this be fixed by adjusting className values (spacing, alignment, colors)?
1540
+ 3. Or does the DOM structure itself prevent the fix?
1541
+
1542
+ DECISION RULES:
1543
+ - If a problem is about SPACING: adjust margin/padding classes (mt-X, mb-X, gap-X, p-X)
1544
+ - If a problem is about ALIGNMENT: adjust flex/grid alignment classes (items-center, justify-between)
1545
+ - If a problem is about HIERARCHY: adjust font-size, font-weight, or color classes
1546
+ - If a problem is about GROUPING: check if elements are in the same container first
1547
+ → If yes: adjust gap/spacing classes
1548
+ → If no: consider minimal restructuring
1549
+
1550
+ ONLY restructure elements when:
1551
+ - Elements are in separate containers that prevent proper grouping
1552
+ - The current container type (div, flex, grid) fundamentally can't achieve the layout
1553
+
1554
+ PREFER the minimal change. A good designer makes surgical fixes, not rewrites.
1555
+
1535
1556
  YOUR TASK: Generate AT LEAST ONE PATCH for EACH problem listed above.
1536
1557
  Expected minimum patches: ${problems.length}
1537
1558
 
@@ -1550,12 +1571,14 @@ DO NOT:
1550
1571
  - Add or remove classes/attributes
1551
1572
  - Invent code that "should" exist
1552
1573
  - Guess at the structure
1574
+ - Restructure when a className change would work
1553
1575
 
1554
1576
  DO:
1555
1577
  - Copy the exact text from the numbered lines
1556
1578
  - Make small, targeted changes in the "replace" field
1557
1579
  - Keep patches focused on one change each
1558
1580
  - Generate one patch per problem minimum
1581
+ - Prefer adjusting existing classes over moving elements
1559
1582
  `;
1560
1583
  }
1561
1584
 
@@ -1528,6 +1528,27 @@ DESIGN ISSUES TO FIX (${problems.length} problems identified)
1528
1528
 
1529
1529
  ${problemsList}
1530
1530
 
1531
+ BEFORE GENERATING PATCHES, analyze each problem:
1532
+
1533
+ For EACH problem, determine:
1534
+ 1. What is the current DOM structure for this element?
1535
+ 2. Can this be fixed by adjusting className values (spacing, alignment, colors)?
1536
+ 3. Or does the DOM structure itself prevent the fix?
1537
+
1538
+ DECISION RULES:
1539
+ - If a problem is about SPACING: adjust margin/padding classes (mt-X, mb-X, gap-X, p-X)
1540
+ - If a problem is about ALIGNMENT: adjust flex/grid alignment classes (items-center, justify-between)
1541
+ - If a problem is about HIERARCHY: adjust font-size, font-weight, or color classes
1542
+ - If a problem is about GROUPING: check if elements are in the same container first
1543
+ → If yes: adjust gap/spacing classes
1544
+ → If no: consider minimal restructuring
1545
+
1546
+ ONLY restructure elements when:
1547
+ - Elements are in separate containers that prevent proper grouping
1548
+ - The current container type (div, flex, grid) fundamentally can't achieve the layout
1549
+
1550
+ PREFER the minimal change. A good designer makes surgical fixes, not rewrites.
1551
+
1531
1552
  YOUR TASK: Generate AT LEAST ONE PATCH for EACH problem listed above.
1532
1553
  Expected minimum patches: ${problems.length}
1533
1554
 
@@ -1546,12 +1567,14 @@ DO NOT:
1546
1567
  - Add or remove classes/attributes
1547
1568
  - Invent code that "should" exist
1548
1569
  - Guess at the structure
1570
+ - Restructure when a className change would work
1549
1571
 
1550
1572
  DO:
1551
1573
  - Copy the exact text from the numbered lines
1552
1574
  - Make small, targeted changes in the "replace" field
1553
1575
  - Keep patches focused on one change each
1554
1576
  - Generate one patch per problem minimum
1577
+ - Prefer adjusting existing classes over moving elements
1555
1578
  `;
1556
1579
  }
1557
1580
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sonance-brand-mcp",
3
- "version": "1.3.103",
3
+ "version": "1.3.104",
4
4
  "description": "MCP Server for Sonance Brand Guidelines and Component Library - gives Claude instant access to brand colors, typography, and UI components.",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",