shadcn

shadcn/ui component library conventions.

⭐1stars🔀0forks📁View on GitHub🕐Updated Jan 3, 2026

When & Why to Use This Skill

This Claude skill optimizes the generation and maintenance of UI components by enforcing shadcn/ui library conventions. It ensures React code in JSX and TSX files remains clean, accessible, and performant by automatically applying specific styling and structural best practices tailored for modern frontend development.

Use Cases

  • Building Accessible UI: Automatically ensures that form components like <Label> and <Input> follow modern React patterns, avoiding legacy attributes to improve accessibility and code cleanliness.
  • Streamlining Component Styling: Optimizes button layouts by removing redundant inner icon margins, ensuring a pixel-perfect UI without manual CSS overrides.
  • Frontend Code Standardization: Enforces consistent shadcn/ui implementation across large-scale React projects, reducing technical debt and ensuring all developers follow the same component library standards.
nameshadcn
descriptionshadcn/ui component library conventions.
pattern\.(jsx|tsx)(\s|$)
  • Avoid for= and id= in
  • No need for margins (mr-,ml-) in inner icons