New Game kit: cards, world map, minimap →

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.

Free and MIT · 42 components · 5 palettes · Liquid Glass · React 18 and 19

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.

VillageRice paddiesRiver bend??????
Game Map →

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.

River CarpHP60
Fish · RiverWater
1Splash20
Water two plots next to this card.
Jumps highest at dawn, near the bamboo bridge.
012/060Village Set
Giant PumpkinHP120
Crop · AutumnEarth
2Heavy Harvest×3
Your next harvest gives three times the coins.
Took a whole season and a lot of patience.
027/060Village Set
Paper LanternHP80
Decor · FestivalEmber
1Warm Glow
Friends who visit stay one more turn.
3Night Market50
Earn 50 coins after sunset.
041/060Village Set
Moon GemHP150
New
TreasureMoon
3Full Moon99
Once a game: every crop grows at once.
Only appears when the moon is full.
060/060Village Set
Corn SproutHP40
Seed · SummerLeaf
1Grow10
Draw a card.
003/060Village Set
Item Card →

Collectible cards with rarity frames, foil, 3D tilt and flip. Fan them as a hand or file them in a binder.

Coins: 1,250
Gems: 40
Shop and Currency Bar →

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!

Perk Picker →

Level up and pick one: rarity edges, reroll, skip and confirm, with keyboard and screen reader support.

Points7
  • Fields
  • Fishing
  • Crafts
Skill Tree →

Prerequisites, ranks and points, learn and refund, pan and zoom, and a details panel that never covers the node.

Buff Bar →

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.

Inventory →

Drag items between slots, merge stacks, lock bag space, sort and search. Mouse, touch and keyboard.

12

Mai

Rice farmer
Health82 / 100
Energy35 / 60
Character Info →

Portrait, level and XP, bars, attributes and equipment slots.

River bend
MiniMap →

A HUD minimap that follows the player, turns with them and points to tracked places off the edge.

Lotus hat
RareHeadLv 8
Woven by the best hands in the village.
Heat resist
+7+3
Charm
+3+2
180 coins
Item Info →

Item details and tooltips with rarity, stats and a compare against what you wear.

Gallery →

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.

1,250coins
Lv 7

Level 8! Pick one

Settings

Switches, slider and select.

Press, toggle, reward

Every control has depth.

Experience · 72%
P-015RiceRipe718
P-029RiceRipe716
P-005PeanutsGrowing628
P-019PeanutsGrowing626
P-014Luffa gourdWilted581
1–5 of 32
Page 1 of 7
Rain

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 (prompt)
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"] }
npm install @0xtrou/cozy-ui
# or copy the source with the shadcn CLI
npx shadcn@latest add @cozy/cozy-theme @cozy/button

Play before you install.

Three small games built only from Cozy UI components, each with its full source.

Questions

Cozy UI is a free, MIT-licensed set of React components for shadcn/ui with a chunky, toy-like 3D look: each control has a plastic face, a solid side wall and a soft contact shadow, and it sinks when pressed. It ships 42 components, including game UI (inventory, character sheet, item info, gallery), five palettes, a Liquid Glass material and a motion system.