Installation
Install components with the shadcn CLI registry — or copy-paste them by hand.
Framekit UI ships as a shadcn registry: the shadcn CLI copies a component's source (plus the shared helpers, theme tokens and npm dependencies it needs) straight into your project.
Option A: shadcn CLI (recommended)
Prerequisites. A React project on Tailwind CSS v4 (Vite, Next.js, React Router…) with a
components.jsonand an@/*path alias. If you don't have one yet, run:npx shadcn@latest initAdd a component. Every component page has its exact command. For example:
npx shadcn@latest add https://www.framekitui.live/r/loop-flight-send-button.jsonThe CLI writes
components/ui/loop-flight-send-button.tsx, adds the helpers it imports (lib/cn.ts,lib/use-reduced-motion.ts…), installs npm dependencies such asmotionandlucide-react, and merges the Framekit colour tokens into your CSS when a component uses them.Register the
@framekitnamespace (optional) incomponents.json, then install by name:{ "registries": { "@framekit": "https://www.framekitui.live/r/{name}.json" } }npx shadcn@latest add @framekit/ghost-gobbler-skull @framekit/magnetic-buttonThe full index lives at /r/registry.json.
Step-by-step version with requirements, Next.js notes and troubleshooting: How to install animated React components with the shadcn CLI.
Option B: manual copy-paste
- Install peer dependencies:
npm install motion clsx tailwind-merge lucide-react - Add the
cnhelper tolib/cn.tsand the shared hooks a component imports. - Enable class-based dark mode and the Framekit tokens in your global CSS (see Theming).
- Open any component page, switch to the Code tab, and paste into
components/ui/.