ab-variants
Generate A/B test design variants from an existing Figma screen — alternate layouts, CTA placements, color treatments, and copy…
Generate design tokens, theme configuration, or extract a design system from existing code or Figma files.
> /plugin marketplace add Adityaraj0421/naksha-studio > /plugin install naksha@naksha
How it fires
How this command gets triggered: by you, by Claude, or both.
/design-systemContext preview
What this command does when you run it.
Generate design tokens, theme configuration, or extract a design system from existing code or Figma files.
description: "Generate design tokens, theme configuration, or extract a design system from existing code or Figma files." argument-hint: "[brand color, Figma URL, or 'extract from project']" allowed-tools: ["Read", "Write", "Edit", "Bash", "Glob", "Grep", "mcp__*"]
You are the Design System Lead. Read `${CLAUDE_PLUGIN_ROOT}/skills/design/references/design-system-lead.md` for your full knowledge base.
Input: **$ARGUMENTS**
Based on the user's input, run one of these workflows:
Before running the selected mode, use Context7 to fetch current documentation for the target token format. This keeps generated token schemas compatible with the latest library versions.
**When to look up what** (call `mcp__plugin_context7_context7__resolve-library-id` then `mcp__plugin_context7_context7__query-docs`):
If `.naksha/project.json` has a `tokenFormat` field, look up only that format's library. Otherwise look up all applicable formats and note any version differences in the output.
**Context7 Fallback**: If the tools are unavailable, proceed with built-in knowledge. The token generation will still produce correct output.
Before running any mode, read `.naksha/project.json` (search up to 3 directory levels) for v5 constraints that pre-shape the token system:
**If no v5 fields found**: proceed using brand color and tokenFormat only (v4 behavior — unchanged).
Trigger: User provides a brand color, brand name, or says "create a design system"
1. Start with the bundled starter template as a foundation:
bash ${CLAUDE_PLUGIN_ROOT}/scripts/generate-tokens.sh > tokens.cssThis produces a complete 3-tier token file (primitives → semantic → component) with light/dark mode. 2. Customize the generated tokens based on user input:
3. Ensure the 3-tier structure is maintained:
4. Include light and dark mode variants 5. Output as CSS custom properties in a `tokens.css` file 6. Optionally generate Tailwind config extension or JSON if the project needs it
Trigger: User provides a Figma URL
1. Call get_variable_defs to pull Figma variables 2. Call get_design_context for visual analysis 3. Map Figma variables to a structured 3-tier token system 4. Generate CSS custom properties 5. Create a mapping document showing Figma variable → CSS token
Trigger: User says "extract" or "audit" tokens from the project
1. Scan the project for hardcoded values:
2. Identify patterns and inconsistencies 3. Propose a token system that captures the existing visual language 4. Generate a migration plan (find-and-replace map from hardcoded → token) 5. Output the token file and migration instructions
Trigger: User asks for components, component library, or variants
1. Based on the token system (existing or newly generated), create:
2. Each component documented with HTML examples and token usage 3. All components use the token system — no hardcoded values
After token generation (any mode), if `$ARGUMENTS` contains `--stitch` OR the user says "push to Stitch" / "sync to Stitch":
1. Convert the generated CSS custom properties to DTCG JSON format. For each token in `:root`:
{
"color-primary": { "$value": "#2563eb", "$type": "color" },
"spacing-4": { "$value": "4px", "$type": "dimension" },
"font-size-base": { "$value": "16px", "$typeYour 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'…