Skip to content

■ SKILLS // SKILL SPECS

design-to-code

Convert Figma designs and screenshots to React/Svelte/Vue components with built-in accessibility

■ [!] ON THIS PAGE ▼
■ INSTALL // npx @self.md/cli install design-to-code
AuthorJeremy Longshore
Namespace@jeremylongshore/claude-code-plugins-plus
Category#design
Version1.0.0
Stars★ 1,193
Downloads↓ 18
Verification[ ✓ ] self.md verified

Convert Figma designs and screenshots to React/Svelte/Vue components with built-in accessibility

Installation

npx claude-plugins install @jeremylongshore/claude-code-plugins-plus/design-to-code

Contents

Folders: servers, skills

Files: LICENSE, README.md, package.json, server.json, tsconfig.json

Documentation

Convert Figma designs and screenshots to production-ready code components

Transform design files into React, Svelte, or Vue components with built-in accessibility.

Features

  • Figma Parser - Extract components from Figma JSON exports
  • Screenshot Analysis - Analyze UI layouts from images
  • Code Generation - React, Svelte, Vue components
  • A11y Built-in - ARIA labels, semantic HTML, keyboard navigation
  • Style Extraction - Colors, typography, spacing

Installation

/plugin install design-to-code@claude-code-plugins-plus

3 MCP Tools

1. parse_figma

Extract components from Figma JSON export.

{
  "json": "{\"name\": \"Button\", ...}",
  "framework": "react"
}

2. analyze_screenshot

Analyze screenshot layout and extract UI elements.

{
  "imagePath": "/path/to/screenshot.png",
  "framework": "svelte"
}

3. generate_component

Generate code from layout specification.

{
  "layout": {
    "type": "container",
    "children": [...]
  },
  "framework": "react",
  "includeA11y": true
}

Quick Start

// 1. Parse Figma design
const design = await parse_figma({
  json: figmaExport,
  framework: 'react'
});

// 2. Generate component
const component = await generate_component({
  layout: design.layout,
  framework: 'react',
  includeA11y: true
});

// Result: Production-ready React component with accessibility

Accessibility Features

All generated components include:

  • ARIA labels - Screen reader support
  • Semantic HTML - Proper element usage
  • Keyboard navigation - Tab order, focus states
  • Color contrast - WCAG AA compliance checking

Supported Frameworks

  • React - JSX with hooks
  • Svelte - Single-file components
  • Vue - Composition API

License

MIT License


Made with ️ by Intent Solutions

Source

View on GitHub