nextjs-shadcn

Solid

Creates Next.js frontends with shadcn/ui. Use when building React UIs, components, pages, or applications with shadcn, Tailwind, or modern frontend patterns. Also use when the user asks to create a new Next.js project, add UI components, style pages, or build any web interface — even if they don't mention shadcn explicitly.

Web & Frontend 60 stars 19 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 87/100

Stars 20%
59
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Next.js + shadcn/ui Build distinctive, production-grade interfaces that avoid generic "AI slop" aesthetics. ## Core Principles 1. **Minimize noise** - Icons communicate; excessive labels don't 2. **No generic AI-UI** - Avoid purple gradients, excessive shadows, predictable layouts 3. **Context over decoration** - Every element serves a purpose 4. **Theme consistency** - Use CSS variables from `globals.css`, never hardcode colors ## Quick Start ```bash bunx --bun shadcn@latest init -t next ``` For a custom design system, generate a preset code in `shadcn/create` and apply it: ```bash bunx --bun shadcn@latest init --preset <CODE> --template next ``` ## Component Rules ### Page Structure ```tsx // page.tsx - content only, no layout chrome export default function Page() { return ( <> <HeroSection /> <Features /> <Testimonials /> </> ); } // layout.tsx - shared UI (header, footer, sidebar) export default function Layout({ children }: { children: React.ReactNode }) { return ( <> <Header /> <main>{children}</main> <Footer /> </> ); } ``` ### Client Boundaries - `"use client"` only at leaf components (smallest boundary) - Props must be serializable (data or Server Actions, no functions/classes) - Pass server content via `children` ### Import Aliases Always use `@/` alias (e.g., `@/lib/utils`) instead of relative paths (`../../lib/utils`). ### Styl...

Details

Author
laguagu
Repository
laguagu/claude-code-nextjs-skills
Created
7 months ago
Last Updated
yesterday
Language
TypeScript
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category