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)

  1. Prerequisites. A React project on Tailwind CSS v4 (Vite, Next.js, React Router…) with a components.json and an @/* path alias. If you don't have one yet, run:

    npx shadcn@latest init
  2. Add a component. Every component page has its exact command. For example:

    npx shadcn@latest add https://www.framekitui.live/r/loop-flight-send-button.json

    The 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 as motion and lucide-react, and merges the Framekit colour tokens into your CSS when a component uses them.

  3. Register the @framekit namespace (optional) in components.json, then install by name:

    {
      "registries": {
        "@framekit": "https://www.framekitui.live/r/{name}.json"
      }
    }
    npx shadcn@latest add @framekit/ghost-gobbler-skull @framekit/magnetic-button

    The 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

  1. Install peer dependencies:
    npm install motion clsx tailwind-merge lucide-react
  2. Add the cn helper to lib/cn.ts and the shared hooks a component imports.
  3. Enable class-based dark mode and the Framekit tokens in your global CSS (see Theming).
  4. Open any component page, switch to the Code tab, and paste into components/ui/.