trail glass

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 frosted-glass hiking card floats over a misty autumn forest, drawn live in WebGL: its rim bends and splits the forest behind it like a thick lens. Ridge Loop, day 2: the elevation in huge light digits on a rolling odometer (1,284 m, climbing a metre every few seconds), an elevation chart with the walked part solid and the hiker's dot pulsing, distance, pace and the way to the summit. A + button squeezes out four liquid drops on springs (Route, Layers, Waypoint, Hold for SOS) that melt into each other as they part. Waypoint drops a pin on the chart; Hold for SOS fills a coral ring for 1.6 s and sends; Layers grows into a glass Trail view panel with a sliding Day / Dusk / Night control (golden hour, then a red night-light palette for the whole page) and switches that pop trail markers and water sources onto the chart. Every action answers in a glass toast that grows out of nothing at the top. A drawn cursor plays it all through until the first real click. React and one fragment shader; every moving value is a spring and everything timed runs on the engine's own clock, with window.__render(t) and a ?rec mode for frame-exact video export. The fonts and the photo are 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

  • liquid glass
  • webgl shader
  • refraction
  • hiking stats card
  • elevation odometer
  • elevation chart
  • metaball drops
  • segmented control
  • toggles
  • toast
  • spring physics
  • autoplay demo
  • frame-exact recorder

stack

  • react
  • vite
  • typescript
  • webgl

fonts

Geist

Free fonts, linked in the prompt.

colors

  • #0A0C09
  • #F4F5F0
  • #CFE57A
  • #FFB59A
  • #8FD0FF

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