hashi-figma
Figma desktop bridge that turns selected frames into code and extracts design tokens without API keys.
- CCM score
- 40 of 100
- GitHub stars
- 201
Own this plugin? Claim it
What it does
- Adds
figma-analyze-frame,figma-extract-tokens,figma-generate-component, andfigma-sync-design-systemskills backed by the local Figma MCP server - Covers frame-to-code generation, variable and token extraction, component and variant reads, and FigJam diagram access
- Maps generated output to existing components through Code Connect so code stays consistent with your design system
- Designed for developers on a paid Figma Dev or Full seat who keep the desktop app open in Dev Mode
MCP server for Figma integration providing design-to-code generation, design token extraction, component sync, and frame analysis via Figma Desktop MCP server.
Add marketplace
/plugin marketplace add TheBushidoCollective/hanRun it inside Claude Code once, then install the plugin below.
Install
/plugin install hashi-figma@hanRun it inside Claude Code after adding the marketplace.
Files
Discovered from sourceAnalyze Figma Frame
Name
figma:figma-analyze-frame - Analyze Figma frame structure and implementation guidance
Synopsis
Analyze a Figma frame's hierarchy, styling, layout, interactivity, and provide comprehensive implementation recommendations including HTML structure, CSS approach, component breakdown, accessibility considerations, and responsive strategy.
Description
You are tasked with analyzing a Figma frame to understand its structure, properties, and provide implementation guidance. This command provides detailed technical analysis to help engineers understand how to implement a design.
Implementation
Uses Figma Desktop MCP server to access frame properties, layers, styling, and layout information. Analyzes component instances, auto-layout configurations, constraints, and design tokens to generate actionable implementation guidance.
Your Task
-
Access the Frame:
- Use Figma MCP tools to access the specified frame
- Accept either selection-based or link-based input
- If neither provided, ask the user to select a frame or provide a URL
-
Analyze Structure:
- Identify the frame hierarchy (parent-child relationships)
- List all layers and their types (text, rectangle, group, component, etc.)
- Note frame layout method (auto-layout, fixed, absolute positioning)
- Identify any component instances used
-
Analyze Styling:
- Extract colors (fills, strokes, shadows)
- Note typography properties (font, size, weight, line height)
- Identify spacing and sizing values
- Check for design token usage
- Note effects (shadows, blurs, etc.)
-
Analyze Layout:
- Describe layout system (flexbox equivalent, grid, absolute)
- Note responsive behavior (constraints, resizing rules)
- Identify spacing patterns (padding, gaps, margins)
- Check alignment and distribution
-
Analyze Interactivity:
- Identify interactive elements (buttons, links, inputs)
- Note any prototyping connections or interactions
- Check for states (hover, active, disabled, etc.)
- Identify any component variants for different states
-
Implementation Analysis:
- Recommend HTML structure and semantic elements
- Suggest CSS approach (flexbox, grid, custom properties)
- Identify component breakdown opportunities
- Note accessibility considerations
- Recommend responsive strategy
Report Format
Provide a comprehensive analysis report:
# Figma Frame Analysis
Frame: [Frame name]
File: [Figma file name]
URL: [Figma URL]
Analyzed: [date]
## Overview
Brief description of the frame's purpose and content.
## Structure
### Hierarchy
Frame: [name] (Auto-layout, Vertical) ├─ Header (Auto-layout, Horizontal) │ ├─ Logo (Component Instance) │ └─ Navigation (Auto-layout, Horizontal) │ ├─ NavItem (Component Instance) x4 │ └─ Button (Component Instance) ├─ MainContent (Auto-layout, Vertical) │ ├─ Hero (Frame) │ │ ├─ Title (Text) │ │ └─ Subtitle (Text) │ └─ Features (Auto-layout, Horizontal, wrap) │ └─ FeatureCard (Component Instance) x6 └─ Footer (Auto-layout, Horizontal)
### Layout System
- **Type**: Auto-layout (Flexbox equivalent)
- **Direction**: Vertical
- **Spacing**: 24px gap between sections
- **Padding**: 64px horizontal, 32px vertical
- **Alignment**: Center-aligned content
## Styling
### Colors
- Background: #FFFFFF (--color-background)
- Primary: #3B82F6 (--color-primary)
- Text: #111827 (--color-text)
- Border: #E5E7EB (--color-border)
### Typography
- Heading: Inter 32px/40px, weight 700
- Body: Inter 16px/24px, weight 400
- Caption: Inter 14px/20px, weight 500
### Spacing
- Section gap: 24px
- Card gap: 16px
- Button padding: 12px 24px
### Effects
- Card shadow: 0px 4px 6px rgba(0, 0, 0, 0.1)
- Button hover: 0px 2px 4px rgba(0, 0, 0, 0.2)
## Components Used
1. **Button** (4 instances)
- Variant: Primary (2), Secondary (2)
- Size: Medium
- Figma: [component URL]
2. **FeatureCard** (6 instances)
- No variants
- Figma: [component URL]
3. **NavItem** (4 instances)
- State: Default (3), Active (1)
- Figma: [component URL]
## Responsive Behavior
### Constraints
- Header: Fixed to top, stretches horizontally
- MainContent: Center-aligned, max-width 1200px
- Footer: Fixed to bottom, stretches horizontally
### Breakpoints Needed
- Desktop (1200px+): 6 feature cards in 3 columns
- Tablet (768px-1199px): 4 cards in 2 columns
- Mobile (<768px): Stack cards in 1 column
### Resizing Rules
- Text: Fixed size, wraps at small widths
- Images: Scale proportionally
- Containers: Flexible width with max-width
## Accessibility Considerations
### Semantic HTML
```html
<header>
<nav>
<a href="/" aria-label="Home">
<img src="logo.svg" alt="Company Name" />
</a>
<ul role="list">
<li><a href="/about">About</a></li>
<!-- ... -->
</ul>
</nav>
</header>
<main>
<section aria-labelledby="hero-title">
<h1 id="hero-title">...</h1>
</section>
<section aria-labelledby="features-title">
<h2 id="features-title">Features</h2>
<div role="list">
<!-- Feature cards -->
</div>
</section>
</main>
<footer>
<!-- Footer content -->
</footer>
ARIA Requirements
- Navigation landmarks
- Heading hierarchy (h1 → h2 → h3)
- Button labels and roles
- Image alt text
- Focus indicators
Keyboard Navigation
- All interactive elements reachable via Tab
- Skip-to-content link
- Logical tab order
- Focus visible styles
Implementation Recommendations
Component Breakdown
Suggest creating these components:
Header- Top navigation barHero- Hero section with title and CTAFeatureGrid- Grid of feature cardsFeatureCard- Individual feature cardFooter- Footer section
CSS Approach
/* Use CSS Grid for feature layout */
.feature-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: var(--spacing-lg);
}
/* Use Flexbox for header */
.header {
display: flex;
justify-content: space-between;
align-items: center;
padding: var(--spacing-md) var(--spacing-xl);
}
Responsive Strategy
- Mobile-first approach
- CSS Grid with auto-fit for feature cards
- Flexbox for header navigation
- Media queries at 768px and 1200px
- Fluid typography (clamp for heading sizes)
Design Tokens
Reference these tokens (create if they don't exist):
--color-primary,--color-text,--color-background--spacing-sm,--spacing-md,--spacing-lg,--spacing-xl--font-family-base,--font-size-body,--line-height-body--shadow-sm,--shadow-md
Potential Issues
- Performance: 6 feature cards with images - consider lazy loading
- Accessibility: Ensure sufficient color contrast (verify WCAG AA)
- Responsive: Navigation may need hamburger menu on mobile
- Content: Text lengths vary - ensure layout handles overflow
Next Steps
- Generate component code (use
/figma:generate-component) - Extract design tokens (use
/figma:extract-tokens) - Create responsive breakpoint tests
- Implement accessibility features
- Add loading states and error handling
## Best Practices
1. **Be Thorough**: Analyze every aspect of the frame
2. **Be Specific**: Include exact values, not approximations
3. **Be Actionable**: Provide concrete implementation guidance
4. **Be Accessible**: Always consider accessibility from the start
5. **Be Responsive**: Think mobile-first and adaptive layouts
## Additional Analysis
If the user requests, also analyze:
- **Performance**: Large images, heavy animations, rendering complexity
- **Browser Support**: CSS features used, fallbacks needed
- **Internationalization**: Text direction, character sets, dynamic content
- **Dark Mode**: Color tokens, theme switching, contrast
- **Print Styles**: If the design should be printable
## Notes
- If the frame is very complex, offer to analyze sections separately
- Suggest improvements to the Figma design if appropriate
- Note any Figma-specific features that don't translate to code
- Recommend collaboration points between design and engineering
Readme
Figma
Connect Claude Code to Figma's official MCP server for design-to-code workflows, component access, and design system integration.
Zero Configuration: Once enabled in the Figma desktop app, this plugin works instantly - no API keys, no tokens to manage!
What This Plugin Provides
MCP Server: figma-desktop
This plugin uses the official Figma MCP Server to provide direct access to Figma designs with tools for:
- Frame-to-Code Generation: Transform Figma frames into production-ready code
- Design Extraction: Access variables, components, layout data, and design tokens
- FigJam Integration: Retrieve workflow diagrams and architecture documentation
- Make Resources: Incorporate code resources from Make files as context
- Code Connect: Maintain consistency between generated code and existing component libraries
- Design System Sync: Access design system components and variables
Available Tools
Once installed and enabled, Claude Code gains access to tools for:
Design Access
- Access selected Figma frames for code generation
- Extract design tokens and variables
- Read component properties and variants
- Get layout and positioning information
Code Generation
- Generate code from Figma frames
- Apply Code Connect mappings
- Use design system components
- Maintain design-code consistency
FigJam Resources
- Access FigJam diagrams for context
- Retrieve architecture documentation
- Incorporate workflow diagrams
Prerequisites
Required
- Figma Desktop App: Latest version with Dev Mode support
- Figma Plan: Dev or Full seat on a paid plan (Starter plan limited to 6 tool calls/month)
- Dev Mode Access: Ability to switch to Dev Mode (Shift+D)
Optional
- Code Connect: For design system integration
- Make Files: For prototype-to-production workflows
Installation
han plugin install figma
Setup
Step 1: Enable Desktop MCP Server in Figma
- Open the Figma desktop app (must be latest version)
- Open any Design file
- Switch to Dev Mode (Shift+D)
- Locate the MCP server section in Dev Mode
- Click "Enable desktop MCP server"
The server will now run locally at http://127.0.0.1:3845/mcp
Step 2: Keep Figma Running
The MCP server only runs while:
- The Figma desktop app is open
- A design file is open
- Dev Mode is enabled
If you close Figma or switch out of Dev Mode, the connection will be lost.
Step 3: Verify Connection
After enabling the server, Claude Code should automatically detect the Figma MCP server. You can verify by asking:
User: What Figma tools are available?
Claude: [Lists available Figma MCP tools and capabilities]
Usage
Example 1: Generate Code from a Frame
Using Selection (Recommended):
- Select a frame in Figma
- In Claude Code:
User: Generate React code for the selected Figma frame
Claude: [Uses Figma MCP to access the frame and generate code]
Using Link:
User: Generate code from https://www.figma.com/design/ABC123/File?node-id=1-234
Claude: [Extracts node ID and generates code]
Example 2: Extract Design Tokens
User: What color variables are defined in the current Figma file?
Claude: [Uses Figma MCP to list all color variables and their values]
Example 3: Access Component Library
User: Show me all button components and their variants from Figma
Claude: [Retrieves component information including properties and variants]
Example 4: Use FigJam for Context
User: Get the architecture diagram from this FigJam file: [URL]
Claude: [Accesses FigJam and incorporates diagram context]
Example 5: Design System Integration
User: Generate a form using our design system components from Figma
Claude: [Uses Code Connect mappings to generate code with actual components]
Tool Reference
Design Access Tools
Access Frames: Retrieve frame data including layout, content, and styling
Parameters:
- Frame selection (via Figma UI) or Figma URL with node ID
- Optional: specific properties to extract
Extract Variables: Get design tokens and variables
Parameters:
- Variable type (color, number, string, boolean)
- Optional: variable collection filter
Read Components: Access component definitions and variants
Parameters:
- Component name or ID
- Optional: include variants and properties
Code Generation Tools
Generate Code: Transform Figma frames into code
Parameters:
- Frame reference (selection or URL)
- Target framework (React, Vue, etc.)
- Optional: Code Connect mappings
Apply Code Connect: Use existing component mappings
Parameters:
- Component references
- Code Connect configuration
FigJam Tools
Get FigJam Resources: Retrieve diagrams and documentation
Parameters:
- FigJam file URL
- Optional: specific nodes or sections
Connection Methods
Selection-Based (Desktop Only)
- Select frames in Figma
- Prompt Claude Code
- MCP automatically accesses selected content
Advantages:
- Quick and intuitive
- No need to copy URLs
- Direct access to current selection
Limitations:
- Requires desktop app
- Must keep Figma focused
Link-Based (Desktop or Remote)
- Copy Figma URL (includes node ID)
- Share URL with Claude Code
- MCP extracts and accesses content
Advantages:
- Works with remote server option
- Shareable context
- Persistent references
Limitations:
- Requires node IDs in URLs
- Manual URL copying
Rate Limits
- Starter Plan: 6 tool calls per month
- Dev/Full Seat: Tier 1 REST API rate limits apply
See Figma API Rate Limits for details.
Security Considerations
- Local Server: Runs on localhost (127.0.0.1:3845)
- No Token Required: Desktop server uses Figma app authentication
- File Access: Only files you have permission to view in Figma
- Network: Server only accessible from your machine
- Session-Based: Server stops when Figma closes
Limitations
- Requires Figma desktop app to remain open
- Dev Mode must be enabled for server to run
- Dev or Full seat required on paid plans (Starter limited)
- Only supports HTTP transport (desktop server)
- No remote server option in this plugin (by design for zero-config)
Troubleshooting
Issue: "Cannot connect to Figma MCP server"
Solution: Verify the desktop server is enabled:
- Open Figma desktop app
- Open a design file
- Switch to Dev Mode (Shift+D)
- Check "Enable desktop MCP server" is ON
Issue: "Connection refused"
Solution: Ensure you're using the latest Figma desktop app:
# Check for updates in Figma app menu
Help → Check for Updates
Issue: Server stops working
Solution: The server only runs while:
- Figma desktop app is open
- A design file is open
- Dev Mode is active
Keep Figma open and in Dev Mode during development.
Issue: "Rate limit exceeded"
Solution: Starter plan users are limited to 6 calls/month. Upgrade to Dev or Full seat for higher limits.
Issue: "No frames found"
Solution: When using selection-based access:
- Select a frame in Figma (not individual elements)
- Keep Figma as active window
- Prompt Claude Code immediately
When using link-based access:
- Ensure URL includes node-id parameter
- Verify you have access to the file
- Check file permissions
Remote Server Option
This plugin uses the desktop server for zero-configuration setup. If you prefer the remote server (https://mcp.figma.com/mcp), you would need:
- Different plugin configuration
- Figma API token
- Network access to Figma's hosted endpoint
The remote server is not included in this plugin to maintain zero-config simplicity.
Related Plugins
- react: React code generation patterns
- typescript: TypeScript validation hooks
- github: Git-based design system versioning
Details
- Marketplace
- TheBushidoCollective/han
- Source
- plugins/services/figma
- Category
- Integration
- Keywords
- mcp, figma, design, design-tokens, components, code-generation, ui, server
- Listed since
- Apr 7, 2026
More from TheBushidoCollective/han
All 340Similar to hashi-figma
More Design & UI/UXfigmaPluginTheBushidoCollective/han201 starsMCP server for Figma integration providing design-to-code generation, design token extraction, component sync, and frame analysis via Figma Desktop MCP server.
figma-integrationSkillmindrally/skills762 installsGuidelines for turning Figma designs into code through MCP servers, handoff, and asset export.
Figma MCP ServerMCP serverfigma2.2K starsRead access to Figma design files: frames, variables, styles, and layout data for AI coding agents.
figma-generate-designSkillnexu-io/open-design3K installsTurn designs and app pages into Figma screens built from design system components and tokens.
figma-cliPluginsilships/figma-cli1.2K starsBuild and edit designs directly in Figma Desktop from your terminal — render frames/components/variants, manage design tokens & variables (shadcn/Tailwind/DTCG)
tempad-devPluginecomfe/tempad-dev657 starsConnect your coding agent to Figma. Create and edit native designs, inspect existing designs, and implement UI in your codebase.