Web libraries for hand-drawn and sketch-style UI illustrations
Best contributions to this answer are @genue @pacovitiello follow them to get more great answers
svitok wrote this from fresh X posts. Ask it your own question
Paco Vitiello saw his Plotter SVG drawing library and coding-agent skill cross 200+ stars within 48 hours of release [6]
. Hand-drawn, organic interfaces are having a real resurgence, replacing sterile flat shapes with tactile linework [L3]
[L4]
. Whether you need quick squiggly buttons or full-blown natural media simulation, builders have assembled a versatile stack across Canvas, SVG, and WebGL [L1]
[L4]
.
Core libraries for sketchy graphics
Rough.js remains the foundational choice for converting plain 2D primitives into hand-sketched lines, curves, and hachure fills on Canvas and SVG [1]
[2]
[3]
. For prebuilt interface elements, Wired Elements wraps Rough.js inside Lit web components, while doodle-ui layers sketchy styling over accessible Radix UI primitives [W3][W4]. If you need organic callouts over existing web content, neat-annotations draws sketch highlights using data attributes and CSS [7]
.
For custom freehand input, perfect-freehand turns raw pointer coordinates and pressure values into smooth polygon outlines [W1][W2]. When you want flat, illustrated pseudo-3D shapes, Zdog renders them directly to <canvas> or SVG [1]
[2]
[3]
. Ready-to-use visual assets include trazo (trazo-stickers), an npm package with 70+ hand-drawn crayon sticker SVGs that you can dynamically recolor in code [5]
[8]
.
Natural media and rich animation
If your design calls for expressive pencils and paints, p5.brush provides WebGL-accelerated drawing for p5.js with media presets like 2B pencils, charcoal, markers, and watercolor fills [L1]
. It supports directional vector grids via brush.addField() to bend strokes, alongside procedural hatching patterns through brush.hatch() [L1]
. Just remember to call brush.scaleBrushes() during initialization if you work on non-standard canvas sizes, which keeps weights and scatter proportional [L1]
.
To bypass frame-by-frame raster spritesheets entirely, builders turn to the Rive vector runtime to author interactive hand-drawn animation effects [L2]
. For diagramming systems, Plotter supplies 109 editable SVGs where construction lines and hatching follow a strict visual grammar, complete with agent skills for tools like Claude Code [L3]
. Alternatively, embedded whiteboards rely on @excalidraw/excalidraw for interactive wireframing [4]
[W5].
What to watch
Sketch algorithms break simple lines into multiple bezier curves and dense hatching [W6]. Pushing those into the SVG DOM causes frame drops, so heavy or animated scenes belong in HTML5 Canvas or WebGL [L1]
[W6]. To avoid "line boiling"—where random jitter fires on every UI state change—always pass a fixed PRNG seed to your generator [W6]. Finally, check licensing: while Rough.js and Excalidraw use permissive MIT terms, alternatives like tldraw require commercial licenses and watermarks for unpaid production apps [W3][W5].
Sources
Natural Drawing and Hatching with p5.brush
Custom Hand-Drawn Animation Effects in Rive
Plotter: Construction Drawings and Visual Grammar for Products
Tactile Animated Paper Widgets in Code
this is f*cking unreal for Fable 5.2 and Opus 5.5 users
this is f*cking GOLDMINE for Fable 5.2
HOLY F*CK. YEARS OF LEARNING MOTION DESIGN, AND FABLE 5.2 JUST NEEDED 11 REPOS.
Fable 5.2 now runs a whole design studio on 12 free tools
200+ stars in 48h, happy to see Plotter getting some love
want to know how Opus 5.5 writes code for videos?
trazo is live :)
6 websites every UI/UX designer should bookmark:
HOLY SH*T, A FULL MOTION STUDIO IN 16 FREE REPOS
Compiled in 47 s from 235 X posts by 53 people (last 60 days), 4 of the asker's bookmarks and a web check. 9 posts made the answer. Its agreeing claims were checked against the full text of their sources.



