themekit-mcp v2.6.0 — design_to_code, expandInstances, auto-validate
npm: @isamercan/themekit-mcp@2.6.0 · npx -y @isamercan/themekit-mcp
The Figma→SwiftUI generator gets a clearer name, deeper conversion, and self-checking output.
Added
design_to_codetool — a more readable, design-tool-agnostic name for the Figma→SwiftUI generator.figma_to_swiftuiis kept as a backward-compatible alias (identical behavior), so existing prompts and automations keep working.expandInstancesoption — whentrue, an unmapped Figma componentINSTANCEwith children is walked into (like a FRAME/GROUP) instead of an opaque// ⚠️ unmappedleaf, so a screen built from nested instances (forms, headers, nav bars) actually converts. Defaultfalse; recursion capped byinstanceMaxDepth(default 8).- Auto-validation —
design_to_coderunsvalidate_codeon its own output and appends the PASS/FAIL verdict under an## Auto-validationsection. - More
figma-mapping.jsonrules —Checkbox,Radio/RadioButton,Toggle/Switch→ThemeToggle, andDivider/Divider Container→DividerViewmap out of the box. - Direct Figma
urlinput — pass the design link asurl; the tool parsesfileKey+nodeIditself (both/design/and legacy/file/links, and normalises the URL's dashnode-id→ colon). ExplicitfileKey+nodeIdstill accepted.
Fixed
- Placeholder noise — design-system scaffolding text (
scribble,Action Button,Input Label, …) is no longer emitted as real SwiftUIText. - Spacing token →
SpacingKeycase emission —sp-4xlnow emitsTheme.SpacingKey.xl4.value(was the non-compiling.4xl) andspacing-noneemits.none(was.spacing-none).
Full changelog: mcp/CHANGELOG.md