Cozy components you can press.
Chunky 3D React components for shadcn/ui. Every button, card and inventory slot has a face, a wall and a little squash, so your app or your game feels like a toy people want to touch.
Game kit
Your game's UI, already built.
Inventory, character sheet, cards, a world map, a shop, perks and a skill tree, in the same cozy style. Feed them your items, cards and places; they handle drag and drop, layout, touch, keyboard and screen readers, and tell you what the player did. No game logic inside, so they fit React state, a store, a server or an ECS.
A world map that works like a maps app: pins that make room for each other, a place panel, search, filter chips, waypoints and clouds over places not found yet.
Collectible cards with rarity frames, foil, 3D tilt and flip. Fan them as a hand or file them in a binder.
An in-game store with tabs, deals, stock and real-money packs, and a HUD wallet whose numbers count up and down. Your game charges; the UI just asks.
Level 8!
Level up and pick one: rarity edges, reroll, skip and confirm, with keyboard and screen reader support.
Prerequisites, ranks and points, learn and refund, pan and zoom, and a details panel that never covers the node.
Active effects with countdown rings, stacks, debuffs and tooltips.
Arrow keys move between slots. Space picks an item up and drops it. Enter uses it.
Drag items between slots, merge stacks, lock bag space, sort and search. Mouse, touch and keyboard.
Mai
Portrait, level and XP, bars, attributes and equipment slots.
A HUD minimap that follows the player, turns with them and points to tracked places off the edge.
- Heat resist
- +7+3
- Charm
- +3+2
Item details and tooltips with rarity, stats and a compare against what you wear.
A collection book for items, fish or friends: silhouettes until found, with a progress bar.
Feels physical
Hover lifts, a press squashes into the wall, rewards bounce. Motion stops for people who ask for less.
Ready for games
Inventory, character sheet, item cards, a world map and a minimap. Plain data in, events out.
Your brand, fast
Five palettes, Liquid Glass and design tokens. Every text pair passes WCAG AA.
Install your way
npm, the shadcn registry, plain CSS for any stack, or one prompt for your AI agent.
Everything an app needs, too.
Level 8! Pick one
Switches, slider and select.
Every control has depth.
| P-015 | Rice | Ripe | 718 |
| P-029 | Rice | Ripe | 716 |
| P-005 | Peanuts | Growing | 628 |
| P-019 | Peanuts | Growing | 626 |
| P-014 | Luffa gourd | Wilted | 581 |
Install it in one prompt.
Paste this into Claude Code, Cursor or Copilot. Your agent picks npm, the shadcn registry or plain CSS, wires the imports and checks the build. Prefer doing it yourself? It is one command.
Copy prompt for your AI agent
Paste it into Claude Code, Cursor or GitHub Copilot. The agent detects your stack, picks the npm package, the shadcn registry or CSS only, installs it, adds the imports, renders one sample button and runs your build.
Install Cozy UI in this project. Cozy UI is an MIT React UI kit with shadcn/ui component APIs, built on Radix UI. Docs: https://cozy-ui.solo.engineer/ (plain text: https://cozy-ui.solo.engineer/llms.txt). Do the steps in order. Use the project's package manager (from the lock file: pnpm, yarn, bun or npm) for every install. Do not change unrelated code.
1. Detect the stack. Read package.json, the lock file and the config files, then tell me:
- React version ("react" in package.json), or "no React".
- Framework or bundler: Next.js (App Router or Pages Router), Vite, Remix / React Router, Astro, or other.
- Tailwind CSS v4: yes if "tailwindcss" is version 4 or later, or a CSS file has @import "tailwindcss".
- shadcn/ui: yes if components.json exists at the project root.
2. Pick exactly one path and tell me which and why:
- A. shadcn registry: components.json exists AND Tailwind CSS v4 is used. The source is copied into the repo.
- B. npm package: React 18 or 19, every other React case (no Tailwind, Tailwind v3, or no components.json).
- C. CSS only: no React (Vue, Svelte, plain HTML, server templates).
If React is older than 18, stop and tell me.
3. Install.
- A. In components.json, add this key next to the existing ones:
"registries": { "@cozy": "https://cozy-ui.solo.engineer/r/{name}.json" }
Then run: npx shadcn@latest add @cozy/cozy-theme @cozy/button
Then install @fontsource/nunito.
- B. Install @0xtrou/cozy-ui.
- C. Nothing to install.
4. Add the styles once, at the app root.
- A. In the global CSS file that imports Tailwind (for example app/globals.css or src/index.css), after the shadcn theme variables:
@import "@fontsource/nunito/400.css";
@import "@fontsource/nunito/200.css";
@import "<relative path to the cozy.css the CLI wrote, usually styles/cozy.css>";
- B. In the root entry file (Next.js App Router: app/layout.tsx; Pages Router: pages/_app.tsx; Vite: src/main.tsx; Remix / React Router: app/root.tsx):
import "@0xtrou/cozy-ui/fonts.css";
import "@0xtrou/cozy-ui/styles.css";
If Tailwind CSS v4 is used, import "@0xtrou/cozy-ui/cozy.css" instead of "@0xtrou/cozy-ui/styles.css", so utilities are not shipped twice.
- C. In the <head> of the main HTML template:
<link rel="stylesheet" href="https://unpkg.com/@0xtrou/cozy-ui/dist/fonts.css" />
<link rel="stylesheet" href="https://unpkg.com/@0xtrou/cozy-ui/dist/cozy.css" />
In every path, give the page the kit's background and type in the global CSS:
body { background: var(--cz-page); color: var(--cz-text); font-family: var(--cz-font-family); }
5. Palette (only if I asked for one). Set data-palette on the <html> element: village, meadow, lotus, river or lantern (dark). With no attribute the page follows the system: Village in light mode, Lantern in dark mode. For Liquid Glass, also set data-material="glass".
6. Verify with one sample. Add one button to an existing page:
- A. import { Button } from "@/components/ui/button" (use the "ui" alias from components.json), then <Button variant="reward">Harvest</Button>
- B. import { Button } from "@0xtrou/cozy-ui", then <Button variant="reward">Harvest</Button>
- C. <button class="cz-button cz-button--reward">Harvest</button>
If the app uses toast: mount <Toaster /> once at the root (B: import { Toaster, toast } from "@0xtrou/cozy-ui"; A: run npx shadcn@latest add @cozy/sonner, then import { Toaster } from "@/components/ui/sonner" and toast from "sonner").
If the app uses Tooltip: wrap the root in <TooltipProvider> (B: from "@0xtrou/cozy-ui"; A: from "@/components/ui/tooltip").
7. Run the project's build and type check: the "build" and "typecheck" scripts in package.json if they exist, otherwise npx tsc --noEmit. Fix any error you caused.
8. Report the path you chose, every file you changed and the command results. Then suggest the Cozy UI MCP server, so you can look up components and props from the real docs:
Claude Code: claude mcp add cozy-ui -- npx -y @0xtrou/cozy-ui-mcp
Cursor, VS Code, Claude Desktop (mcpServers config): "cozy-ui": { "command": "npx", "args": ["-y", "@0xtrou/cozy-ui-mcp"] }Play before you install.
Three small games built only from Cozy UI components, each with its full source.
A small idle farming game built only from Cozy UI: plant, wait, harvest, buy upgrades in a sheet and pick a reward card when you level up.
Play →Flip cards to find the pairs. Cards flip in 3D, matches wobble, and a dialog scores you with stars.
Play →Tap the moles before they hide: 30 seconds a round, three difficulties, a timer bar and a score dialog.
Play →