Svitok

Dev tools ·

Web libraries for hand-drawn and sketch-style UI illustrations

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

@genue Asker's bookmark · Nov 19

Natural Drawing and Hatching with p5.brush

@anna_si3231 Asker's bookmark · Nov 19

Custom Hand-Drawn Animation Effects in Rive

@pacovitiello Asker's bookmark · Nov 18

Plotter: Construction Drawings and Visual Grammar for Products

@seanaiux Asker's bookmark Likely ad · Nov 22

Tactile Animated Paper Widgets in Code

@cryptowluha · Nov 23 · 19 likes · 16 bookmarks

this is f*cking unreal for Fable 5.2 and Opus 5.5 users

@cryptowluha · Nov 17 · 1.2k likes · 2.3k bookmarks

this is f*cking GOLDMINE for Fable 5.2

@0xnoonez · Nov 19 · 21 likes · 24 bookmarks

HOLY F*CK. YEARS OF LEARNING MOTION DESIGN, AND FABLE 5.2 JUST NEEDED 11 REPOS.

@choopyplug1 · Nov 17 · 20 likes · 25 bookmarks

Fable 5.2 now runs a whole design studio on 12 free tools

@pacovitiello · Nov 20 · 56 likes · 35 bookmarks

200+ stars in 48h, happy to see Plotter getting some love

@Rames_Jusso · Sep 27 · 74 likes · 63 bookmarks

want to know how Opus 5.5 writes code for videos?

W

roughjs.com · web

W

bestofjs.org · web

W

wiredjs.com · web

W

github.com · web

W

tryquickdraw.com · web

W

roughjs.com · web

@AdiKodez Likely ad · Nov 20 · 525 likes · 490 bookmarks

trazo is live :)

@kasuncfdo Likely ad · Nov 24 · 12 likes · 6 bookmarks

6 websites every UI/UX designer should bookmark:

@choopyplug1 Likely ad · Nov 3 · 68 likes · 66 bookmarks

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.

Connect X to ask · 2 questions free