A portfolio-style showcase for nucleusUI — an open-source collection of polished, playful UI components built on top of shadcn/ui.
🔗 Repository: github.com/devHashir1/nucleus-ui
- Next.js 16 (App Router, TypeScript)
- Tailwind CSS v4 + shadcn/ui (Base UI primitives)
- next-themes for dark/light mode
- framer-motion for subtle card motion
- react-hook-form + zod for the form example
# 1. Install dependencies
npm install
# 2. Start the dev server
npm run devOpen http://localhost:3000 to see the site.
app/ # App Router pages
page.tsx # Homepage (hero + registry-driven grid)
components/[slug]/ # Component detail pages
components/
ui/ # Raw shadcn primitives (installed via CLI)
nucleus/ # Branded wrappers (NucleusButton, NucleusInput, …)
lib/
registry.tsx # Component metadata — drives the homepage grid
- Add the shadcn primitive:
npx shadcn@latest add <component> - Create a branded wrapper in
components/nucleus/(prefix:Nucleus*) - Register it in
lib/registry.tsx— the homepage grid and/components/[slug]page are generated from this array, so nothing is hardcoded.
| Command | Description |
|---|---|
npm run dev |
Start dev server |
npm run build |
Production build |
npm run start |
Serve production build |
npm run lint |
Run ESLint |
Deployable to Vercel out of the box — import the repo and click deploy. No environment variables required.
MIT