Minesweeper
Deterministic 9×9 Minesweeper. Left-click reveals, right-click / long-press flags.
Deterministic 9×9 Minesweeper. Left-click reveals, right-click / long-press flags.
Loading…
$ npx shadcn@latest add https://gamekitui.com/r/minesweeper.jsondom DesktopNot mobile-optimized
Keyboard
Mouse
Touch
Left-click reveals, right-click flags. Long-press to flag on touch.
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 Minesweeper recolors with it. Try the Customize button in the corner.
Install
npx shadcn@latest add https://gamekitui.com/r/minesweeper.jsonThe game ships as a single drop-in file. It fills its container, so wrap it in any sized element:
<Minesweeper className="mx-auto w-full max-w-sm" />