2048
The addictive sliding-tile puzzle. Reach 2048. Swipe or arrow keys.
The addictive sliding-tile puzzle. Reach 2048. Swipe or arrow keys.
Loading…
$ npx shadcn@latest add https://gamekitui.com/r/2048.jsondom DesktopMobile
Keyboard
Mouse
Touch
Arrow keys / WASD to slide tiles, or swipe.
Theming
This is a DOM game. Its playfield is driven by your shadcn --primary, --secondary, and --accent tokens via Tailwind token classes, so it recolors automatically. Change your theme and 2048 recolors with it. Try the Customize button in the corner.
Install
npx shadcn@latest add https://gamekitui.com/r/2048.jsonThe game ships as a single drop-in file. It fills its container, so wrap it in any sized element:
<Game2048 className="mx-auto w-full max-w-sm" />