/uix:generate-design [optional prompt describing the UI]from uix
Generates a complete, production-ready UI from a natural-language prompt — React + Tailwind, grounded in all 8 UIX reference books + WCAG 2.2, ROIN baseline always on. Asks 4 targeted questions then writes a self-contained .tsx file and compiles it to a browser-openable preview.html. Auto-activates on "design a [X] from scratch", "build me a UI for [X]", "create a full [X] page", "generate a UI for [X]", or /uix:generate-design.
Ships in uix. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Generate complete, production-ready UIs from a prompt. Auto-activates on generation requests or via /uix:generate-design.
"design a [X] from scratch" · "build me a UI for [X]" · "create a full [X] page" · "generate a UI for [X]" · "make a [dashboard / landing page / auth screen / settings page / etc.]" · "I need a frontend for [X]" · "build this interface".
Before running the preview pipeline, the user's project must have the following installed. If any are missing, Claude should run the install command and inform the user before proceeding to generation.
npm install react react-dom
npm install -D esbuild tsx
react + react-dom — bundled into the preview by esbuildesbuild — the bundler used by render-preview.tstsx — the TypeScript runner used to execute render-preview.ts (auto-fetched via npx on first use)If the project has no package.json, run npm init -y first.
Send exactly this (adapting the preamble to match the user's prompt if one was given):
I'll generate a complete React + Tailwind UI for you. Before I do, four quick questions:
1. What type of UI? dashboard / landing page / auth flow (login + signup) / settings page / e-commerce / data table / other
2. What's the app about? (1–2 sentences — e.g. "a project management tool for remote teams")
3. What are the key sections or features to show? e.g. sidebar nav, stat cards, data table, charts, hero section, pricing cards, form wizard
4. Anything specific to include or avoid? (optional — specific colors, brand name, sections to skip)
If the user's prompt already answers one or more questions, skip those and ask only the remaining ones. If the prompt is fully specific (all 4 answered), skip directly to generation.
Before writing any code, if anything in the answers is ambiguous:
⚠️ Not sure how to interpret "[X]" — I'll go with [Y] for now. Flag it if that's wrong.
Never silently guess. Surface the uncertainty first.
Name the file [AppName].generated.tsx (derive from the app description, kebab-case, e.g. project-dashboard.generated.tsx).
Write a single self-contained .tsx file following all rules in the Generation Rules section below. No external imports beyond react and react-dom. All state via useState. Maximum ~300 lines.
After writing the file, run:
npx tsx "${CLAUDE_PLUGIN_ROOT}/scripts/render-preview.ts" [path/to/Component.generated.tsx]
Then open the generated HTML:
# Windows
start "[path/to/Component.generated.preview.html]"
# macOS
open "[path/to/Component.generated.preview.html]"
# Linux
xdg-open "[path/to/Component.generated.preview.html]"
After the preview opens:
Preview is open. Tell me what to change — layout, color, sections, content, interactions — and I'll regenerate.
Apply feedback by rewriting the .tsx, rerunning the helper, and reopening the browser. No new questions asked unless the fundamental UI type changes.
Every generated component MUST apply all rules below. These are non-negotiable.
[DI][UXB]shadow-lg), hover transform (hover:scale-[1.02] or hover:-translate-y-0.5), active press (active:scale-95)[RUI]text-slate-400 text-sm. Values: text-white font-semibold or text-slate-900 font-semibold[RUI][DI]p-1 p-2 p-3 p-4 p-6 p-8 p-10 p-12 p-16. No arbitrary values (p-[17px] is forbidden)Center Stage + Module Tabs (main content dominates, tabs for views)Feature-Search-Browse (hero + feature grid + social proof)Wizard + Progress Indicator (step-by-step, never show all fields at once)Settings Editor + Accordion (grouped, collapsible sections)Two-Panel Selector + Cards (list left, detail right)[DMMT][DI][UXB][DMMT][DMMT][DMMT][UXB][UXB][UXB][RUI][IOC][C&L]slate-*), 1–2 vivid primaries, semantic status colors#000 or #fff — use slate-950 for darkest, white/95 or slate-50 for lightest [C&L]shadow-indigo-900/30, shadow-violet-900/20, etc. [C&L][IOC][WCAG 1.4.1][C&L][RUI]font-sans (Inter via Tailwind, system-ui fallback)text-xs text-sm text-base text-lg text-xl text-2xl text-3xl text-4xl — modular, never arbitrarymax-w-prose to enforce 45–75 char line lengthtracking-tight. All-caps labels: tracking-widest text-xs<div> — always semantic <h1>…<h6>[RUI][C&L]rounded-2xl bg-slate-900 shadow-xl shadow-indigo-900/20 border border-slate-800/50backdrop-blur-xl bg-white/5 border border-white/10[MOM][CBD][MOM][MOM][CBD][CBD][WCAG 2.2]min-h-11 min-w-11 (44×44 px preferred; 24×24 minimum)focus-visible:ring-2 focus-visible:ring-indigo-400 focus-visible:ring-offset-2 focus-visible:ring-offset-slate-950outline-none without a replacement focus style<main>: a visually-hidden skip link <a href="#main-content" className="sr-only focus:not-sr-only">Skip to content</a><nav> <main> <header> <footer> <section> <button> <label> <h1>…<h6><html lang="en"> always set (injected by render-preview.ts into the HTML wrapper)role="status" or aria-live="polite"[WCAG 2.5.7].tsx file — all state, layout, and sections in one file. Sub-components defined in the same file above the default export.style={} props, no CSS modules, no styled-components, no arbitrary valuesuseState — no external state managementinterface for prop types, const for all declarationsIf any generation rule conflicts with what the user asked for, surface it:
⚠️ [What user asked] may conflict with [rule] because [reason]. I'll [decision]. Flag if you want to override.
Examples:
Load ${CLAUDE_PLUGIN_ROOT}/references/UI_MASTER_GUIDE.md for the full rule detail behind each source tag.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub dinoquinten/claude-plugins --plugin uix9 skills in this plugin
/accessibility-auditAudits a UI against WCAG 2.2 (Perceivable/Operable/Understandable/Robust), covering every AA criterion and all nine criteria new in 2.2 — focus not obscured, focus appearance, dragging movements, target size 24×24, consistent help, redundant entry, accessible authentication. Auto-activates on "accessibility audit", "WCAG check", "a11y review", "is this accessible", "check contrast", "keyboard accessible", or /uix:accessibility-audit. Produces a per-criterion pass/fail/NA report with fixes./choose-patternRecommends the right UI pattern from Tidwell's "Designing Interfaces" catalog for a given interaction problem — navigation, layout, lists/data, forms, controls, mobile. Auto-activates on "what pattern should I use for X", "how do I let users [do Y]", "what's the best way to show [Z]", or /uix:choose-pattern. Returns primary pattern, 1-2 alternatives, and why each fits or doesn't.Other plugins' skills for the same job
/color-system