leonanpereirapinto/ai-utils/shadcn
Claude Code and agent skill by leonanpereirapinto/ai-utils
- community
Checking that the SKILL.md file is still in the repository.
Best practices for building UI components with shadcn/ui. Use when creating, customizing, or styling components with shadcn, working with Radix UI primitives, implementing design tokens, or following compound component patterns.
Install
npx vskill@latest install leonanpereirapinto/ai-utils/shadcnSKILL.md
Shadcn UI Developer Guide
This skill provides guidelines, patterns, and best practices for working with shadcn/ui components in this project.
Quick Start
- Core Patterns: Read
references/patterns.mdfor comprehensive styling, theming, and component patterns. - Tailwind Integration: For Tailwind CSS patterns, use the
tailwindcssskill.
Core Philosophy
- Ownership: Shadcn is copy-paste, not a dependency - you own the code.
- Customization: Components are meant to be modified for your needs.
- Accessibility: Built on Radix UI primitives for proper accessibility.
- Flexibility: Styled with Tailwind CSS for easy customization.
Critical: Design Token Usage
Always use design system tokens for theme switching compatibility:
Required tokens:
- Backgrounds:
bg-background,bg-card,bg-muted,bg-popover - Text:
text-foreground,text-muted-foreground,text-card-foreground - Borders:
border-border,border-input,border-ring - Actions:
bg-primary text-primary-foreground,bg-secondary text-secondary-foreground - States:
bg-destructive text-destructive-foreground,bg-accent text-accent-foreground
Never use explicit colors like bg-white, text-black, border-gray-200 - they break theme switching.
Common Tasks
Adding Components
Use the CLI to add components, then customize as needed:
Extending Components
Add custom props and variants while preserving accessibility:
Compound Components
Always use separate exports, NOT namespaced properties:
Preserving Accessibility
Never remove Radix UI's accessibility attributes:
Theming
Use CSS variables for all color values in globals.css:
Validation Checklist
Before finishing a task involving shadcn/ui:
- [ ] Verify all colors use design tokens, not explicit values.
- [ ] Ensure accessibility attributes from Radix UI are preserved.
- [ ] Test keyboard navigation works correctly.
- [ ] Use separate exports for compound components (not namespaced).
- [ ] Run type checks (
pnpm run typecheck) and tests (pnpm run test).
For comprehensive patterns, component examples, and detailed guidelines, read references/patterns.md.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/typescript/shadcn/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/leonanpereirapinto/ai-utils/shadcn)