shadcn

Standardize shadcn/ui component installation, composition, and refactoring in React codebases.

3|2|Updated Mar 25, 2026
One-click install
npx skills add https://github.com/zaid-khan-code/learnHub-ai-powered-online-learning-platform-lms --skill shadcn-zaid-khan-code
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: shadcn
Source: https://github.com/zaid-khan-code/learnHub-ai-powered-online-learning-platform-lms/tree/main/.agents/skills/shadcn
Command: npx skills add https://github.com/zaid-khan-code/learnHub-ai-powered-online-learning-platform-lms --skill shadcn-zaid-khan-code

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

It removes guesswork when building or updating shadcn/ui interfaces by encoding installation, composition, accessibility, theming, and state-management conventions in one place.

Core Features & Use Cases

It helps you choose the right Radix-based component pattern, preserve ARIA and keyboard behavior, apply CSS-variable theming and dark mode correctly, and keep icon imports and spacing conventions consistent. It also supports common production workflows such as form building, dialog composition, dashboard cards, navigation layouts, loading states, and reusable component abstractions. For example, when creating a settings form or dashboard widget, it guides you toward the correct shadcn primitives and avoids brittle custom markup.

Quick Start

Ask the shadcn skill to generate or refactor your React component using the project’s current preset, accessibility rules, and theming conventions.

Frequently Asked Questions about shadcn

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I standardize shadcn/ui component installation and composition in a React codebase?

To standardize shadcn/ui component installation, you encode preset-aware APIs, accessibility rules, and CSS-variable theming conventions in one place. This removes guesswork by enforcing Radix composition rules, icon import conventions, and consistent spacing across your project.

What is the best way to preserve ARIA and keyboard behavior when building shadcn forms?

The best way to preserve ARIA and keyboard behavior in shadcn forms is to use Radix-based component patterns that encode accessibility-preserving wiring and form-state validation. This ensures correct primitives are selected for settings forms and dashboard widgets without brittle custom markup.

Can I use this approach to apply CSS-variable theming and dark mode in Next.js apps?

Yes, you can use this approach to apply CSS-variable theming and dark mode in Next.js apps. It standardizes theming conventions and layout patterns, ensuring consistent dark mode application across data display components and dashboard interfaces.

Does this method support dialog composition and loading states for data display patterns?

Yes, this method supports dialog composition and loading states for data display patterns. It guides production workflows including form building, dashboard cards, navigation layouts, and reusable component abstractions using correct shadcn primitives.

Why does refactoring shadcn components often break accessibility and spacing conventions?

Refactoring shadcn components breaks accessibility and spacing conventions when preset-aware APIs and Radix composition rules are ignored. By encoding icon import conventions and ARIA wiring rules, this approach prevents brittle custom markup during interface updates.