Provides CSS Modules integration for component styling as an alternative or complement to Tailwind CSS.
Enables bidirectional synchronization between development environments and Figma for design system management, including extraction of design tokens, components, icons and images from Figma, and synchronization of React components back to Figma.
Generates React components with TypeScript based on design system specifications, including support for variants, interactive states, and automatic documentation.
Automatically generates Storybook stories for React components to showcase variants and interactive states.
Supports styling of generated components with Tailwind CSS, including analysis and mapping of styles for bidirectional synchronization with design tools.
Creates React Testing Library tests for generated components to ensure proper functionality.
Generates TypeScript definitions and typed components, ensuring type safety across the design system.
MCP Design System Bridge
A Model Context Protocol (MCP) for bidirectional synchronization between IDE and Figma for Design System management.
Features
1. React Component Generation
Generate React components with TypeScript
Support for variants using class-variance-authority
Interactive states (hover, focus, disabled, loading)
Forwarded refs for composition
Styled with Tailwind CSS + CSS Modules
Complete JSDoc documentation
Automatic Storybook stories
React Testing Library tests
Barrel exports
2. Figma Component Generation
Create component frames
Apply design tokens
Generate variants automatically
Create responsive auto-layout
Integrated documentation
3. Figma → IDE Extraction
Design tokens (colors, typography, shadows, spacing, borders)
Icons (optimized SVG, multiple formats)
Images (PNG, JPG, WebP with optimization)
Components (structure, props, variants)
4. IDE → Figma Synchronization
React component analysis
Props and variants extraction
Tailwind/CSS style analysis
Interactive state detection
Design token mapping
5. Bidirectional Synchronization
Automatic change detection
Confirmation prompts
Visual diff
Sync history
Rollback capability
Related MCP server: Figma MCP Server
Installation
Configuration
Create a .mcp-config.json file in your project root:
Usage
Generate React Component
Extract from Figma
Sync to Figma
Sync from Figma
Project Structure
Development
Prerequisites
Node.js 18+
npm 8+
Figma account with access token
React 18+ project
Setup
Clone the repository
Install dependencies:
npm installCreate
.mcp-config.jsonwith your Figma credentialsStart development:
npm run dev
Testing
Building
Contributing
Fork the repository
Create your feature branch
Commit your changes
Push to the branch
Create a Pull Request
License
MIT
Support
For support, please open an issue in the GitHub repository.