Documentation
Getting started
Get up and running with Interract in under a minute.
- 1
Initialize shadcn
In any Next.js + Tailwind project.
$ npx shadcn@latest init - 2
Add a component
Point the CLI at the Interract registry.
$ npx shadcn@latest add "https://interract.dev/r/button.json" - 3
Import and use
It’s plain TSX in your repo now.
import { Button } from "@/components/ui/button"
Theming
Components read a small set of CSS variables. Override them in globals.css under :root and .dark. Shadows are re-tuned per theme, not inverted.
--surface
Card and control backgrounds
--surface-2
Recessed wells and hover fills
--line
Hairline rules and grid gaps
--sh-btn
Buttons, chips and inputs
--sh-soft
Resting cards
--sh-raised
Elevated blocks and panels