Installation
Add the theme once, then the components you need.
Install the packages
Install the theme, then the components you need along with their peers:
bun add @charlotte-ui/theme @charlotte-ui/button framer-motion radix-ui lucide-reactImport the theme
Import the theme after Tailwind CSS v4:
@import "tailwindcss";
@import "@charlotte-ui/theme";The theme also registers every installed @charlotte-ui package with Tailwind's
class scanner, which otherwise skips node_modules.
With pnpm's isolated layout the packages aren't siblings on disk, so add the source yourself. The path is relative to your CSS file:
@source "../node_modules/@charlotte-ui";Use a component
import { Button } from "@charlotte-ui/button"
export function Example() {
return <Button>Ship update</Button>
}