weight axis

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 variable font's weight axis as a micro-interaction: "Weight" in Geist at 232 px on warm paper with a soft light and fine grain, "Geist Variable" and a live "wght 100" readout above it, and a 100–900 slider with ticks, a white knob and a dark tooltip below. A 10-second loop plays by itself, driven by a demo cursor. It grabs the knob and drags it to 900: the letters thicken on springs, each a little behind the one before, while the tooltip steps through the nine named weights from Thin to Black and the readout counts up. Then the cursor moves onto the word as a lens: orange dashed guides for cap height, x-height and baseline fade in with a lens line, the tooltip dims to "Lens 160–900", and as the cursor sweeps from W to t only the letter under it turns heavy and lifts slightly, its neighbours falling off smoothly on a bell curve. Back on the slider, the cursor eases the knob down to Regular 400, the letters follow and settle, the cursor leaves, and the stage fades out and back in to start again. Weight goes out as font-variation-settings, every letter on its own spring and measured from the real layout each frame, so the centred word breathes as it changes. HTML, CSS and inline SVG, no libraries; the word, the font, the timing and the colours are a few constants. The square stage scales to fit any window and its paper runs on past it; reduced motion shows the lens frame 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

  • variable font
  • slider
  • tooltip
  • type specimen
  • type guides
  • spring physics
  • cursor animation
  • autoplay loop
  • paper grain

stack

  • react
  • vite
  • typescript
  • svg

fonts

Geist, Geist Mono

Free fonts, linked in the prompt.

colors

  • #EBE7DF
  • #F6F3EE
  • #141312
  • #FFFFFF
  • #FF5A2A

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