ab-variants
CommandGenerate 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, Figma files, or a DESIGN.md — and persist it as .naksha/design-system/MASTER.md.
> /plugin marketplace add Adityaraj0421/naksha-studio> /plugin install naksha@naksha
description: "Generate design tokens, theme configuration, or extract a design system from existing code, Figma files, or a DESIGN.md — and persist it as .naksha/design-system/MASTER.md." argument-hint: "[brand color, Figma URL, 'extract from project', or path/to/DESIGN.md] [--export design-md|dtcg]" 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).
**Existing design system:** if `.naksha/design-system/MASTER.md` exists, it is the project's current system. Modes A–D extend or revise it instead of starting from nothing. Say which tokens you changed.
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
Trigger: User passes a path to a `DESIGN.md` file, or says "import DESIGN.md" / "use our DESIGN.md". (If you
Your agency's design brain. Always on, always yours. The Naksha design team, inside your terminal — 30 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'…
Generate a concrete design system (tokens, style, type, UX) before building UI
Open a first-contribution PR (or bug issue) on nexu-io/open-design — works for non-coders too.
Run one-shot environment diagnostics for Diagram Design readiness
Strip the signatures that make a UI look AI-generated — flat hierarchy, no focal point, monotone layout, timid palettes, generic…