Liquid card
AI UI component · a prompt for Claude, Codex and Cursor
Get the prompt, project and Figma file with monthly ($29 a month) or yearly ($249 a year). Plus tax where it applies.
A dark violet room with three soft lights and a glass card, 720 × 900 with 64-px corners, filled with violet water whose level is today's litres. A finger taps "+ 250 ml" and a stream pours in with splashing droplets while the big number rolls from 1.50 to 1.75 L on an odometer and a toast slides up. The finger flicks the surface, the card tilts left, right and back and the water sloshes against the glass. "Pull the water up to log" appears above the surface; the finger pulls a column of water up as a label counts to + 500 ml, and on release it falls and splashes. A second pour reaches 2.5 L: the badge turns lime with a check ("Goal reached"), the card swells and shakes, a lime glow sweeps across the water and the bubbles rise faster. Then it drains back to 1.5 L and the loop closes exactly. The water is a WebGL fragment shader (light shafts, caustics, a lime meniscus, bubbles) over a precomputed shallow-water simulation; splashes are ballistic droplets on a 2D canvas; the week chart, buttons and toast are HTML. 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
- liquid
- water simulation
- hydration tracker
- glass card
- odometer
- rolling numbers
- bar chart
- pull to log
- drag gesture
- splash particles
- toast
- goal reached
- tilt
- webgl shader
- canvas 2d
- autoplay loop
- frame-exact recorder
stack
- react
- vite
- typescript
- webgl
fonts
Geist
Free fonts, linked in the prompt.
colors
- #0B0A10
- #8F5EFF
- #1A0950
- #D4FF3C
- #F6F4FB
- #14101F
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

