A skill for Claude Code that generates high-quality UI components using best practices from component.gallery, with cross-references to Material Design, Atlassian DS, and Carbon (IBM).
- Generates UI components in Tailwind CSS or native CSS based on context
- Decides automatically which approach to use (rules included)
- Fixes common AI spacing mistakes: box model, margin collapse, Flexbox errors
- References how Material, Atlassian and Carbon solve each component
- Fetches live data from component.gallery via
web_searchfallback - Framework-agnostic: React, HTML, Vue — works with any stack
npx skills add nicolas-deyros/component-gallery-skillOr globally (available in all your projects):
npx skills add nicolas-deyros/component-gallery-skill -gJust ask Claude to create a component:
Create a button component with primary, secondary and danger variants
Build an accordion for a FAQ section
Make a modal dialog with a form inside
Create a data table with sortable columns
The skill automatically:
- Looks up the canonical name and alternatives from component.gallery
- Decides Tailwind vs CSS native based on your project context
- Applies visual rules (spacing, box model, Flexbox, z-index scale)
- Delivers the component with variants, states, and accessibility notes
- Shows how Material, Atlassian and Carbon solve the same component
Button · Icon Button · Button Group · Toggle Button · Split Button · FAB
Input / Text Field · Textarea · Select · Combobox · Checkbox · Radio · Switch · Slider · Date Picker · File Upload · Search
Navbar · Sidebar · Tabs · Breadcrumb · Pagination · Stepper · Link · Menu
Modal · Tooltip · Popover · Toast · Alert · Spinner · Skeleton · Progress Bar
Card · Accordion · Table · List · Avatar · Badge / Tag / Chip · Empty State · Carousel · Tree View · Rating · File Attachment
Header · Footer · Segmented Control · Rich Text Editor
| Design System | Source |
|---|---|
| Material Design 3 | m3.material.io |
| Atlassian Design System | atlassian.design |
| Carbon (IBM) | carbondesignsystem.com |
component-gallery-skill/
├── SKILL.md ← Orchestrator + CSS/Tailwind rules (always in context)
└── references/
├── components.md ← ~40 components with variants, states, accessibility
├── material.md ← Material Design 3 reference
├── atlassian.md ← Atlassian DS reference
└── carbon.md ← Carbon IBM reference
Reference files are loaded on demand — only what's needed for each request, keeping context lean.
The skill explicitly corrects the most common AI spacing mistakes:
- Semantic spacing — padding belongs to the component, margin to the layout
- No margin collapse —
gapovermarginfor sibling elements - Explicit box model —
box-sizing: border-boxalways declared in native CSS - Correct Flexbox —
shrink-0only on icons/avatars,gapnotmarginfor alignment - Fixed heights — buttons use
heightnotmin-height + padding-y - z-index scale — dropdown 100 · sticky 200 · overlay 300 · modal 400 · toast 500 · tooltip 600
Works with Claude Code and any agent supported by skills.sh.
MIT