ab-variants
Generate A/B test design variants from an existing Figma screen — alternate layouts, CTA placements, color treatments, and copy…
Convert a Figma design to production code. Provide a Figma URL or select a node in Figma desktop.
> /plugin marketplace add Adityaraj0421/naksha-studio > /plugin install naksha@naksha
How it fires
How this command gets triggered: by you, by Claude, or both.
/figmaContext preview
What this command does when you run it.
Convert a Figma design to production code. Provide a Figma URL or select a node in Figma desktop.
description: "Convert a Figma design to production code. Provide a Figma URL or select a node in Figma desktop." argument-hint: "[Figma URL]" allowed-tools: ["Read", "Write", "Edit", "Bash", "Glob", "Grep", "mcp__*"]
You are running the Figma-to-code workflow. Read `${CLAUDE_PLUGIN_ROOT}/skills/design/references/figma-workflow.md` for the complete guide, and `${CLAUDE_PLUGIN_ROOT}/skills/design/references/ui-designer.md` for visual implementation standards.
Input: **$ARGUMENTS**
If the input is a Stitch screen reference (format: `stitch:[projectId]/[screenId]` or `stitch [projectId] [screenId]`):
1. Fetch screen details:
mcp__stitch__get_screen(
name: "projects/[projectId]/screens/[screenId]",
projectId: [projectId],
screenId: [screenId]
)2. Download visual reference:
curl -L "[screenshot.downloadUrl]" -o stitch-reference.png
3. If `figmaExport` is present in the screen response, download it:
curl -L "[figmaExport.downloadUrl]" -o stitch-export.fig
Open `stitch-export.fig` in Figma Desktop, then use `get_design_context` normally. Skip to Step 3.
4. If only `htmlCode` is available (no figmaExport), download it:
curl -L "[htmlCode.downloadUrl]" -o stitch-source.html
Use `stitch-source.html` as the implementation base — skip Steps 1–4, go directly to Step 5 (Preview and Compare) using `stitch-reference.png` as the visual target.
From the design context, extract and document:
| Property | What to capture | |----------|----------------| | **Layout** | Grid/flex structure, auto-layout direction, alignment, gaps | | **Typography** | Font family, sizes, weights, line heights, letter spacing | | **Colors** | Map to design tokens or extract exact hex values | | **Spacing** | Padding, margins, gaps — map to spacing scale (4, 8, 12, 16, 24, 32, 48, 64) | | **Components** | Buttons, cards, inputs — identify reusable pieces | | **Assets** | Images, icons that need downloading | | **States** | Hover, active, disabled — from variants if visible | | **Responsive hints** | Auto-layout direction, constraints, min/max widths |
Follow the Figma-to-CSS translation rules from the reference:
**Layout mapping:**
**Implementation standards:**
1. Start the preview server with the built HTML 2. Take a screenshot of the implementation 3. Compare visually with the Figma screenshot side-by-side 4. Note specific discrepancies in:
Take a final screenshot and confirm the implementation matches the Figma design. If using Preview MCP, also check:
Default: Tailwind CSS + semantic HTML + Inter font. Adapt if the project uses a different stack (check for existing tailwind.config, package.json, etc.).
This command works best with Figma MCP tools (`get_design_context`, `get_screenshot`, `get_code_connect_map`). If Figma MCP is unavailable, ask the user to paste design details, provide a screenshot, or export design specs manually. If Preview MCP is unavailable, write the HTML file and instruct the user to open it in a browser for comparison.
After converting a Figma design to code:
Your agency's design brain. Always on, always yours. The Naksha design team, inside your terminal — 26 specialist roles activate automatically based on what you're building.
Generate A/B test design variants from an existing Figma screen — alternate layouts, CTA placements, color treatments, and copy…
Full WCAG AA accessibility audit on an HTML file — contrast ratios, keyboard navigation, semantic HTML, ARIA usage, touch…
Generate a complete brand kit from a logo and 1-2 brand colors — full palette, type scale, icon style, component tokens, and…
Define or audit a brand — positioning, visual identity system, voice and tone, and brand architecture.
Design a chart or data visualization — selects the right chart type, applies accessible color palettes, adds annotations, and…
Capture a competitor website with Playwright and extract its color system, typography, layout patterns, and 'steal this'…