shadcn/ui Models & Component Parity
How create-modern-mern-app delivers exact, 100% parity with official shadcn/ui models (New York style) with complete offline bundling.
1. Bundled Official Models
The CLI generator writes production-tested New York templates directly into your client workspace.
dashboard-01
4 metric cards with Tabler icons, interactive Recharts AreaChart, and TanStack React Table with drag-and-drop sortable rows.
login-01
Card wrapper with FieldGroup, FieldLabel, input validation, and password recovery placeholders.
signup-01
Full name, email, password, and confirmation with instant client-side password matching validation.
2. Official `components.json` Configuration
The scaffolded project includes a pre-configured components.json with all necessary path aliases. You can run npx shadcn@latest add <component> without manual directory prompts:
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "new-york",
"rsc": false,
"tsx": true,
"tailwind": {
"config": "",
"css": "src/index.css",
"baseColor": "neutral",
"cssVariables": true,
"prefix": ""
},
"iconLibrary": "lucide",
"aliases": {
"components": "@/components",
"utils": "@/lib/utils",
"ui": "@/components/ui",
"lib": "@/lib",
"hooks": "@/hooks"
}
}3. Adding More shadcn Primitives
Because the CLI configures official path aliases and Tailwind v4 themes out of the box, extending your UI is seamless:
cd client
npx shadcn@latest add dialog
npx shadcn@latest add dropdown-menu
npx shadcn@latest add table
npx shadcn@latest add avatar