lights out

pro

Get the prompt, project and Figma file with monthly ($29 a month) or yearly ($249 a year). Plus tax where it applies.

A brightness micro-interaction on a dark Display panel ("Studio · Desk 02", an "Evening" chip, a warm aurora in its corner): a big 78 % with 406 nits, a tick fader with a glowing handle, and three toggles, Color Match, Warm Hours and Ambient Match. A ~16-second demo loops by itself. A cursor turns Warm Hours on, grabs the handle and drags the brightness down past 0 %: the panel, the light shaft above it and the whole room dim with it until the screen is black. A flashlight flickers on under the cursor, a warm pool with dust floating in its beam, and tours the wallpaper around the panel: stars charge up in mint green where it passes and stay lit for a few seconds, lines join them into six constellations, and the light leaves a short trail. Then the brightness is dragged back to 100 % and the light returns with a soft white flash. Click anywhere and the cursor is yours: drag the fader, flip the toggles, take the brightness to zero and search the dark yourself, with a mouse or a finger. The panel is HTML and CSS; the darkness and the light are drawn on canvases with the Canvas 2D API, moved by tweens and damped springs; the sky comes from one seeded sequence, so it's the same on every load. Geist and Geist Mono, film grain, a 1080 × 1080 stage that scales to fit any window with the room carried on to its edges, window.__SP for the demo's speed and a frame-exact recorder (window.__rec and __start). With reduced motion the demo doesn't play and the panel is the visitor's from the start.

what you get

prompt
Paste it into Claude, Codex, Kimi or Cursor to rebuild this template. Tested: we rebuild every template from its prompt before it goes live.
project
The Vite + React source code as a .zip, ready to run.
figma file
The editable design as a .fig file to import into Figma.

what's inside

  • brightness slider
  • settings panel
  • toggles
  • flashlight
  • spotlight reveal
  • constellations
  • dark mode
  • canvas 2d
  • springs
  • cursor animation
  • autoplay loop
  • film grain
  • frame-exact recorder

stack

  • react
  • vite
  • typescript
  • canvas

fonts

Geist, Geist Mono

Free fonts, linked in the prompt.

colors

  • #09090A
  • #1C1C1F
  • #FFFFFF
  • #FF9A6A
  • #DE4EB0
  • #6E5CFF
  • #FFE8CE
  • #BEFFE0

license

With monthly or yearly: personal and commercial work, client projects included. Don't resell or share the template, prompt or files.

read the license