Skip to content

Component 057Effects

Isometric Cities

Ten glowing isometric city scenes drawn in SVG, from an office tower and a harbour crane to an airport, a power grid and a night diner. Every figure has its own controls, live status line, and six glow colours in dark or light.

  • Next.js
  • Tailwind CSS
  • TypeScript
Pick a figure on the left, then use the controls under it: click floors, lanterns, cranes, signals or pumps, or press the listed keys.
Loading preview…
Live interactive preview

Quick start

Make it yours.

Save isometric-cities.tsx in your components folder, then import it below. Use it in a Next.js project with Tailwind CSS.

TSXapp/page.tsx
import IsometricCities from "@/components/ui/isometric-cities";

export default function CitiesPage() {
  return <IsometricCities initialScene="airport" initialAccent="sodium" />;
}

// The open figure follows the URL hash (#airport).
// Pass syncHash={false} to keep it in component state only.

Behind the interaction

The details that make it work.

Designed to explore, ready to adapt.

Ten scenes, one file

Tower, apartment block, lighthouse, harbour, metro, power grid, intersection, airport, observatory and diner are built from a small isometric toolkit: boxes, plates, cylinders, domes and labels laid flat on faces.

Every figure does something

Light floors, call the lift, sweep the beam, load the ship, dispatch trains, trip breakers, switch signals, land planes, open the dome or run the pumps. Each figure reports its state in a live status line.

Glow you can recolour

Sodium, tungsten, neon, signal, dusk and moon accents drive every lit window through CSS variables, with soft SVG bloom in dark mode and clean line art in light mode. Reduced motion stops the ambient animation.

Keep exploring

View all components