More screenshots

    Works with the AI Agents you already use

    Figma to Code

    by Ilham Febri

    1

    Turn a Figma frame into clean, production-ready Next.js, Tailwind CSS, and shadcn/ui code.

    Free

    Security scanned
    Figma to Code

    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 variableCSS variableTailwind tokenValue
    semantic/color/surface-default--color-surface-defaultbg-surface-default#FFFFFF
    semantic/color/text-primary--color-text-primarytext-text-primary#111827
    semantic/color/text-secondary--color-text-secondarytext-text-secondary#6B7280
    semantic/space/lg--space-lgp-6 / gap-624px
    semantic/radius/card--radius-cardrounded-xl12px

    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

    CheckStatusNote
    Token CompliancePassAll colors and spacing use semantic variables.
    Layout AccuracyPassAuto-layout vertical converted to flex-col.
    Interactive StatesPassButton variants map to shadcn/ui defaults.

    Next steps

    1. Add the new semantic color tokens to your globals.css.
    2. Replace the placeholder avatar path with your actual asset pipeline.
    3. Import the component into your main dashboard page.

    globals.css

    TSX · React component

    Generated

    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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Frequently Asked Questions

    Unlike generic AI prompts that create absolute-positioned code, this skill translates Figma auto-layout directly into CSS Flexbox/Grid and maps colors to a semantic token system (Primitive, Semantic, Component) for professional maintainability.

    This skill is optimized for Next.js App Router environments using Tailwind CSS and shadcn/ui; it works best with AI agents that have access to the Figma API or can process detailed Figma node data.

    The skill identifies repeated Figma instances and automatically maps them to their equivalent shadcn/ui components, ensuring your codebase remains DRY and consistent with your existing library.

    For optimal results, you should provide a Figma file URL or specific Node IDs, though the skill can also process structured design data exported from Figma's developer mode.

    While it excels at complex layouts and tokenization, it cannot generate code for intricate custom SVG icons; these should be exported as assets and imported into your project separately.

    Yes, the skill includes a built-in verification step that checks for responsive behavior across breakpoints and ensures that all components are fully compliant with light and dark mode tokens.

    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.

    Free