Getting started
Installation
Two minutes from an empty project to your first animated component.
Start with a Tailwind project
Any React framework works: Next.js, Vite, React Router, Astro. If you have not set up shadcn yet, initialise it once. It adds the theme tokens and the
cnhelper the components rely on.$pnpm dlx shadcn@latest initAdd a component
Every component page shows its own command. For example:
$pnpm dlx shadcn@latest add "https://pixelpapa.com/r/magnetic-button.json"The CLI writes the file to
components/pixelpapa/and installsmotionandlucide-reactif the component needs them.Use it
Each file also default-exports a demo. Keep it as a reference or delete it once you have wired the component in.
Shorter commands with a namespace
Add the registry to components.json once and install by name with shadcn add @pixelpapa/magnetic-button.
Unlimited components
Components and site templates marked Unlimited need an Unlimited plan. The CLI signs in with an API key:
- Create a key on the API & Settings page and save it in your project's
.env.localasPIXELPAPA_API_KEY=pp_live_…. - Add the registry with the key to
components.json:
Then install any component by name, for example npx shadcn@latest add @pixelpapa/hero-before-after-toggle. Free components install the same way.
Requirements
- React 18 or 19.
- Tailwind CSS v4. Components use v4 syntax such as
size-*, container-free arbitrary values and@themetokens. - The shadcn colour tokens (
--background,--foreground,--primary,--muted,--border,--cardand friends). The Theme Builder tool can generate a set. - Interactive components are marked
"use client", so they work in Server Component frameworks without changes.