- Home
- Skills
- Frontend & Web Apps
- Figma to Code
More screenshots
Works with the AI Agents you already use
Figma to Code
by Ilham Febri
Turn a Figma frame into clean, production-ready Next.js, Tailwind CSS, and shadcn/ui code.
Free
Figma to Code
Example session with this skill installed
Convert the 'UserProfileCard' frame from this Figma link into a shadcn/ui component. Use my project tokens for spacing and colors.
- Read your context and instructions
- Compiled the figma to code
- Generated the UI component
I have analyzed the 'UserProfileCard' frame. The layout uses vertical auto-layout with a 16px gap and 24px padding. I have mapped the design to your project's semantic tokens.
Figma to Code Conversion
| Figma variable | CSS variable | Tailwind token | Value |
|---|---|---|---|
| semantic/color/surface-default | --color-surface-default | bg-surface-default | #FFFFFF |
| semantic/color/text-primary | --color-text-primary | text-text-primary | #111827 |
| semantic/color/text-secondary | --color-text-secondary | text-text-secondary | #6B7280 |
| semantic/space/lg | --space-lg | p-6 / gap-6 | 24px |
| semantic/radius/card | --radius-card | rounded-xl | 12px |
Implementation
import { Card, CardContent, CardHeader } from "@/components/ui/card";
import { Avatar, AvatarImage, AvatarFallback } from "@/components/ui/avatar";
import { Button } from "@/components/ui/button";
export function UserProfileCard() {
return (
<Card className="w-[380px] rounded-xl border-border-default bg-surface-default p-6 shadow-sm">
<CardHeader className="flex flex-col items-center gap-4 p-0">
<Avatar className="h-20 w-20">
<AvatarImage src="/avatars/user-01.png" alt="User" />
<AvatarFallback>JD</AvatarFallback>
</Avatar>
<div className="text-center">
<h3 className="text-xl font-semibold text-text-primary">Jane Doe</h3>
<p className="text-sm text-text-secondary">Senior Product Designer</p>
</div>
</CardHeader>
<CardContent className="mt-6 flex flex-col gap-3 p-0">
<Button variant="default" className="w-full">Follow</Button>
<Button variant="outline" className="w-full">Message</Button>
</CardContent>
</Card>
);
}
Verification
| Check | Status | Note |
|---|---|---|
| Token Compliance | Pass | All colors and spacing use semantic variables. |
| Layout Accuracy | Pass | Auto-layout vertical converted to flex-col. |
| Interactive States | Pass | Button variants map to shadcn/ui defaults. |
Next steps
- Add the new semantic color tokens to your
globals.css. - Replace the placeholder avatar path with your actual asset pipeline.
- Import the component into your main dashboard page.
globals.css
TSX · React component
Example file from a real run - the skill writes it into your workspace.
Connects securely to your tools. The creator never sees your data.
About this skill
Turn a Figma frame into clean, production-ready Next.js, Tailwind CSS, and shadcn/ui code.
Figma to Code reads the Figma structure first, builds a token map before writing code (three tiers: primitive, semantic, component), maps auto-layout to flexbox (HUG becomes w-fit, FILL becomes flex-1), maps components to shadcn/ui instead of rebuilding them from divs, and verifies the result against the design at 1440px and 390px. It includes a worked example (a revenue stat card, from Figma structure to token map to finished component) and a list of the mistakes that ruin most Figma-to-code conversions.
Install: copy skills/figma-to-code into ~/.claude/skills/ (or .claude/skills/ for one project), restart Claude Code, or run /skills to confirm. No build step, no dependencies, no server. You need a Figma file URL or node ID, and a screenshot of the frame for verification.
License: MIT. Free to use in commercial work.
Requires Figma API access via MCP or node data. Does not support non-Tailwind stacks by default. Rounded spacing values (e.g. 13px to 12px) are enforced to match tokens.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 6 days ago
- Free with an Agensi account
Permissions
What's inside
Frequently Asked Questions
New in Frontend & Web Apps
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Frontend & Web Apps.