hairline: Interactive Isometric Line Figures for Web Interfaces

Repositorylucasmarkes/hairlineTool

hairline is a TypeScript library delivering 33 isometric line figures that react to pointer movement. It requires no runtime dependencies, works natively in the DOM or as React components, and integrates with shadcn. It helps web developers enhance landing pages and interfaces with responsive, interactive visual elements.

Key points

  1. Provides 33 interactive isometric line figures responding dynamically to pointer and keyboard events.
  2. Zero external runtime dependencies, published strictly as an ESM package.
  3. Supports React 18+ as client modules compatible with Server Components, as well as vanilla DOM and Svelte actions.
  4. Integrates with shadcn via a dedicated CLI command and reads project theme tokens.
  5. Fills parent element width at a fixed 5:4 aspect ratio.

Why it matters

Frontend teams gain a lightweight method to add interactive, polished visual figures to web pages without loading heavy 3D rendering engines or large bundles.

Analysis

How It Works and Architecture

hairline supplies 33 isometric line graphics that interact with cursor movement and input events. Behavior can be fine-tuned via parameters such as intensity or playback states. Included figures range from layered windows (exploded) and rising pillars (terrain) to interactive card trays (riffle) and conveyor systems (slow).

The implementation relies on TypeScript and pure ESM with no dependencies. When used with vanilla JavaScript, hairline attaches directly to any DOM element, exposing update and destroy methods. This signature matches Svelte actions directly (use:terrain={{ intensity }}). The React package requires React 18 or later; because its entry points are client modules, they can be placed into Server Components without manually adding use client, forwarding ref and standard <div> attributes automatically.

Integration and Maturity

hairline offers first-class support for shadcn, allowing developers to pull the package and a wrapper configured with local design tokens through a single command. Figures automatically adapt to the parent element's width at an aspect ratio of 5:4. Backed by an MIT licence and more than 4,200 GitHub stars, hairline represents a production-ready, focused UI graphic utility for contemporary web development.

Found in

Summary generated by AI (Gemini 3.8 Flash, 30 November 2026). It may contain errors – the original source is authoritative.

Similar in content, found by the AI search.

  • X post:Adham Dannaway

    Hairline: Interactive Isometric SVG Figures for the Web

    Hairline by Lucas Marques is a collection of 33 isometric line drawings designed for the web. The vector figures react directly to pointer movements, have zero dependencies, and support both React and plain DOM.

    113bookmarks5kviews

    Web development· Resource

  • X post:code w/Guillaume 💻

    Hairline: Tool for Animated Isometric Illustrations

    Developer Guillaume shares Hairline, a tool created by Lucas Markes designed to generate animated isometric illustrations for websites.

    1.5kbookmarks44.4kviews

    Web development· Tool

  • Link:magicui.design

    Magic UI: Animated UI Components for React and Tailwind CSS

    Magic UI provides over 150 free, open-source animated components and effects. Built with React, TypeScript, Tailwind CSS, and Motion, it serves as a companion library to shadcn/ui for frontend developers and design engineers.

    Web development· Tool

  • Link:easyui.site

    EasyUI: Open-Source Animated React UI Library for Tailwind

    EasyUI is an open-source React component library tailored for Tailwind CSS with a focus on animations. It provides ready-to-use copy-and-paste components featuring TypeScript source code and interactive previews.

    Web development· Tool

Let's talk about your project

Locations

  • Mattersburg
    Johann Nepomuk Bergerstraße 7/2/14
    7210 Mattersburg, Austria
  • Vienna
    Ungargasse 64-66/3/404
    1030 Wien, Austria

Parts of this content were created with the assistance of AI.