glass scenes

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 smart-home scene picker drawn in WebGL over a softly blurred living room at dusk. Four convex glass capsules, Morning, Movie, Dinner and Night, are stacked in the middle, each with a white chip, a one-line description (Blinds open · 5000 K, Projector · blinds down…), a big light level and a status dot. The glass is real-feeling: the room bends hard at each capsule's rim, the middle magnifies like a dome, red, green and blue split a little at the edges and an iridescent film runs round the rim. Every scene has an icon (a coffee cup, popcorn, a fork and knife, a crescent moon) glowing inside its glass in its own colour. Hover a capsule and a soft lens bump follows your pointer with a ring of light; pick one and it lifts and lights up, its chip turns white, its dot turns lime, and the whole room relights on springs: warm daylight for Morning, a dim blue for Movie, amber pendants for Dinner, a faint teal for Night, each with its own coloured wash. Drag across the active capsule to dim it, and the room follows. A drawn cursor plays a looping demo (pick Movie, dim it, then Dinner, Night and back to Morning) until you touch the page; the capsules are keyboard-reachable (arrows pick and dim). One fragment shader draws the room, the glass and the icons' glow; the text is HTML over it. Change the scenes, colours and copy in one file. The room is an original AI image; the fonts 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

  • scene picker
  • smart home controls
  • convex glass
  • liquid glass
  • webgl shader
  • refraction
  • chromatic aberration
  • springs
  • drag to dim
  • autoplay demo cursor

stack

  • react
  • vite
  • typescript
  • webgl2

fonts

Geist

Free fonts, linked in the prompt.

colors

  • #0B0A0A
  • #FBF8F3
  • #F5C58A
  • #9FB6FF
  • #FFAE6B
  • #A8E0D4
  • #D6F07A

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