The design language that makes your AI harness better at design.
JavaScript
Remove dead design parser paths
Paul Bakaus8d62b135fe25
diff --git a/skill/scripts/lib/design-parser.mjs b/skill/scripts/lib/design-parser.mjsindex 7b060eeca..cab191d69 100644--- a/skill/scripts/lib/design-parser.mjs+++ b/skill/scripts/lib/design-parser.mjs@@ -196,9 +196,6 @@ function parseScalar(raw) {const HEX_RE = /#[0-9a-fA-F]{3,8}\b/g;const OKLCH_RE = /oklch\([^)]+\)/gi;-const RGBA_RE = /rgba?\([^)]+\)/gi;-const BOX_SHADOW_RE = /(?:box-shadow:\s*)?((?:-?\d[\w\d\s\-.,/()#%]*)+)/;-const NAMED_RULE_RE = /\*\*(The [^*]+?Rule)\.\*\*\s*(.+)/;// ---------- Section splitting ----------@@ -550,36 +547,6 @@ function detectFormat(v) {return 'unknown';}-function scanInlineColors(lines) {- const out = [];- for (const line of lines) {- if (!/^\s*[-*]\s/.test(line)) continue;- const trimmed = line.replace(/^\s*[-*]\s+/, '');- const color = parseColorBullet(trimmed);- if (color) out.push(color);- }- return out;-}--function parseStitchInlineGroups(lines) {- // Stitch writes: `* **Primary (`#00478d` to `#005eb8`):** Use for "..."`- // Each bullet IS its own role. Group them under the spoken role name.- const out = [];- for (const line of lines) {- if (!/^\s*[-*]\s/.test(line)) continue;- const trimmed = line.replace(/^\s*[-*]\s+/, '').trim();- const m = trimmed.match(- /^\*\*([A-Z][a-zA-Z]+)\s*\(([^)]+)\):\*\*\s*(.*)$/- );- if (m) {- const role = m[1];- const color = buildColor(role, m[2], m[3]);- out.push({ role, colors: [color] });- }- }- return out;-}-function extractTypography(section) {if (!section) return null;const text = section.lines.join('\n');