UIPackage

Setup

Get the React registry working in a fresh Next.js project in four steps.

01

Install Tailwind v4 + TypeScript

The shadcn CLI preflight needs a Tailwind v4 setup. Add it plus typescript, then create an entry CSS that imports Tailwind.


                  npm install -D tailwindcss @tailwindcss/vite typescript
                
02

Add components.json

Create components.json at the project root and register the named registry so you can install by alias.


                  {
  "registries": { "@uipkge-react": "https://react.uipkge.dev/r/react/{name}.json" }
}
                
03

Bootstrap tokens + helpers

Pull the Tailwind OKLCH tokens, the cn() helper, and the theme provider in one shot.

$ npx shadcn@latest add https://react.uipkge.dev/r/react/init.json

Or with the named registry: npx shadcn@latest add @uipkge-react/init

04

Add any component

Copy the source into your project — you own it, no semver, edit freely.

$ npx shadcn@latest add https://react.uipkge.dev/r/react/button.json

Or with the named registry: npx shadcn@latest add @uipkge-react/button