Line art walker previewLine art walker preview

Line art walker

A hand-inked man with a briefcase walks across a card in live SVG: legs solved so the planted foot never slides, springs on the arms, scarf and briefcase, pointer wind, and a hat tip on click. Ink and paper follow the theme. Ships the small ink, gait and motion library for drawing your own figures.

  • Group
    Line art
  • Origin
    Adapted · line-art-animation (Dhruv, @dhruvtwt_) · source
  • License
    MIT
  • Added
    Nov 13

Install

npx shadcn@latest add @deank/line-art-walker

Needs the @deank registry in components.json once:

{
  "registries": {
    "@deank": "https://system.say.ventures/r/{name}.json"
  }
}

Or skip the setup and install from the URL:

npx shadcn@latest add https://system.say.ventures/r/line-art-walker.json

The first install also adds the shared tokens. Import them once in your root layout or it renders unstyled:

import "@/registry/foundation.css";

Usage

import { LineArtWalker } from "@/registry/components/line-art-walker/line-art-walker";

<LineArtWalker style={{ maxWidth: 560 }} />

{/* No street, a slower stroll, a custom label */}
<LineArtWalker street={false} speed={0.7} label="A man strolling home with his briefcase" />

{/* Retint: scarf and briefcase are CSS variables */}
<LineArtWalker style={{ ["--line-art-scarf" as string]: "var(--success)" }} />

Props

PropTypeDefaultDescription
street?booleantrueDraw the kerb, paving and lamp post behind him. Default true.
animate?booleantrueAnimate. With false, or under prefers-reduced-motion, it draws one still frame. Default true.
interactive?booleantrueLet people tip his hat with a click, a tap, or Enter / Space when the drawing has focus. Default true.
speed?number1Walking speed multiplier. Default 1.
label?string"Line drawing of a man walking with a briefcase"Accessible description of the drawing.
className?string
style?CSSProperties

When to use

A calm, characterful illustration for a hero, a 404 or empty state, an about page, a footer or a loading screen where a little hand-drawn life beats a stock graphic. Also the starting point for your own ink figures: lib/ has the limb, shoe, gait and spring helpers.

When not to use

Dense app screens or task flows where constant motion distracts; brand illustration in a different style (use hairline-figure for isometric line art, iso-figure for solid explainers); anywhere a static image would do and bundle size matters.

Related