Snake
A tiny, themeable Snake game. ≤6KB gzipped, zero external assets.
A tiny, themeable Snake game. ≤6KB gzipped, zero external assets.
Loading…
$ npx shadcn@latest add https://gamekitui.com/r/snake.jsoncanvas DesktopNot mobile-optimized
Keyboard
Mouse
Touch
Arrow keys / WASD to steer, or swipe. Best on desktop — continuous swipe steering is fiddly on small screens.
Theming
This is a canvas game. Its playfield is driven by your shadcn --primary, --secondary, and --accent tokens — read at runtime and re-resolved when you toggle dark mode or swap a theme preset. Change your theme and Snake recolors with it. Try the Customize button in the corner.
Install
npx shadcn@latest add https://gamekitui.com/r/snake.jsonThe game ships as a single drop-in file. It fills its container, so wrap it in any sized element:
<Snake className="mx-auto w-full max-w-sm" />