# Cozy UI — full reference
Cozy UI is an open-source (MIT) set of 42 chunky, toy-like React components for shadcn/ui and game UI: buttons you can press, a built-in game kit (inventory with drag and drop, character sheet, collectible cards, world map and minimap, shop and wallet, perks, skill tree), five palettes, Liquid Glass, springy motion and a full data table. Built on Radix UI and Tailwind CSS v4, installed with the shadcn CLI.
Registry: https://cozy-ui.solo.engineer/r/{name}.json (namespace @cozy). License: MIT.
## Installation
### npm package (React 18 or 19, no Tailwind needed)
1. `npm install @0xtrou/cozy-ui`
2. In the root entry file (Vite: src/main.tsx; Next.js App Router: app/layout.tsx; Pages Router: pages/_app.tsx; Remix / React Router: app/root.tsx): `import "@0xtrou/cozy-ui/fonts.css";` and `import "@0xtrou/cozy-ui/styles.css";`. On Tailwind CSS v4, import `@0xtrou/cozy-ui/cozy.css` instead of `styles.css`.
3. `import { Button, Toaster, TooltipProvider, toast } from "@0xtrou/cozy-ui";` (or one component: `@0xtrou/cozy-ui/button`). Mount `` once for toasts; wrap the app in `` for tooltips.
### shadcn registry (shadcn/ui with Tailwind CSS v4; the source is copied into your repo)
1. `npx shadcn@latest init` if there is no components.json.
2. In components.json: `{ "registries": { "@cozy": "https://cozy-ui.solo.engineer/r/{name}.json" } }`.
3. `npx shadcn@latest add @cozy/cozy-theme` and `npm install @fontsource/nunito`.
4. In the global CSS file (for example app/globals.css) after the shadcn variables: `@import "@fontsource/nunito/400.css"; @import "@fontsource/nunito/200.css"; @import "./styles/cozy.css";` (cozy-theme writes styles/cozy.css; use the relative path to it).
5. Add components: `npx shadcn@latest add @cozy/button`.
### CSS only (Vue, Svelte, plain HTML)
`` and ``, then classes such as `