Installation
Install @krackedui/motion from npm, import one stylesheet and wrap your UI in <Theme>. Tailwind is not required.
Setup
Install the package (React 19):
Import the styles once, in your app entry or root layout:
Wrap your UI in <Theme>. It applies Motion’s fonts, colors and appearance; menus and dialogs follow it automatically:
Next.js (App Router)
Import the CSS in app/layout.tsx and render <Theme asChild> around <body>. Components work from server components. In a server file, use the flat names of compound parts (MenuRoot, MenuItem, DialogContent, SidebarItem…) instead of Menu.Root.
Tailwind v4 apps (optional)
To use Motion’s tokens as utilities in your own code (bg-n-bg-secondary, text-n-text-secondary, rounded-n-lg…), import the Tailwind build instead of styles.css:
Start from a template
Or start a whole app from one of Motion’s templates:
Copy the source instead
Prefer owning the code? Every component page has a **Copy the source** section with a one-line npx shadcn add command that drops the component and everything it imports into your project.