Mail Code

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

free

The prompt is free with an account: sign up with Google or email, and your copy starts right after. The project and Figma file come with monthly or yearly.

A phone-style sheet rises with a soft bounce onto a pale ground: a grey back card, a white front card with a back chevron, the title "Check your inbox" and a help mark. An open lilac envelope pops in below it, a rounded violet tile with a pale four-point star springs up out of its pocket, soft rays and a halo breathe behind it and five white sparkles twinkle around it. "We’ve sent a verification code to ellis@vesta.mail" fades in, then four rounded code cells. A violet focus ring and a blinking caret move from cell to cell as 1, 3, 6, 2 land from a blur; the code is accepted, the cells rise and light violet in a wave, the digits turn violet, the tile hops, the star turns half a turn and the sparkles burst. The dark version of the sheet dissolves in over it and plays the same typing in deep violets, then drops away and the ground fades back to light, so the loop closes on its first frame. Press a digit or tap the cells and the sheet is yours: type any four digits (Backspace, paste and a phone's number pad work) and it accepts them with the same wave, then the loop picks up again typing your code. Inter and Inter Display, inline SVG, all HTML and CSS written each frame from one function of a moment: a click or Space pauses, ?rec and window.__render(t) draw any moment for frame-exact video, 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

  • verification code
  • one-time code
  • code input
  • otp cells
  • focus ring
  • blinking caret
  • blur-in digits
  • success wave
  • envelope illustration
  • sparkles
  • spring animation
  • light to dark
  • crossfade
  • dark mode
  • number pad
  • paste support
  • autoplay loop
  • frame-exact recorder

stack

  • react
  • vite
  • typescript

fonts

Inter, Inter Display

Free fonts, linked in the prompt.

colors

  • #F7F7F7
  • #FCFCFC
  • #2C2C2E
  • #9B6BF2
  • #8F55E8
  • #0D0D0F

license

Free account: personal use only. Monthly or yearly adds commercial and client work. Don't resell or share the template, prompt or files.

read the license