FREE RESOURCE · FROM THE "LINES" REEL

Hairline: line animations that come alive under your cursor (install + embed guide)

By · 26 November 2026

Facts checked 26 November 2026

What Hairline is

Hairline is a free, open-source (MIT) set of isometric line figures that react to your cursor, by independent developer Lucas Marques (@lucasmarkes). It ships a skill for coding agents, hairline-create: you describe an idea and your agent draws a new figure to Hairline's ten design rules. It is a community project, not an Anthropic feature.

Install (one command)

You need Node.js 22.20 or later and a coding agent that reads skills (Claude Code, Cursor, Codex and others).

terminal · install
npx skills add lucasmarkes/hairline

It asks which skills and which agents to install for. For Claude Code without the prompts:

This project (.claude/skills/):

terminal · claude code
npx skills add lucasmarkes/hairline -a claude-code

All projects (~/.claude/skills/):

terminal · claude code
npx skills add lucasmarkes/hairline -g -a claude-code -y

No CLI? Copy both folders by hand (hairline-adopt calls hairline-create):

terminal · by hand
git clone --depth 1 https://github.com/lucasmarkes/hairline
cp -R hairline/skills/hairline-create hairline/skills/hairline-adopt ~/.claude/skills/

Use it

  1. In Claude Code type /hairline-create a sales funnel (any idea works: a lead form, a pricing tier, a deploy pipeline).
  2. It pitches two or three concepts, one line each: the object, what the pointer does, what the read-out says. Pick one.
  3. It builds the figure, checks it against the rules with validate.mjs, then looks at it in a headless browser.
  4. You get hairline-<name>.html: one file with no dependencies, an intensity slider, a light/dark switch and a play button that walks its tour. Ask for changes and it edits the figure and re-checks.

Have an SVG already? /hairline-adopt icons/deploy.svg rebuilds it as a figure and proposes what the pointer does.

Two prompts to copy

Paste either one into Claude Code once the skills are installed.

Draw a figure for your funnel

prompt 1 of 2
/hairline-create a lead-to-booked-call funnel: four stacked trays, leads pile up on top and thin out to one booked call below; the tray under the pointer slides out and the read-out shows its count.

Turn your logo or icon into a figure

prompt 2 of 2
/hairline-adopt assets/logo.svg - the pointer lifts the part it is over and the read-out names it.

Embed it on a landing page, your docs or a demo

The file opens from disk, so host it next to your page and embed it:

html · embed
<iframe src="/figures/hairline-lead-to-call.html" title="Lead to booked call funnel"
  style="width:100%;aspect-ratio:5/4;border:0" loading="lazy"></iframe>

Every generated file contains the Hairline engine, which is MIT-licensed, and MIT asks you to keep its copyright notice with it, so keep this line near it:

licence line
Hairline engine (c) 2026 Lucas Marques, MIT

What it costs and what it touches

  • Hairline and the skills: free, MIT, no account.
  • The agent is the real cost: Claude Code needs a paid Claude plan (Pro, Max, Team, Enterprise) or API billing, and each figure takes a few turns of usage.
  • First visual check: look.mjs runs npm install playwright-core@1 once into your cache and uses your installed Chrome (or downloads Chromium).
  • No API keys, no OAuth, no network calls from the figure; the checker rejects any figure that fetches or stores data. The skills CLI sends anonymous telemetry; turn it off with DISABLE_TELEMETRY=1.

Before you install any skill

Skills run with your agent's permissions. Hairline's skills declare no extra tools, but they do run local Node scripts. Read skills/hairline-create/SKILL.md first; it takes a minute.

The ten rules it draws to

  1. Hit areas don't move
  2. Stagger by distance
  3. Clamp the reach
  4. The stroke is the only highlight
  5. Rest is designed, never flat
  6. Construction stays honest
  7. Loops sleep offscreen
  8. Two clocks
  9. Round every corner, then draw less
  10. No words inside the figure

Credit: Hairline by Lucas Marques (MIT). Idea for the reel: @nick_saraev.

Sources checked

  • MIT licence, copyright Lucas Marques, description "Isometric line figures that answer the pointer". Source ↗
  • Install command npx skills add lucasmarkes/hairline; hairline-create and hairline-adopt usage; runs on Claude Code, Cursor, Codex and others. Source ↗
  • Ten rules (01 hit ... 10 quiet). Source ↗
  • Concepts -> Build -> Check -> Hand over; output hairline-<name>.html with no dependencies. Source ↗
  • skills CLI: Node 22.20+; telemetry opt-out with DISABLE_TELEMETRY=1. Source ↗
  • skills CLI flags -a claude-code, -g, -y; Claude Code paths .claude/skills/ and ~/.claude/skills/. Source ↗
  • look.mjs installs playwright-core@1 once into a cache and drives the installed Chrome or Playwright's Chromium; validate.mjs rejects fetch, URLs and storage. Source ↗
  • Claude Code needs a paid Claude plan or API billing. Source ↗

About the video: the reel that sent you here is presented by an AI avatar of Hammad Yousuf. Hairline itself is Lucas Marques's open-source project.

Keep going