Gamification UI Kit by Trophy is a component library built on top of shadcn/ui to help you build gamification experiences faster.
Trophy's Gamification UI Kit provides pre-built, customizable React components for gamification—streaks, achievements, leaderboards, points, XP charts, event banners, and more. The shadcn/ui CLI pulls components straight from the registry so you can own the code and tailor it to your product.
Use the shadcn CLI with the Trophy registry URL:
npx shadcn@latest add https://ui.trophy.so/streak-badgeBefore using Trophy's Gamification UI Kit, ensure your project meets these requirements:
- Node.js 18 or later
- React 18+ — components are client-side React
- Tailwind CSS v4+ configured so utility classes compile (see semantic theme tokens Trophy expects)
- shadcn/ui initialized in your project (
npx shadcn@latest init) withcomponents.jsonand path aliases set up
Install every registry component at once:
npx shadcn@latest add https://ui.trophy.so/allThis adds components (and any shared primitives they depend on) into your configured components directory.
Add individual components by name:
npx shadcn@latest add https://ui.trophy.so/<component-name>Examples:
npx shadcn@latest add https://ui.trophy.so/points-chart
npx shadcn@latest add https://ui.trophy.so/leaderboard-card
npx shadcn@latest add https://ui.trophy.so/streak-badgeYou can also point at the JSON registry entries directly:
npx shadcn@latest add https://ui.trophy.so/r/points-chart.jsonBrowse the full set on the docs site: Components and the introduction.
If you would like to contribute to Gamification UI Kit by Trophy:
- Fork the repository
- Create a branch for your change
- Make your updates (registry sources live under
apps/www/registry/) - Open a pull request against
main
Read the contributing guide for local setup, pnpm registry:build, and review expectations.
Licensed under the MIT license.
Built by Trophy.
