Installation
Set up a project once, then add components one at a time.
Requirements
React 19, Tailwind CSS v4, and TypeScript. Next.js, Vite, and React Router all work.
Set up shadcn
If your project doesn't have a components.json yet, initialize it:
npx shadcn@latest initAdd a component
Each component has its own URL in the registry. The CLI installs its dependencies and any components it builds on.
$
pnpm dlx shadcn@latest add https://lodeui.com/r/button.jsonTo use short names, add the registry to components.json, then run npx shadcn@latest add @lode/button.
components.json
{
"registries": {
"@lode": "https://lodeui.com/r/{name}.json"
}
}Manual installation
Install the shared dependencies and add the cn helper:
npm install motion lucide-react clsx tailwind-mergelib/utils.ts
import { clsx, type ClassValue } from "clsx";
import { twMerge } from "tailwind-merge";
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}Then copy a component's source from the Installation section of its page.
Lode222 doc pagesllms.txt