| name | figma-implement-component |
| description | Implement React components from Figma designs. Use after figma-design-react has analyzed the design. Delegates to create-react-modlet for folder structure, then adds Figma-specific implementation, stories for each variant, Code Connect mapping, and README with design context. |
Skill: Implement Component from Figma Design
This skill implements React components from analyzed Figma designs. It creates complete modlets with stories matching Figma variants and establishes the foundation for Code Connect and future design syncing.
When to Use
- After
figma-design-react skill has analyzed a Figma design
- User wants to build a component from a Figma URL
- Creating a new component that should stay in sync with Figma
What This Skill Does
- Verifies design analysis exists (or triggers it)
- Creates component modlet following project standards
- Writes README with Figma source and mapping context
- Implements the component matching Figma design precisely
- Creates Storybook stories for each Figma variant/state
- Creates Code Connect mapping for Figma integration
- Verifies tests pass and Storybook renders
Prerequisites
- Figma design URL (required if design analysis doesn't exist)
- OR existing design analysis files:
- Design context file at
.temp/design-components/{component-name}/design-context.md
- Proposed API file at
.temp/design-components/{component-name}/proposed-api.md
If design analysis files don't exist, this skill will automatically invoke figma-design-react to generate them.
Workflow Overview
┌─────────────────────────────────────────────────────────────────┐
│ 0. CREATE TODO LIST - Track all steps systematically │
├─────────────────────────────────────────────────────────────────┤
│ 1. VERIFY AND GENERATE - Check for design analysis files │
│ → If missing: Invoke figma-design-react skill │
│ → Creates .temp/design-components/{name}/design-context.md │
│ → Creates .temp/design-components/{name}/proposed-api.md │
├─────────────────────────────────────────────────────────────────┤
│ 2. CREATE MODLET - Build folder structure using modlet pattern │
├─────────────────────────────────────────────────────────────────┤
│ 3. WRITE README - Document Figma source and mapping rationale │
├─────────────────────────────────────────────────────────────────┤
│ 4. CREATE TYPES - Define TypeScript props interface │
├─────────────────────────────────────────────────────────────────┤
│ 5. IMPLEMENT - Build component matching Figma precisely │
├─────────────────────────────────────────────────────────────────┤
│ 6. CREATE STORIES - Story for each Figma variant/state │
├─────────────────────────────────────────────────────────────────┤
│ 7. CODE CONNECT - Create .figma.tsx mapping file │
├─────────────────────────────────────────────────────────────────┤
│ 8. CREATE TESTS - Unit tests for all variants and behaviors │
├─────────────────────────────────────────────────────────────────┤
│ 9. UPDATE EXPORTS - Add to index.ts │
├─────────────────────────────────────────────────────────────────┤
│ 10. VERIFY - Run tests, check types, confirm Storybook renders │
├─────────────────────────────────────────────────────────────────┤
│ 11. PLAYWRIGHT - Visual test Storybook against Figma design │
└─────────────────────────────────────────────────────────────────┘
Table of Contents
Implementation Steps
Each step contains detailed instructions and templates:
Reference Materials
How to Use This Skill
- Start by reading Step 0: Create Todo List
- Create a todo list using
manage_todo_list before implementation
- Follow steps 1-11 in order, marking each as in-progress → completed
- Use Quality Checklist to verify completion
- Only provide final summary after all todos are marked completed
This prevents common failures like skipping file creation steps, forgetting Code Connect mapping, or missing verification steps.
Related Skills
- figma-design-react: Run first to analyze Figma and generate proposed API
- create-react-modlet: Defines the modlet folder structure
- figma-connect-component: Detailed Code Connect mapping guidance
- figma-component-sync: Use later to check implementation against Figma changes