Grain widgets

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 dark metallic glass card with 72-px corners and a bright rim sways slowly in 3D on a stage of brushed metal, light silver to graphite, with soft dark blobs drifting across it. Every 3.6 seconds it switches widget: Weather (15 °C in Bergen, a cloud, two dry hours), Heart rate (72 bpm, a heart), Sleep (7:42 hours, a moon), Energy (82 % charged, a lightning bolt, $4.20 saved by solar) and Now playing (2:47 of 4:12, an equalizer). The icon and the big number are halftone particles drawn on a canvas: the icon painted in lit greys and sampled on a grid, so its dots grow where it is brighter, and the number set in Host Grotesk as a dot matrix. On every switch each dot flies along an arc from its place in the old shape to its place in the new one, staggered from left to right, and every shape stays alive while it shows: the cloud drifts, the heart beats at 72 bpm, the moon shimmers, a charge runs up the bolt, the equalizer plays. Hairline rings ripple around the icon, a frosted sub card holds a value with a silver pearl chip, the text blurs out and rises back in line by line, a lime step dot marks the widget and a lime dot sits in the status pill. Click the card or use the arrow keys to switch; the card then tilts with the pointer, and the autoplay comes back after a few seconds. Space or R restarts. Its own 18-second sound ships as a bonus file. ?rec and window.__render(t) draw any moment for frame-exact video export; reduced motion gets still frames.

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

  • widgets
  • widget card
  • weather widget
  • heart rate
  • sleep tracker
  • energy widget
  • music player
  • halftone
  • dot matrix
  • particle morph
  • canvas particles
  • glassmorphism
  • metallic
  • 3d tilt
  • blur reveal
  • step indicator
  • autoplay demo
  • keyboard shortcuts
  • sound
  • frame-exact recorder

stack

  • react
  • vite
  • typescript
  • canvas

fonts

Host Grotesk

Free fonts, linked in the prompt.

colors

  • #A9ABAE
  • #3B3C40
  • #141416
  • #0B0B0C
  • #FFFFFF
  • #E4F25A

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