/design:showcasefrom design
Create a realistic in-context HTML mockup showing how a proposed UI component or feature would look inside the actual project, with 2-4 distinct design variations the user can switch between. Extracts the project's design DNA (colors, typography, spacing, layout) from its codebase, then builds a self-contained HTML page with a convincing page shell that mimics the real app. Each variation explores a different design direction so the user can compare approaches before committing. Use when the user wants to: preview a UI component before building it, see a proposed feature in the app's visual context, mock up a design, compare design options, showcase a component, or get a design decision preview. Trigger phrases: 'show me what this would look like', 'mockup', 'mock up', 'UI preview', 'design preview', 'design options', 'compare designs', 'showcase this', /showcase.
Ships in design. 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.
Read when SKILL.md points to them; scripts run unread.
Create a realistic HTML mockup of a proposed component or feature, embedded in a page shell that looks like the actual project, with 2-4 distinct design variations the user can toggle between. The mockup is a decision tool: its job is to help someone say "I want Variation 2" or "none of these, try again" — not to be a prototype.
To compare whole pages on a real route with real data, use the "Whole-page variants" section of impeccable/reference/live.md instead.
Match the project, never look generically good. A polished mockup that doesn't match the project's design language is worse than a rough one that does. Stakeholders who use the product daily will immediately notice "this isn't us" and mentally discard the idea — even if the layout was sound. The #1 failure mode is generating shadcn/ui + Inter + purple accent regardless of what the project actually uses.
The mockup answers exactly one question: "Should we build this?" Every element must serve that question. Working hover states help (they show the component is alive). Working pagination does not (it answers an implementation question, not a design question). Before adding anything, ask: "Does this help someone decide yes or no?"
Context is not decoration — it is the perceptual condition for judgment. A component in isolation cannot be judged. Human visual judgment is relational: spacing, hierarchy, and color conflicts are only visible against surrounding content. The same button looks fine alone but reveals spacing problems inside a real form.
Read references/extraction.md (145 lines) completely before proceeding. Don't load references/toolkit.md here — load it at Phase 2 only.
Skip extraction.md if: project has <5 files with no identifiable design system. Use the most polished existing component as canonical reference instead.
The project's design identity lives in what was OVERRIDDEN from framework defaults, not the defaults themselves. A rounded-lg in Tailwind may be a deliberate choice or a developer's unthinking default. Your job is to distinguish intent from accident.
Config/theme files (highest signal) — tailwind.config.js theme.extend, CSS :root {} variables, components.json (shadcn), theme.ts (MUI/Chakra). Every value here is an intentional decision.
Global stylesheets — globals.css, index.css. Look for: font-family on body, line-height, custom properties, @font-face or font imports. These set the baseline feel.
Usage frequency — Grep for most-repeated Tailwind classes (rounded-*, shadow-*, gap-*, text-*, bg-*). A value appearing 40 times across 15 components IS the design system. A value appearing 3 times is an experiment.
Component patterns — Read the project's Button, Card, and Input components. Together they reveal: primary color, hover treatment, border-radius preference, padding rhythm, shadow depth, font weight for interactive elements.
Extract colors (primary, background, text, muted, border), border-radius, and spacing from the layers above — these are straightforward. The tokens below are the ones agents typically miss or undervalue:
| Token | Why it's non-obvious |
|---|---|
| Max-width | Determines page feel more than any color. A 1140px container reads entirely differently from a full-bleed layout. Find the wrapper component or max-w-* on the main content area. |
| Shadow system | Signals design philosophy: none = flat (borders do separation), shadow-sm = modern elevated flat (Notion, Linear), layered = Material influence, colored = high-design marketing. |
| Border style | Borders-only vs shadow-only separation reveals a "flat" vs "layered" worldview. Projects rarely mix both — identify which one dominates. |
| Font stack | Display font signals brand positioning: Inter/Geist = dev SaaS, DM Sans/Jakarta = friendly consumer, system stack = performance-first. The pairing (display + body + mono) matters more than any single font. |
After extracting, write one sentence: "This project feels [adjective] — it uses [font] with [radius] corners, [shadow level] shadows, and [spacing] spacing on a [color] background."
If you can't write this sentence, you haven't extracted enough. Go back.
When extraction returns ambiguous results (inconsistent styling, no clear dominant token): Extract the most-repeated value for each token using frequency analysis (see extraction.md). If still ambiguous, default to the project's primary Button component as canonical — its colors, radius, and padding define the minimum viable design system. Note "design tokens estimated from dominant component" in the mockup footer.
Read references/toolkit.md completely before writing any HTML. Don't re-load references/extraction.md — use tokens already extracted.
Focus your reading: Start with the Page Shell Skeleton and Core CSS Pattern (always needed). Then read only the sections relevant to your task:
The shell answers three questions for the viewer's brain:
| Question | Minimum answer | Include |
|---|---|---|
| What app is this? | Brand presence | Logo/wordmark, primary font, background color |
| Where am I? | Navigation context | Top nav with 3-5 items (one active), optional sidebar |
| What am I looking at? | Page context | Page title, optional breadcrumb, surrounding content |
Shell depth decision:
max-width matching the project's actual content container — NOT full viewport widthSurrounding content at reduced opacity. Place 2-3 representative elements (cards, rows, text blocks) above and below where the new component will go. Set these to 40-50% opacity with pointer-events: none. This creates realistic density without competing with the spotlight.
Generate 3 distinct variations by default (2 minimum, 4 maximum). Each variation is a different design DIRECTION for the same component — not cosmetic tweaks of the same idea.
Variations must explore different design directions, not cosmetic variants. "Blue button vs green button" is not two variations — it's one idea in two colors. Real variations differ on the axes that matter for this component:
| Component type | Axes of meaningful variation |
|---|---|
| Card / tile | Layout (stacked vs horizontal), visual weight (bordered vs elevated vs flat), info density (compact vs expanded) |
| Form / input | Grouping (inline vs stacked vs stepped), labeling (floating vs above vs inside), density (compact vs comfortable) |
| List / table | Structure (table vs cards vs rows), affordance (click-row vs click-button vs inline-edit), density |
| Nav / menu | Orientation (horizontal vs sidebar vs dropdown), hierarchy (flat vs nested vs tabbed), mobile behavior |
| Modal / sheet | Trigger pattern (center modal vs side drawer vs inline expand), size (compact vs full-width), dismissal |
| Dashboard widget | Data emphasis (big-number vs chart vs list), interactivity (static vs hover-detail vs drill-in) |
Give each variation a descriptive semantic name, not "Option A/B/C". The name communicates the design intent:
Every variation must:
The variation switcher is a segmented control at the top of the main content area, labeled with each variation's name. Clicking switches which variation renders in the component slot. See toolkit.md "Variation Switcher" for the HTML/CSS/JS pattern.
Spotlight technique: With multiple variations, the switcher itself IS the spotlight — users know exactly what they're evaluating. Use opacity halo on surrounding content (40-50% opacity) as the only additional technique. Don't use pulse-once outline or "New" badges when variations are present — they compete with the switcher.
Never use lorem ipsum. Use plausible, domain-appropriate content:
The stress test: Include at least one data point that pushes the layout — a long string, a large number, or an empty state. This is what makes the mockup honest about how the component will actually look.
Ask: "Is component state a design question or an implementation question?" If the mockup is about layout, happy path + one stress state is enough — skip the switcher. If the mockup is about interaction design or the component's behavior under different conditions matters for the decision, show 3-4 states.
When states ARE a design question, add a segmented control outside the page shell (typically above the component, positioned so reviewers cannot mistake it for actual UI):
[ Default ] [ Empty ] [ Loading ] [ Error ]
Use data-state attributes and CSS selectors to toggle visibility. Each state renders in the same page context.
Verify before continuing:
The "swap test": If you could swap the names of any two variations without the mockup becoming incoherent, they're not meaningfully different — regenerate them with sharper divergence.
If any check fails, fix it now. Polishing a structurally wrong mockup wastes time.
:root, override in [data-theme="dark"] if the project has dark modetransition: all 0.15s ease on hover states — instant transitions look brokenprefers-reduced-motion media query that disables animationsInclude a dark/light toggle ONLY if the project has dark mode. Match the project's exact dark mode colors. Don't invent a dark mode that doesn't exist.
Include annotations if: the component introduces a new interaction pattern, the design decision is non-obvious from visual inspection alone, or the reviewer is unfamiliar with the codebase. Skip for self-evident changes reviewed by the primary author.
When included, add a show/hide toggle for an annotation overlay that:
Save as .showcase/mockup-[feature-name].html at the project root. Create the .showcase/ directory if needed, and add .showcase/ to the project's .gitignore if not already present (create .gitignore if it doesn't exist). On iteration requests ("more"), update this same file in place — never create a second file. Open the file when done.
When the user asks for "more", "try again", "different ideas", or "what else" — they want fresh creative directions in the same HTML file, not a new mockup.
Don't re-extract design tokens — Phase 1 was already done. Reuse what's in the file. Don't rebuild the page shell — it's already correct. Only touch the component slot and variation switcher. Don't accumulate variations across rounds — each round still has 3-4 variations max. Iteration replaces, it doesn't pile up.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
12 skills in this plugin
/designDesign process: UX and usability first, then fit to the client's real content, then a project-specific look with none of the AI-made tells (indigo, Inter, centred hero + 3 cards, cream + serif, mono eyebrow labels, "Build the future of X"). Ships the feel layer: every control answers hover, press and focus, changes are explained by small tiered transitions, one authored interaction, no scroll fade-ups or idle loops; verified by driving the page in a browser (scripts/probe.mjs). Use when generating, building, improving, polishing, critiquing or evaluating any UI or frontend, or when asked for microinteractions, transitions or polish. Phases: understand → UX (Nielsen) → direction → execute with interaction layer → graphics → polish and tell sweep → feel pass → external evaluator. Keywords: UI, UX, landing page, dashboard, not AI slop, microinteractions, design review. For a brand-new page that should differ between runs, prefer `vary`; use `design` for critique, audits, polish, or by name./diagramDraws clear, good-looking diagrams as one self-contained HTML file with inline SVG (export to SVG or PNG on request): architecture, AWS architecture with the official AWS icons (VPC, subnets, regions, Lambda, API Gateway, DynamoDB, S3 and 800 more), architecture delta, deployment, flowchart, sequence, state machine, ER/data model, database schema, UML class, timeline, Gantt, swimlane, process, data flow, service blueprint, user journey, story map, kanban, quadrant, radar, polar, loop/flywheel, nested, tree, org chart, layer stack, exploded axonometric, axonometric plan, Venn, pyramid/funnel, treemap/marimekko, heatmap, bar/dumbbell, waterfall, line/slopegraph/ridgeline/streamgraph/bump, scatter/bubble/beeswarm, Sankey, fishbone, Wardley map, dependency graph, high-level, medallion, DP integration, DP security matrix, IT current-state; also redraws .drawio, Mermaid and .excalidraw files. Use when the user says "draw a diagram", "diagram this", "architecture diagram", "AWS diagram", "draw our infra", "flowchart of", "sequence diagram", "make this Mermaid look good", or when design, graphics or explainer need a diagram. Not for illustrations, icon sets or brand art (use design:graphics) and not for live data dashboards.npx claudepluginhub tomaspalsson/flow --plugin design