Individual skill
shadcn
shadcn/ui components on Radix or Base UI.
skills/shadcn/SKILL.md
Source commit b210600fdf49441ee1efeca2cbdc05599ec03019
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- Yes
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Network or broad shell
- Last checked
- Nov 6, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 42
- Repository last updated
- Nov 4, 2026
- License
- MIT
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- agent-skills Repository topic
- ai-agents Repository topic
- ai-coding-assistant Repository topic
- claude-code Repository topic
- codex Repository topic
- cursor Repository topic
- frontend Repository topic
- nextjs Repository topic
- opencode Repository topic
- react Repository topic
- design Derived category
- design-interface Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
SKILL.mdcore · 7,540 bytesSKILL.mdcore · 7,540 bytesreferences/ally-ensure-color-contrast.mddoc · 1,696 bytesreferences/ally-maintain-focus-management.mddoc · 2,057 bytesreferences/ally-preserve-aria-attributes.mddoc · 2,275 bytesreferences/ally-preserve-keyboard-navigation.mddoc · 2,017 bytesreferences/ally-provide-sr-only-labels.mddoc · 1,877 bytesreferences/arch-current-cli-registry.mddoc · 2,256 bytesreferences/arch-extend-variants-with-cva.mddoc · 1,982 bytesreferences/arch-forward-refs-for-composable-components.mddoc · 2,337 bytesreferences/arch-isolate-component-variants.mddoc · 2,228 bytesreferences/arch-preserve-radix-primitive-structure.mddoc · 1,653 bytesreferences/arch-unified-radix-package.mddoc · 1,777 bytesreferences/arch-use-asChild-for-custom-triggers.mddoc · 1,568 bytesreferences/arch-use-cn-for-class-merging.mddoc · 1,713 bytesreferences/comp-combine-command-with-popover.mddoc · 3,142 bytesreferences/comp-compose-with-compound-components.mddoc · 3,065 bytesreferences/comp-create-reusable-form-fields.mddoc · 3,902 bytesreferences/comp-nest-dialogs-correctly.mddoc · 3,208 bytesreferences/comp-use-drawer-for-mobile-modals.mddoc · 3,387 bytesreferences/comp-use-slot-pattern-for-flexibility.mddoc · 3,243 bytesreferences/data-empty-states-with-guidance.mddoc · 2,927 bytesreferences/data-paginate-server-side.mddoc · 3,149 bytesreferences/data-use-skeleton-loading-states.mddoc · 2,760 bytesreferences/data-use-tanstack-table-for-complex-tables.mddoc · 3,167 bytesreferences/data-virtualize-large-lists.mddoc · 2,425 bytesreferences/form-handle-async-validation.mddoc · 2,755 bytesreferences/form-reset-form-state-correctly.mddoc · 2,318 bytesreferences/form-show-validation-errors-correctly.mddoc · 1,756 bytesreferences/form-use-react-hook-form-integration.mddoc · 3,144 bytesreferences/form-use-zod-for-schema-validation.mddoc · 2,629 bytesreferences/perf-avoid-unnecessary-rerenders-in-forms.mddoc · 2,618 bytesreferences/perf-debounce-search-inputs.mddoc · 2,473 bytesreferences/perf-lazy-load-heavy-components.mddoc · 2,545 bytesreferences/perf-memoize-expensive-renders.mddoc · 2,421 bytesreferences/perf-optimize-icon-imports.mddoc · 1,897 bytesreferences/state-colocate-state-with-components.mddoc · 2,837 bytesreferences/state-lift-state-to-appropriate-level.mddoc · 2,622 bytesreferences/state-prefer-uncontrolled-for-simple-inputs.mddoc · 2,520 bytesreferences/state-use-controlled-dialog-state.mddoc · 3,330 bytesreferences/style-avoid-important-overrides.mddoc · 1,857 bytesreferences/style-consistent-spacing-scale.mddoc · 1,912 bytesreferences/style-dark-mode-support.mddoc · 2,221 bytesreferences/style-responsive-design-patterns.mddoc · 2,593 bytesreferences/style-use-css-variables-for-theming.mddoc · 1,764 bytesreferences/style-use-tailwind-theme-extend.mddoc · 1,936 bytes
Read excerpt
# shadcn/ui Community Best Practices
Current best-practices guide for shadcn/ui applications. Before applying primitive-specific guidance, inspect whether the checked-in components use Radix UI or Base UI; current shadcn supports both (Base UI is the default for new projects) and their composition APIs differ. Component installs and upgrades go through the current CLI (v4), which resolves namespaced registries.
## When to Apply
Reference these guidelines when:
- Writing new shadcn/ui components or composing primitives
- Implementing forms with React Hook Form and Zod validation
- Building data tables or handling large dataset displays
- Customizing themes or adding dark mode support
- Reviewing code for accessibility compliance
## Rule Categories by Priority