Designs components and sections within an existing design system. Creates 3 composition variations that use the project's actual tokens, colors, typography, and component primitives. Use when user says "design a component", "component variations", "design a card", "design a hero", "design a section", "component options", "design within our system", "new component", "component concept", or wants to explore how a component could look using their existing design system. Also use when designing larger composed sections (dashboards, settings pages, feature panels) that build on existing primitives. Do NOT use when the project has no design system yet (use design-system-init), or when exploring entirely new visual directions (use design-concepts).
This skill guides Claude through designing components and sections within an existing design system. Unlike design-concepts (which explores new visual identities), this skill works within established constraints — same fonts, same colors, same tokens — and finds creative variation through composition, layout, interaction, and information hierarchy.
Core Methodology
Why Constrained Variation Matters
A design system gives you vocabulary. This skill is about writing different sentences with the same words:
Same palette, different emphasis: Brand orange as a subtle border vs. a bold background vs. a gradient accent
Same type scale, different hierarchy: Large title + small body vs. medium everything + bold labels
Same spacing tokens, different density: Compact data table vs. airy editorial card
Same primitives, different composition: Stacked cards vs. side-by-side panels vs. tabbed sections
The goal is showing stakeholders that meaningful variety exists within the system — and helping pick the composition that best serves the component's purpose.
When to Create 3 Variations vs. 1
3 variations: New component type, section redesign, unclear requirements, stakeholder needs to choose
1 variation: Extending an existing pattern, minor variant of something that already works, clear requirements with no ambiguity
Step 1: System Audit
Before designing anything, understand what you're working with. Read the project's design system files.
Files to look for:
- globals.css / global styles (CSS variables, tokens, layers)
- tailwind.config.ts/js (theme extensions, custom values)
- Design token files (colors, spacing, typography scales)
- Component library (shadcn components, Radix primitives, custom components)
- Existing components similar to what's being designed
- Any design docs (docs/design/, docs/css-quick-reference.md, etc.)
What to catalog:
Color tokens: Brand colors, semantic colors, neutral scale, accent colors, dark mode variants
Typography: Font families, size scale, weight scale, any utility classes (.text-page-title, .heading-font, etc.)
Spacing: Token scale (if semantic like section/card/element/rhythm, or numeric like Tailwind defaults)
Animation: Custom durations, easings, keyframes, transition patterns, motion preference support
Component primitives: What's already built — cards, buttons, badges, dialogs, inputs, etc.
Patterns in use: How existing components handle states, hover effects, responsive behavior, dark mode
Output: A brief system audit summary (mental model, not a separate file) that captures what tokens and patterns are available. Reference specific variable names and class names — these are the building blocks for concepts.
Reading the System's Personality
Every design system has a personality even if it wasn't consciously designed. Before composing new components, identify it:
Opal Creek type: Semantic and structured — named spacing tokens (section-lg, card-md), service-specific colors, utility-class typography. Wants consistency and predictability.
ProSocial type: Dynamic and stateful — tiered color progressions, state machine components, gamified micro-interactions. Wants energy and feedback.
DOA type: Atmospheric and textural — glassmorphism, text-stroke effects, gradient animations. Wants mood and visual drama.
Portfolio type: Systematic and polished — comprehensive token coverage, custom easings, staggered animation delays. Wants precision and craft.
Match your composition approach to the system's personality. A compact data-dense card might be right for a structured system; an animated progressive-reveal card might be right for a dynamic one.
Step 2: Component Brief
Ask the user (or extract from context):
What: What component or section? (a card, a nav bar, a hero section, a settings panel, a dashboard widget)
Purpose: What job does this component do for the user? What information does it convey or what action does it enable?
Context: Where does this live in the app? What's around it? What page/view?
Content: What data or content does it display? Be specific — names, numbers, labels, images, icons.
States: What states does it need? (empty, loading, error, populated, hover, active, disabled, selected, expanded/collapsed)
Responsive: Mobile-first? Desktop-only? Needs to work at both extremes?
Constraints: Anything off-limits? Any must-haves? Technical constraints?
If the user gives a brief answer ("design a task card"), fill in reasonable assumptions from the system audit and existing components, then confirm before proceeding.
Step 3: Pattern Research
Two types of research, both quick:
Internal Patterns
Look at how the project already handles similar components:
Search the codebase for components with similar purposes
Note which tokens, layouts, and interaction patterns are already established
Identify conventions (do cards have borders or shadows? do sections use consistent padding tokens?)
Focus on: accessibility requirements for the component type, interaction patterns that work well, content hierarchy approaches, common mistakes to avoid.
Step 4: Composition Strategy
Composition Lenses
Instead of aesthetic lenses (the component design equivalent of design-concepts' lens system), select composition lenses — different strategies for arranging and presenting the same content within the same design system.
Pick 3 lenses from these categories. Mix across categories for variety.
Layout Lenses
Lens
Character
Good For
Dense/Compact
Maximum info per pixel, tight spacing, small type
Data-heavy dashboards, list views, power-user tools
Concepts are HTML files that use the project's design tokens. Embed the token values directly so the HTML is self-contained and viewable in a browser.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>[Component] - Concept [N]: [Lens Name]</title>
<!-- Load the project's actual fonts -->
<style>
/*
* Design System Tokens (from project's globals.css / tailwind.config)
* Using actual variable names for traceability
*/
:root {
/* Paste relevant tokens here */
}
/* Component styles using only system tokens */
</style>
</head>
<body>
<!-- Component with realistic content, not Lorem Ipsum -->
<!--
ANNOTATIONS:
Explain key composition decisions and which tokens are used where.
Connect decisions back to the component's purpose.
-->
<!-- Show multiple states: default, hover, active, empty, etc. -->
</body>
</html>
Per-Concept Requirements
Each concept MUST include:
Lens name stated explicitly
Composition rationale: Why this layout/interaction/emphasis for this component
Token mapping: Which system tokens are used and where (e.g., "uses --color-brand-orange for status border, spacing-card-md for internal padding")
State showcase: All required states rendered on the same page
Responsive notes: How it adapts (or annotations if the HTML doesn't demonstrate it)
Concept Refinement
After the user picks a direction:
Refine the chosen concept based on feedback
Increase fidelity — nail all states, interactions, edge cases
Prepare for handoff to implementation
The refined concept HTML should be close enough to the final intent that a developer could implement from it
Step 6: In-Situ Preview
After the user picks a direction and the concept is refined, create an in-situ preview — an HTML file that shows the recommended component in the context of the full screen/page where it will live. This is not a pixel-perfect reproduction; it's a simplified representation of the surrounding UI that gives stakeholders a feel for how the component sits within the page.
Why In-Situ Matters
Isolated component previews answer "what does the component look like?" In-situ previews answer "what does the page feel like with this component?" — which is what stakeholders actually need to approve. A CTA bar that looks great in isolation might feel cramped when the bottom bar, scrollable content, and header are all present.
What to Include
Simplified page chrome: Header/nav, content area, any fixed elements (bottom bars, sidebars) — represented as gray blocks with labels, not fully detailed
Realistic content zone: Enough real-looking content (text, cards, images as placeholder boxes) to convey scroll position and density
The actual component: Rendered at full fidelity using the refined concept's styles and tokens
Phone frame: Wrap the preview in a device frame (375×812 for mobile, or appropriate viewport) so the proportions are accurate
Multiple states: Show the component in its key states (2-3 frames side by side if the component has distinct phases)
What NOT to Include
Don't rebuild the entire page — simplified representations of surrounding UI are fine
Don't add interactive JavaScript — static HTML snapshots of each state
Don't introduce new design decisions for the surrounding UI — use neutral grays and labels
Be specific: care-task-card, service-hero-section, settings-panel, activity-dashboard
Ask the user for the name if not obvious from context
Overview Document
File: {component-name}-overview.md
# [Component Name] — Design Concepts
## Component Purpose
[What this component does, where it lives, who uses it]
## Design System Context
- **Project**: [project name]
- **Token source**: [globals.css, tailwind.config, etc.]
- **Key tokens used**: [list the most relevant colors, spacing, typography tokens]
- **Existing patterns referenced**: [similar components in the codebase]
## Concept 1: [Name] — [Lens Combination]
**Composition**: [Layout + Interaction + Emphasis lens]
**Approach**: [How this arranges content and why]
**Strengths**: [What this does well for the component's purpose]
**Tradeoffs**: [What this sacrifices — density vs. clarity, simplicity vs. power]
**Tokens highlighted**: [Which system tokens are most prominent]
## Concept 2: [Name] — [Lens Combination]
...
## Concept 3: [Name] — [Lens Combination]
...
## Recommendation
[Which concept best serves the component's purpose and why]
## Next Steps
- [ ] Gather feedback on the 3 directions
- [ ] Refine chosen concept with [specific details]
- [ ] Hand off to implementation
Quality Criteria
Excellent Component Concepts:
System-native: Could not exist outside this specific design system — tokens are visible in the design
Compositionally distinct: Each concept arranges information and interaction differently, not just color-swapped
State-complete: Shows all required states, not just the happy path
Realistic content: Uses actual or realistic data, not "Title Here" / "Description text"
Annotated: Key composition decisions are explained with WHY, tied to component purpose
Accessible: Color contrast meets 4.5:1, focus states exist, semantic HTML structure
Responsive-aware: Either demonstrates responsive behavior or clearly annotates how it adapts
Traceable: Annotations reference actual token names from the system audit
Red Flags:
Concepts that introduce colors, fonts, or spacing not in the design system
Three concepts that only differ in border-radius or shadow
Missing states (especially empty and error)
Placeholder content hiding layout problems
No reference to actual system tokens
Common Pitfalls
Escaping the System
Problem: "This would look better with a different font" — introducing off-system values
Instead: Find variety within the system. If the system only has one font, vary weight, size, case, and spacing. Constraints breed creativity.
Surface-Level Variation
Problem: Three concepts that are the same layout with different colored headers
Instead: Change the layout structure, the interaction model, or the information hierarchy. A card and a list row are fundamentally different even if they show the same data.
Happy-Path-Only Design
Problem: Concepts only show the component with perfect data
Instead: Design the empty state, the loading state, the error state, the overflow state. These reveal whether the composition actually works.
Ignoring What Already Exists
Problem: Designing a card without looking at the project's existing cards
Instead: Read existing components first. Extend patterns rather than inventing new ones. If the project uses shadows on cards, don't switch to borders without reason.
Over-Annotating the Obvious
Problem: "This uses padding because padding creates space"
Instead: Annotate the non-obvious — why this token over another, why this layout over the simpler option, why this state treatment connects to the component's purpose.
Researched accessibility requirements for this component type
Selected 3 composition lenses appropriate to the component's purpose
Each concept uses ONLY tokens from the existing design system
Each concept differs in layout, interaction, or information hierarchy (not just color)
Each concept shows all required states (empty, loading, error, populated, hover)
Used realistic content, not placeholders
Verified color contrast meets 4.5:1 minimum
Annotated key decisions with token references and rationale
Created overview document comparing concepts with recommendation
Created in-situ preview showing recommended concept in page context
1---2name: design-components3description: Designs components and sections within an existing design system. Creates 3 composition variations that use the project's actual tokens, colors, typography, and component primitives. Use when user says "design a component", "component variations", "design a card", "design a hero", "design a section", "component options", "design within our system", "new component", "component concept", or wants to explore how a component could look using their existing design system. Also use when designing larger composed sections (dashboards, settings pages, feature panels) that build on existing primitives. Do NOT use when the project has no design system yet (use design-system-init), or when exploring entirely new visual directions (use design-concepts).4---56# Design - Components78This skill guides Claude through designing components and sections within an existing design system. Unlike design-concepts (which explores new visual identities), this skill works within established constraints — same fonts, same colors, same tokens — and finds creative variation through composition, layout, interaction, and information hierarchy.910## Core Methodology1112### Why Constrained Variation Matters1314A design system gives you vocabulary. This skill is about writing different sentences with the same words:15- **Same palette, different emphasis**: Brand orange as a subtle border vs. a bold background vs. a gradient accent16- **Same type scale, different hierarchy**: Large title + small body vs. medium everything + bold labels17- **Same spacing tokens, different density**: Compact data table vs. airy editorial card18- **Same primitives, different composition**: Stacked cards vs. side-by-side panels vs. tabbed sections1920The goal is showing stakeholders that meaningful variety exists within the system — and helping pick the composition that best serves the component's purpose.2122### When to Create 3 Variations vs. 12324- **3 variations**: New component type, section redesign, unclear requirements, stakeholder needs to choose25- **1 variation**: Extending an existing pattern, minor variant of something that already works, clear requirements with no ambiguity2627## Step 1: System Audit2829Before designing anything, understand what you're working with. Read the project's design system files.3031**Files to look for:**32```33- globals.css / global styles (CSS variables, tokens, layers)34- tailwind.config.ts/js (theme extensions, custom values)35- Design token files (colors, spacing, typography scales)36- Component library (shadcn components, Radix primitives, custom components)37- Existing components similar to what's being designed38- Any design docs (docs/design/, docs/css-quick-reference.md, etc.)39```4041**What to catalog:**421. **Color tokens**: Brand colors, semantic colors, neutral scale, accent colors, dark mode variants432. **Typography**: Font families, size scale, weight scale, any utility classes (.text-page-title, .heading-font, etc.)443. **Spacing**: Token scale (if semantic like section/card/element/rhythm, or numeric like Tailwind defaults)454. **Animation**: Custom durations, easings, keyframes, transition patterns, motion preference support465. **Component primitives**: What's already built — cards, buttons, badges, dialogs, inputs, etc.476. **Patterns in use**: How existing components handle states, hover effects, responsive behavior, dark mode4849**Output**: A brief system audit summary (mental model, not a separate file) that captures what tokens and patterns are available. Reference specific variable names and class names — these are the building blocks for concepts.5051### Reading the System's Personality5253Every design system has a personality even if it wasn't consciously designed. Before composing new components, identify it:5455- **Opal Creek type**: Semantic and structured — named spacing tokens (section-lg, card-md), service-specific colors, utility-class typography. Wants consistency and predictability.56- **ProSocial type**: Dynamic and stateful — tiered color progressions, state machine components, gamified micro-interactions. Wants energy and feedback.57- **DOA type**: Atmospheric and textural — glassmorphism, text-stroke effects, gradient animations. Wants mood and visual drama.58- **Portfolio type**: Systematic and polished — comprehensive token coverage, custom easings, staggered animation delays. Wants precision and craft.5960Match your composition approach to the system's personality. A compact data-dense card might be right for a structured system; an animated progressive-reveal card might be right for a dynamic one.6162## Step 2: Component Brief6364Ask the user (or extract from context):65661. **What**: What component or section? (a card, a nav bar, a hero section, a settings panel, a dashboard widget)672. **Purpose**: What job does this component do for the user? What information does it convey or what action does it enable?683. **Context**: Where does this live in the app? What's around it? What page/view?694. **Content**: What data or content does it display? Be specific — names, numbers, labels, images, icons.705. **States**: What states does it need? (empty, loading, error, populated, hover, active, disabled, selected, expanded/collapsed)716. **Responsive**: Mobile-first? Desktop-only? Needs to work at both extremes?727. **Constraints**: Anything off-limits? Any must-haves? Technical constraints?7374If the user gives a brief answer ("design a task card"), fill in reasonable assumptions from the system audit and existing components, then confirm before proceeding.7576## Step 3: Pattern Research7778Two types of research, both quick:7980### Internal Patterns81Look at how the project already handles similar components:82- Search the codebase for components with similar purposes83- Note which tokens, layouts, and interaction patterns are already established84- Identify conventions (do cards have borders or shadows? do sections use consistent padding tokens?)8586### External Patterns87Quick web search for best practices:88```89web_search: "best [component type] UI patterns 2025"90web_search: "[component type] accessibility requirements WCAG"91web_search: "[component type] responsive design patterns"92```9394Focus on: accessibility requirements for the component type, interaction patterns that work well, content hierarchy approaches, common mistakes to avoid.9596## Step 4: Composition Strategy9798### Composition Lenses99100Instead of aesthetic lenses (the component design equivalent of design-concepts' lens system), select **composition lenses** — different strategies for arranging and presenting the same content within the same design system.101102**Pick 3 lenses from these categories.** Mix across categories for variety.103104#### Layout Lenses105| Lens | Character | Good For |106|------|-----------|----------|107| **Dense/Compact** | Maximum info per pixel, tight spacing, small type | Data-heavy dashboards, list views, power-user tools |108| **Spacious/Editorial** | Generous whitespace, large type, breathing room | Marketing sections, hero areas, onboarding, single-focus |109| **Modular/Grid** | Card grid, uniform modules, scannable | Galleries, dashboards, feature grids, pricing tables |110| **Asymmetric/Featured** | One dominant element + supporting details | Hero + sidebar, featured item + list, media + text |111| **Stacked/Sequential** | Vertical flow, clear reading order, progressive | Forms, timelines, step-by-step, mobile-first content |112113#### Interaction Lenses114| Lens | Character | Good For |115|------|-----------|----------|116| **Static/Informational** | Read-only, clear hierarchy, no interaction needed | Status displays, summaries, reports, confirmation states |117| **Interactive/Explorable** | Hover reveals, click-to-expand, inline actions | Data tables, cards with actions, expandable panels |118| **Progressive/Layered** | Show summary first, reveal detail on demand | Complex data, mobile views, settings with advanced options |119| **Animated/Transitional** | State changes through motion, staggered reveals | Dashboards on load, status changes, gamified UI |120121#### Emphasis Lenses122| Lens | Character | Good For |123|------|-----------|----------|124| **Color-Forward** | Bold use of system colors, colored backgrounds, gradient accents | CTAs, status indicators, branded sections, categories |125| **Typography-Forward** | Size contrast, weight hierarchy, type as design element | Editorial, headings-heavy, text-content sections |126| **Space-Forward** | Whitespace as design element, minimal decoration | Premium feel, single-purpose screens, focus states |127| **Border/Structure** | Visible containers, dividers, outlined elements | Complex layouts, data organization, forms |128129### How to Select Lenses1301311. Review the system audit — what does this design system do well?1322. Consider the component's purpose — a data table and a hero section want very different compositions1333. Pick 3 combinations that produce **meaningfully different components**1344. At least one should be a stretch — unexpected but defensible for this use case1355. Tell the user your lens selections before building136137**Example:**138> For a "care task card" in a system with tiered colors, state progressions, and semantic spacing:139> - **Lens 1: Dense/Compact + Interactive** — Tight card with inline actions, hover-reveal details140> - **Lens 2: Stacked/Sequential + Progressive** — Full-width row that expands to show details141> - **Lens 3: Modular/Grid + Color-Forward** — Color-coded card with status-driven background tiers142143## Step 5: Creating Concepts144145### Ground Rules146147Every concept MUST:148- Use **only** tokens, colors, fonts, and spacing from the existing design system149- Reference actual CSS variable names, Tailwind classes, or token names in annotations150- Work with the project's component library primitives (if shadcn, use shadcn; if custom, extend custom)151- Handle all required states (not just the happy path)152- Meet baseline accessibility (4.5:1 contrast, focus states, semantic HTML)153- Show responsive behavior (or note how it adapts)154155### What Differentiates the 3 Concepts156157Since the aesthetic is fixed by the design system, concepts differ through:158159| Dimension | How It Varies |160|-----------|---------------|161| **Layout** | Grid vs. stack vs. asymmetric vs. table |162| **Information density** | Everything visible vs. progressive disclosure vs. summary-only |163| **Token emphasis** | Which colors are foregrounded, which spacing scale is used |164| **Interaction model** | Static vs. hover-reveals vs. click-to-expand vs. animated transitions |165| **Content priority** | What's biggest/first — title? image? status? action? |166| **State handling** | How empty/loading/error states are communicated |167168### Concept Format169170Concepts are HTML files that use the project's design tokens. Embed the token values directly so the HTML is self-contained and viewable in a browser.171172```html173<!DOCTYPE html>174<html lang="en">175<head>176 <meta charset="UTF-8">177 <meta name="viewport" content="width=device-width, initial-scale=1.0">178 <title>[Component] - Concept [N]: [Lens Name]</title>179 <!-- Load the project's actual fonts -->180 <style>181 /*182 * Design System Tokens (from project's globals.css / tailwind.config)183 * Using actual variable names for traceability184 */185 :root {186 /* Paste relevant tokens here */187 }188189 /* Component styles using only system tokens */190 </style>191</head>192<body>193 <!-- Component with realistic content, not Lorem Ipsum -->194195 <!--196 ANNOTATIONS:197 Explain key composition decisions and which tokens are used where.198 Connect decisions back to the component's purpose.199 -->200201 <!-- Show multiple states: default, hover, active, empty, etc. -->202</body>203</html>204```205206### Per-Concept Requirements207208Each concept MUST include:209- **Lens name** stated explicitly210- **Composition rationale**: Why this layout/interaction/emphasis for this component211- **Token mapping**: Which system tokens are used and where (e.g., "uses --color-brand-orange for status border, spacing-card-md for internal padding")212- **State showcase**: All required states rendered on the same page213- **Responsive notes**: How it adapts (or annotations if the HTML doesn't demonstrate it)214215### Concept Refinement216217After the user picks a direction:218- Refine the chosen concept based on feedback219- Increase fidelity — nail all states, interactions, edge cases220- Prepare for handoff to implementation221- The refined concept HTML should be close enough to the final intent that a developer could implement from it222223## Step 6: In-Situ Preview224225After the user picks a direction and the concept is refined, create an **in-situ preview** — an HTML file that shows the recommended component in the context of the full screen/page where it will live. This is not a pixel-perfect reproduction; it's a simplified representation of the surrounding UI that gives stakeholders a feel for how the component sits within the page.226227### Why In-Situ Matters228229Isolated component previews answer "what does the component look like?" In-situ previews answer "what does the *page* feel like with this component?" — which is what stakeholders actually need to approve. A CTA bar that looks great in isolation might feel cramped when the bottom bar, scrollable content, and header are all present.230231### What to Include232233- **Simplified page chrome**: Header/nav, content area, any fixed elements (bottom bars, sidebars) — represented as gray blocks with labels, not fully detailed234- **Realistic content zone**: Enough real-looking content (text, cards, images as placeholder boxes) to convey scroll position and density235- **The actual component**: Rendered at full fidelity using the refined concept's styles and tokens236- **Phone frame**: Wrap the preview in a device frame (375×812 for mobile, or appropriate viewport) so the proportions are accurate237- **Multiple states**: Show the component in its key states (2-3 frames side by side if the component has distinct phases)238239### What NOT to Include240241- Don't rebuild the entire page — simplified representations of surrounding UI are fine242- Don't add interactive JavaScript — static HTML snapshots of each state243- Don't introduce new design decisions for the surrounding UI — use neutral grays and labels244245### File Naming246247```248docs/design/{component-name}-components-{MMDDYY}/249└── {component-name}-in-situ.html250```251252### Template Structure253254```html255<!-- Device frame with realistic viewport proportions -->256<div class="device-frame" style="width: 375px; height: 812px; ...">257 <!-- Simplified header/nav -->258 <div class="page-header">...</div>259260 <!-- Scrollable content area (enough to show context) -->261 <div class="page-content">...</div>262263 <!-- THE COMPONENT — full fidelity from refined concept -->264 <div class="component-zone">...</div>265266 <!-- Any other fixed elements (bottom bars, etc.) -->267 <div class="fixed-bottom">...</div>268</div>269```270271Show 2-3 device frames side by side for key states (e.g., Phase 1 and Phase 2).272273## Step 7: Presentation274275### File Organization276277```278docs/design/{component-name}-components-{MMDDYY}/279├── {component-name}-concept-1-{lens-name}.html280├── {component-name}-concept-2-{lens-name}.html281├── {component-name}-concept-3-{lens-name}.html282└── {component-name}-overview.md283```284285**Component Name Guidelines:**286- Use kebab-case (lowercase with hyphens)287- Be specific: `care-task-card`, `service-hero-section`, `settings-panel`, `activity-dashboard`288- Ask the user for the name if not obvious from context289290### Overview Document291292**File**: `{component-name}-overview.md`293294```markdown295# [Component Name] — Design Concepts296297## Component Purpose298[What this component does, where it lives, who uses it]299300## Design System Context301- **Project**: [project name]302- **Token source**: [globals.css, tailwind.config, etc.]303- **Key tokens used**: [list the most relevant colors, spacing, typography tokens]304- **Existing patterns referenced**: [similar components in the codebase]305306## Concept 1: [Name] — [Lens Combination]307**Composition**: [Layout + Interaction + Emphasis lens]308**Approach**: [How this arranges content and why]309**Strengths**: [What this does well for the component's purpose]310**Tradeoffs**: [What this sacrifices — density vs. clarity, simplicity vs. power]311**Tokens highlighted**: [Which system tokens are most prominent]312313## Concept 2: [Name] — [Lens Combination]314...315316## Concept 3: [Name] — [Lens Combination]317...318319## Recommendation320[Which concept best serves the component's purpose and why]321322## Next Steps323- [ ] Gather feedback on the 3 directions324- [ ] Refine chosen concept with [specific details]325- [ ] Hand off to implementation326```327328## Quality Criteria329330### Excellent Component Concepts:331- **System-native**: Could not exist outside this specific design system — tokens are visible in the design332- **Compositionally distinct**: Each concept arranges information and interaction differently, not just color-swapped333- **State-complete**: Shows all required states, not just the happy path334- **Realistic content**: Uses actual or realistic data, not "Title Here" / "Description text"335- **Annotated**: Key composition decisions are explained with WHY, tied to component purpose336- **Accessible**: Color contrast meets 4.5:1, focus states exist, semantic HTML structure337- **Responsive-aware**: Either demonstrates responsive behavior or clearly annotates how it adapts338- **Traceable**: Annotations reference actual token names from the system audit339340### Red Flags:341- Concepts that introduce colors, fonts, or spacing not in the design system342- Three concepts that only differ in border-radius or shadow343- Missing states (especially empty and error)344- Placeholder content hiding layout problems345- No reference to actual system tokens346347## Common Pitfalls348349### Escaping the System350**Problem**: "This would look better with a different font" — introducing off-system values351**Instead**: Find variety within the system. If the system only has one font, vary weight, size, case, and spacing. Constraints breed creativity.352353### Surface-Level Variation354**Problem**: Three concepts that are the same layout with different colored headers355**Instead**: Change the layout structure, the interaction model, or the information hierarchy. A card and a list row are fundamentally different even if they show the same data.356357### Happy-Path-Only Design358**Problem**: Concepts only show the component with perfect data359**Instead**: Design the empty state, the loading state, the error state, the overflow state. These reveal whether the composition actually works.360361### Ignoring What Already Exists362**Problem**: Designing a card without looking at the project's existing cards363**Instead**: Read existing components first. Extend patterns rather than inventing new ones. If the project uses shadows on cards, don't switch to borders without reason.364365### Over-Annotating the Obvious366**Problem**: "This uses padding because padding creates space"367**Instead**: Annotate the non-obvious — why this token over another, why this layout over the simpler option, why this state treatment connects to the component's purpose.368369## Integration Points370371### Inputs372- **Design System**: globals.css, tailwind.config, existing components (REQUIRED)373- **Design Research**: Personas, user needs, interaction preferences (if available)374- **Design Concepts**: If a visual direction was already chosen, component design extends that direction375- **Product Requirements**: What the component needs to do, what data it handles376377### Outputs378- **Implementation**: HTML concepts close enough to code from directly379380### Related Skills381- **design-system-init**: Use first if no design system exists yet382- **design-concepts**: Use instead if you need a new visual direction, not a new component383384## Validation Checklist385386Before delivering component concepts, verify:387- [ ] Read the project's design system files (globals.css, tailwind.config, component library)388- [ ] Cataloged available tokens (colors, typography, spacing, animation, components)389- [ ] Gathered component brief (purpose, context, content, states, responsive needs)390- [ ] Researched accessibility requirements for this component type391- [ ] Selected 3 composition lenses appropriate to the component's purpose392- [ ] Each concept uses ONLY tokens from the existing design system393- [ ] Each concept differs in layout, interaction, or information hierarchy (not just color)394- [ ] Each concept shows all required states (empty, loading, error, populated, hover)395- [ ] Used realistic content, not placeholders396- [ ] Verified color contrast meets 4.5:1 minimum397- [ ] Annotated key decisions with token references and rationale398- [ ] Created overview document comparing concepts with recommendation399- [ ] Created in-situ preview showing recommended concept in page context
Run npx skillmds@latest add mevans2120/design-components in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Designs components and sections within an existing design system. Creates 3 composition variations that use the project's actual tokens, colors, typography, and component primitives. Use when user says "design a component", "component variations", "design a card", "design a hero", "design a section", "component options", "design within our system", "new component", "component concept", or wants to explore how a component could look using their existing design system. Also use when designing larger composed sections (dashboards, settings pages, feature panels) that build on existing primitives. Do NOT use when the project has no design system yet (use design-system-init), or when exploring entirely new visual directions (use design-concepts). It is listed under Design & Media on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
mevans2120 (@mevans2120) published this skill. Their other Agent Skills are listed on their SkillMD profile.