laguagu/claude-code-nextjs-skills / skills/nextjs-shadcn
nextjs-shadcn
VerifiedBuilds distinctive Next.js interfaces with shadcn/ui, choosing typography, styling and purposeful visual effects for the product. Use when creating or polishing a Next.js + shadcn app, page or component, including themes, presets, backgrounds and design-system lint. Uses frontend-design for substantial visual direction, icons for asset sourcing and shadcn for component installation, registries and CLI details.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 5.9 KB |
| references/architecture.md | markdown | 3.3 KB |
| references/project-setup.md | markdown | 2.6 KB |
| references/shadcn-platform.md | markdown | 3.8 KB |
| references/sidebar.md | markdown | 2.2 KB |
| references/styling.md | markdown | 7.9 KB |
references/project-setup.md
View on GitHub# Scaffolding and presets
## New project
The shadcn CLI can scaffold a Next.js app. Pass a project name and a style or preset code; without them `init` stops at interactive prompts:
```bash
bunx --bun shadcn@latest init --template next --base base --preset <style> --name <app> --no-monorepo
```
`<style>` is a named style such as `nova` or `vega`; [styling.md](styling.md) lists them.
For a chosen visual system, obtain a preset code from [shadcn/create](https://ui.shadcn.com/create):
```bash
bunx --bun shadcn@latest init --preset <CODE> --template next --base <base|radix|aria> --name <app>
```
Pass the code through unchanged. Preset codes do not carry the primitive base, so pass `--base`; without it the CLI uses Base UI. Use the CLI's `preset decode` command when you need to inspect it. Choose fonts, style and primitive base for the product; retain an existing project's base.
For example, `b0` selects Nova, neutral colors, Lucide and Inter, with headings inheriting the body font:
```bash
bunx --bun shadcn@latest init --preset b0 --template next --base base --name <app>
```
This is an installation example, not the preset to use for every product. Choose the code for the brief in [shadcn/create](https://ui.shadcn.com/create); the available styles, fonts and icon families are summarized in [styling.md](styling.md).
Keep Bun in the scaffolded project's package setup and record the convention in its agent instructions so later sessions retain it. Preserve any framework-generated instruction block when adding that local rule.
Use `@/` as the import alias for a new standalone app unless the project calls for another convention. Follow configured aliases and shared-package boundaries in existing apps and monorepos.
## Existing project
Inspect `components.json`, theme CSS, installed components and package metadata before changing them. Use the `shadcn` skill for current CLI details.
`apply <CODE>` changes an existing project's preset; `--only theme` limits it to the theme. Preview changes where supported and review the generated diff, especially before replacing customized components.
For components, use the project's package runner with `shadcn add`. Install animation, AI, form or icon dependencies only when the feature calls for them.
## Monorepos
Follow the repository's app/shared-UI boundaries and task runner. Use the CLI's `--monorepo` option when scaffolding a monorepo, and run component changes in the appropriate app or package.
Run the generated or existing scripts for development, lint, types and build. There is no universal directory tree or test runner to impose on an established project.
Source: [shadcn CLI](https://ui.shadcn.com/docs/cli).
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |