Hairline

Interactive isometric line illustrations for React and the DOM, with pointer-driven motion and a shadcn registry entry.

Hairline by Lucas Markes is an MIT-licensed collection of isometric line illustrations that respond to the pointer. The library includes scenes such as a terrain grid, an exploded app window and a terminal. Select a figure that illustrates one idea in a product hero, documentation page or feature announcement.

Install @lucasmarkes/hairline with npm. In React, import a figure such as Terrain from @lucasmarkes/hairline/react and render it inside your layout. In a plain DOM project, call the figure function with an element and call its destroy() method when the element is removed. The shadcn registry entry adds a wrapper that reads your theme tokens.

The package is ESM-only and the React adapter requires React 18 or later. The figure fills its parent at a 5:4 aspect ratio, so reserve that space in the layout. Try the intensity slider in the demo before choosing the motion level, then verify the result on touch devices and with reduced motion enabled.

More in this section