shadcn

Configure shadcn/ui components and theming across Next.js, Vite, and Astro projects.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/namhoangg/agent-starter-kit --skill shadcn-namhoangg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: shadcn
Source: https://github.com/namhoangg/agent-starter-kit/tree/main/cursor/skills/shadcn
Command: npx skills add https://github.com/namhoangg/agent-starter-kit --skill shadcn-namhoangg

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

shadcn/ui setup and usage can be intricate due to interactive prompts, base library choices, and registry workflows. This skill provides expert guidance, best practices, and AI agent-ready instructions to configure shadcn/ui accurately across frameworks.

Core Features & Use Cases

  • Guidance for initializing shadcn/ui with non-interactive defaults to support CI agents.
  • Step-by-step instructions for adding components, updating theming, and configuring registries.
  • Framework coverage: Next.js, Vite, React Router, Astro, Laravel, TanStack Start, and AI Elements compatibility.
  • Tips for migrating from base-ui to radix if needed.

Quick Start

Initialize a project with the shadcn CLI in defaults mode and then extend it by adding components and configuring registries.

Frequently Asked Questions about shadcn

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

FAQPage Schema
How do I initialize shadcn/ui non-interactively for CI agents?

To initialize shadcn/ui non-interactively for CI agents, you can run the CLI in defaults mode to bypass interactive prompts and automatically apply base and radix theming configurations.

What's the best way to add and configure components in shadcn/ui?

The best way to add and configure shadcn/ui components is by using the CLI to register components, update theming defaults, and configure registries according to CLI v4 patterns.

Does shadcn/ui work with Vite, Astro, and Laravel projects?

Yes, shadcn/ui works across Next.js, Vite, React Router, Astro, Laravel, and TanStack Start projects, providing framework-specific guidance for initialization and component registration.

How do I migrate from base-ui to radix in shadcn/ui?

To migrate from base-ui to radix in shadcn/ui, follow the provided expert guidance to transition your theming defaults and component patterns to align with radix options.

Why does shadcn/ui setup require specific base library choices?

shadcn/ui setup requires specific base library choices because the framework relies on base and radix options for theming defaults, ensuring proper component styling and registry alignment.

Can I use shadcn/ui with TanStack Start and AI Elements?

Yes, you can use shadcn/ui with TanStack Start and AI Elements, as the configuration guidance ensures compatibility across these frameworks for UI initialization and theming.