|
| 1 | +# Plugin Roadmap: design-to-code |
| 2 | + |
| 3 | +## Summary |
| 4 | + |
| 5 | +| Action | Count | |
| 6 | +|--------|-------| |
| 7 | +| Reuse | 5 | |
| 8 | +| Extend | 3 | |
| 9 | +| Create | 19 | |
| 10 | + |
| 11 | +--- |
| 12 | + |
| 13 | +## P0 — MVP |
| 14 | + |
| 15 | +Core functionality for extracting design tokens and generating code for primary frameworks. |
| 16 | + |
| 17 | +### Reuse (add to plugin.sources.json) |
| 18 | + |
| 19 | +| Component | Type | Source Path | |
| 20 | +|-----------|------|-------------| |
| 21 | +| sketch-context-mcp | mcp | `npx sketch-context-mcp` | |
| 22 | +| penpot-mcp | mcp | local build from [penpot/penpot-mcp](https://github.com/penpot/penpot-mcp) | |
| 23 | +| figma-mcp | mcp | Figma desktop app or `https://mcp.figma.com/mcp` | |
| 24 | + |
| 25 | +### Extend |
| 26 | + |
| 27 | +| Component | Type | Base | Gap | Effort | |
| 28 | +|-----------|------|------|-----|--------| |
| 29 | +| design-tokens-extraction | skill | design-brand-applying-dev | Add extraction logic from MCP server data, token normalization | medium | |
| 30 | +| design-system-management | skill | design-theme-factory-dev | Add token CRUD, multi-format export, version tracking | medium | |
| 31 | +| design-translator | agent | ui-designer | Add MCP integration, code generation pipelines, framework routing | large | |
| 32 | + |
| 33 | +### Create |
| 34 | + |
| 35 | +| Component | Type | Description | Dependencies | |
| 36 | +|-----------|------|-------------|--------------| |
| 37 | +| design-to-swiftui | skill | Convert design specs to SwiftUI views with proper modifiers | design-tokens-extraction | |
| 38 | +| /extract-tokens | command | Extract tokens from design file via MCP, output to chosen format | sketch-context-mcp, penpot-mcp, figma-mcp, design-tokens-extraction | |
| 39 | +| /generate-component | command | Analyze design selection, generate code for target framework | design-translator, design-to-swiftui | |
| 40 | +| design-token-json | style | W3C Design Tokens format output | - | |
| 41 | +| design-token-swift | style | Swift Color/Font extension output | - | |
| 42 | + |
| 43 | +--- |
| 44 | + |
| 45 | +## P1 — Enhancement |
| 46 | + |
| 47 | +Additional framework support and design system tooling. |
| 48 | + |
| 49 | +### Reuse (add to plugin.sources.json) |
| 50 | + |
| 51 | +| Component | Type | Source Path | |
| 52 | +|-----------|------|-------------| |
| 53 | +| iconify-mcp | mcp | `npx iconify-mcp-server@latest` | |
| 54 | + |
| 55 | +### Create |
| 56 | + |
| 57 | +| Component | Type | Description | Dependencies | |
| 58 | +|-----------|------|-------------|--------------| |
| 59 | +| design-to-react | skill | Convert design specs to React components with CSS/styled-components | design-tokens-extraction | |
| 60 | +| design-to-flutter | skill | Convert design specs to Flutter widgets with proper theming | design-tokens-extraction | |
| 61 | +| design-to-tailwind | skill | Generate Tailwind config and utility classes from design specs | design-tokens-extraction | |
| 62 | +| /sync-design-system | command | Sync tokens from design file to codebase, detect drift | design-system-management | |
| 63 | +| /export-assets | command | Export and optimize images/icons for target platforms | iconify-mcp | |
| 64 | +| design-system-architect | agent | Create comprehensive design systems from design files | design-tokens-extraction, design-system-management | |
| 65 | +| design-token-css | style | CSS custom properties output | - | |
| 66 | +| design-token-tailwind | style | Tailwind config.js theme output | - | |
| 67 | +| component-spec | style | Design specification markdown document | - | |
| 68 | +| asset-optimization | skill | Image/icon optimization for iOS, Android, web | iconify-mcp | |
| 69 | + |
| 70 | +--- |
| 71 | + |
| 72 | +## P2 — Nice-to-have |
| 73 | + |
| 74 | +Quality of life improvements and advanced features. |
| 75 | + |
| 76 | +### Reuse (add to plugin.sources.json) |
| 77 | + |
| 78 | +| Component | Type | Source Path | |
| 79 | +|-----------|------|-------------| |
| 80 | +| design-tokens-lsp | lsp | [design-tokens-language-server](https://bennypowers.dev/posts/introducing-design-tokens-language-server/) | |
| 81 | + |
| 82 | +### Create |
| 83 | + |
| 84 | +| Component | Type | Description | Dependencies | |
| 85 | +|-----------|------|-------------|--------------| |
| 86 | +| accessibility-audit | skill | Check designs for WCAG compliance (contrast, touch targets, etc.) | design-tokens-extraction | |
| 87 | +| /compare-design | command | Visual diff between design file and implemented code | figma-mcp, sketch-context-mcp | |
| 88 | +| asset-pipeline | agent | Batch process assets across multiple platforms | asset-optimization | |
| 89 | +| validate-design-tokens | hook | Validate token JSON files on save | design-token-json | |
| 90 | + |
| 91 | +--- |
| 92 | + |
| 93 | +## Dependency Graph |
| 94 | + |
| 95 | +``` |
| 96 | +MCP Servers (foundation) |
| 97 | +├── sketch-context-mcp ─┐ |
| 98 | +├── penpot-mcp ─────────┼──→ design-tokens-extraction ──→ design-to-swiftui |
| 99 | +├── figma-mcp ──────────┘ │ │ |
| 100 | +│ │ ├──→ design-to-react |
| 101 | +│ │ ├──→ design-to-flutter |
| 102 | +│ │ └──→ design-to-tailwind |
| 103 | +│ │ |
| 104 | +│ └──→ design-system-management |
| 105 | +│ │ |
| 106 | +│ └──→ design-system-architect |
| 107 | +│ |
| 108 | +├── iconify-mcp ──────────────────────────────────────→ asset-optimization |
| 109 | +│ │ |
| 110 | +│ └──→ asset-pipeline |
| 111 | +│ |
| 112 | +Commands |
| 113 | +├── /extract-tokens ←── design-tokens-extraction + MCP servers |
| 114 | +├── /generate-component ←── design-translator + design-to-* skills |
| 115 | +├── /sync-design-system ←── design-system-management |
| 116 | +├── /export-assets ←── iconify-mcp + asset-optimization |
| 117 | +└── /compare-design ←── MCP servers (P2) |
| 118 | +
|
| 119 | +Output Styles (parallel, no dependencies) |
| 120 | +├── design-token-json |
| 121 | +├── design-token-swift |
| 122 | +├── design-token-css |
| 123 | +├── design-token-tailwind |
| 124 | +└── component-spec |
| 125 | +``` |
| 126 | + |
| 127 | +--- |
| 128 | + |
| 129 | +## Implementation Order |
| 130 | + |
| 131 | +### Phase 1: Foundation (P0) |
| 132 | +1. Configure MCP servers (sketch, penpot, figma) |
| 133 | +2. Extend `design-tokens-extraction` skill |
| 134 | +3. Create `design-token-json` and `design-token-swift` output styles |
| 135 | +4. Create `/extract-tokens` command |
| 136 | +5. Create `design-to-swiftui` skill |
| 137 | +6. Extend `design-translator` agent |
| 138 | +7. Create `/generate-component` command |
| 139 | +8. Extend `design-system-management` skill |
| 140 | + |
| 141 | +### Phase 2: Framework Expansion (P1) |
| 142 | +1. Add `iconify-mcp` server |
| 143 | +2. Create `design-to-react`, `design-to-flutter`, `design-to-tailwind` skills |
| 144 | +3. Create remaining output styles |
| 145 | +4. Create `/sync-design-system` and `/export-assets` commands |
| 146 | +5. Create `design-system-architect` agent and `asset-optimization` skill |
| 147 | + |
| 148 | +### Phase 3: Polish (P2) |
| 149 | +1. Add `design-tokens-lsp` server |
| 150 | +2. Create `accessibility-audit` skill |
| 151 | +3. Create `/compare-design` command |
| 152 | +4. Create `asset-pipeline` agent |
| 153 | +5. Create `validate-design-tokens` hook |
0 commit comments