Glass calculator

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 black room with a silver light, a blue light and a soft beam from above, and a frosted glass calculator, 640 × 1090 with 76-px corners: a Standard / Scientific switch, a history button, an expression line, a big Geist number and a 4 × 5 keypad of glass keys (grey functions, blue-tinted operators, a lit blue "="). A finger types 1,248 × 35: each digit rises in out of a blur, the chosen operator stays lit, and "=" lifts 43,680 in digit by digit from the right with a blue glow while the card swells. Then 43,680 ÷ 12 = 3,640. The finger rests on the result: a blue ring fills, the number sinks and a "Copied" pill springs in. AC drops 0 in from above and the loop closes exactly. Every key sinks, brightens and spreads a ripple; the card leans toward the next key, a pool of light runs round its edge after the finger, caustic light drifts through the glass and film grain sits over everything. A click or Space pauses; ?rec and window.__render(t) draw any moment for frame-exact video export, and reduced motion gets one still.

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

  • calculator
  • keypad
  • glass card
  • frosted glass
  • backdrop blur
  • rolling digits
  • blur-in numbers
  • key press
  • ripple
  • long press
  • copy to clipboard
  • toast
  • caustics
  • film grain
  • edge light
  • tilt
  • autoplay loop
  • frame-exact recorder

stack

  • react
  • vite
  • typescript

fonts

Geist

Free fonts, linked in the prompt.

colors

  • #050608
  • #F1F3F7
  • #8CC4FF
  • #4C98FF
  • #9AD0FF
  • #06101E

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