library

image

effects

mcp

coil

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.

Coil is an interactive 3D tube editor on a near-black studio stage, drawn with three.js. One soft tube runs along a spline; a dark glass toolbar under it picks the shape (Line, Wave, Loop, Spiral), the material (Clay: matte with powder grain and contact shadows; Glass: clear, with the back of the tube showing through and sharp studio highlights; Glow: lit from within, with a slow band of light running along it and a blurred halo), the palette (Ember, Lava, Lime, Ice, each a gradient from the tube's start to its end) and the weight. Every shape has 33 control points on a dashed cage: drag any of them and the tube follows, and the centreline relaxes wherever it would bend tighter than the tube can follow, so it never pinches or creases. Switching shape rewinds the tube into its start like a pen and draws the new one out. The page opens on an 18-second demo with a drawn cursor (Loop drawn out, a point dragged, Spiral, Lava, Glow, Glass, a heavier weight, then the tube rewinds from its tail); the first click anywhere hands the editor over from that moment, and Replay returns to the demo. Fixed buffers refilled only when something changes, depth-sorted chunks for the glass, one shader for all three materials. Every demo frame is a pure function of time, with window.__render(t) and a ?rec mode for frame-exact video export; reduced motion shows one still. The font is 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

  • 3d viewer
  • webgl shader
  • shape editor
  • draggable control points
  • material switcher
  • colour palettes
  • slider
  • toolbar
  • autoplay loop
  • frame-exact recorder

stack

  • react
  • vite
  • typescript
  • three
  • webgl
  • canvas

fonts

Host Grotesk

Free fonts, linked in the prompt.

colors

  • #030304
  • #F2F1EF
  • #FF8C14
  • #FF4A1C
  • #C8FF5A
  • #4E5CFF

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