Air Purifier

AI UI component · a prompt for Claude, Codex and Cursor

pro

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

A rounded card on a soft spotlit ground holds a PM2.5 readout on a two-digit rolling odometer (top left), a "Clean air in 12 min" estimate that turns to "Clean air · Now" (top right), a speed slider with a spinning fan in its knob and a rolling speed label ("Speed 3 · 260 m³/h") at the bottom, and in the middle a dark perforated purifier drawn on a 2D canvas in 3D: a shaded cylinder with a dotted grille, a floor shadow, a spinning outlet fan on top and a status light in the air-quality colour. 300 seeded particles drift around it; as the fan speeds up they stream in with trails, swirl into a vortex at speed 3 and glow from orange (34 µg/m³) to green (9) as they reach the grille, and fewer of them show as the air clears. The knob colours by speed, blue, violet, orange, and settles on each stop with a small overshoot. It opens on a seamless 12-second loop in which a cursor drags the speed to 3, the card blends from dark to light while the room clears, then back. Take the slider (drag, click the track, or the arrow keys) and it plays live: the fan follows with a lag, PM2.5 falls as fast as the fan runs and creeps back with the fan off; T switches dark and light. Every loop frame is a pure function of time, with window.__render(t), ?rec for frame-exact video and ?t= to open on a moment; reduced motion shows one still. Inter and JetBrains Mono are local, so it runs offline.

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

  • air purifier
  • speed slider
  • draggable slider
  • smart home
  • air quality
  • pm2.5
  • odometer counter
  • particles
  • vortex
  • canvas 2d
  • 3d cylinder
  • dark and light theme
  • autoplay loop
  • frame-exact recorder

stack

  • react
  • vite
  • typescript
  • canvas

fonts

Inter, JetBrains Mono

Free fonts, linked in the prompt.

colors

  • #0B0B0B
  • #161616
  • #F5F5F5
  • #EFEFEC
  • #FFFFFF
  • #3D8BFF
  • #8A5CFF
  • #FF5A2B

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