Ballmac UI home

Retro Grid

A perspective floor of grid lines gliding toward you under a glowing horizon, tinted with any theme color, tilt and cell size adjustable, still under reduced motion.

Ship it tonight

Back to the future of UI

A grid that keeps moving toward you while you build.

Installation

$ pnpm dlx shadcn@latest add @ballmac/retro-grid

Usage

import { RetroGrid } from "@/components/ballmac/retro-grid"

The full example is in the Code tab above.

Examples

Tones and tilt

chart-4 · 70°
chart-2 · 58°
foreground · 64°
chart-3 · 66°

API reference

PropTypeDefault
angle

Tilt of the floor in degrees. Higher is flatter and looks deeper.

number62
cellSize

Size of one grid cell in pixels, at the front of the floor.

number64
tone

Line color.

GridTone"foreground"
speed

Seconds the floor takes to slide forward by one cell. Higher is slower.

number1.4
glow

Soft glow along the horizon.

booleantrue

Also accepts the standard attributes of its root element.

Accessibility

KeyAction
Screen readersDecorative: aria-hidden and pointer-events-none
Reduced motionThe floor is still

Use with AI

Place <RetroGrid angle cellSize tone speed glow /> inside a relative, overflow-hidden parent and put content above it. It fades into the page background at the horizon. With the shadcn MCP server set up (guide), ask your agent:

Add the Ballmac UI Retro Grid (@ballmac/retro-grid) to this project with the shadcn MCP, then use it where it fits.

Use it for

  • Landing page heroes with a technical or retro mood
  • Under a centered headline and call to action

Not for

  • Dense UI behind small text
  • Pages with many competing backgrounds

Registry JSON: https://ui.ballmac.com/r/retro-grid.json

Credits

Free to use in personal and commercial projects.

Registry
shadcn/utils