10 / ILLUSTRATIONS
Illustrations
Accepted and rejected examples, Permanent Marker callouts, color roles, shapes, spacing, and an illustration brief. Arrow rules have their own page.
Agent Instructions / illustrations
Create a KIRUPA teaching illustration. Read /design/sections/illustrations.md and inspect its BFS and Merkle Tree images first. Use /design/illustrations.json for sources, colors, fonts, and licenses. State the teaching point. Show recognizable flat, colorful objects, quiet structure, and rounded containers clear of borders. Keep a short callout arrow's tail near its text and its tip on the named detail's center. Follow /design/arrows.htm for every arrow: callouts start at their words (halfway down the block when wrapped), are all curve like a whiteboard marker flick, and stop 10px+ clear of what they point at; connectors use rounded elbows and shared trunks; a straight sequence's arrows are straight and equal on one center line; a cycle's equal arrows run side midpoint to side midpoint on one rounded loop. On charts, no gridline, data line, or bar crosses text or icons; callouts use kirupa.com blue #0798FF; celebrations go on a tilted Kalam Bold sticker; a peel is a real folded flap. Keep sibling gaps equal; shapes never nearly touch. Inspect arrows and gaps at 2x. Keep annotations off the reading path and scenes stable. Color never carries meaning alone. Callout words take the arrow's color; swoops use open space. Data: Geist Mono Bold, no pixel fonts. No title or caption in the art; the sentence before it sets it up. Tuck connectors under boxes. Leaders take their label's color, not border gray. Match arrows and values to prose and code. Don't theme-tint raster art. Keep editable source, portable fonts, licenses, alt text. Check article and phone sizes, Light and Dark. Follow WCAG 2.2 AA for new or changed content: semantic HTML, keyboard access, visible focus, readable contrast in every theme, text alternatives, labeled controls, and explicit errors. Support zoom/reflow, respect reduced motion, and keep sound optional. Read /design/sections/accessibility.md for acceptance checks. Report unresolved barriers; automated checks alone do not establish conformance.
A KIRUPA teaching illustration shows the objects, relationships, and state that the explanation depends on. Readers should be able to locate the character, follow a connection, or see what changed before reading every label. The references here come from Auto-navigating our Grid using BFS and Understanding Merkle Trees. Their drawing style is separate from the surrounding site's theme.
Rejected example
This supplied example is rejected as an illustration-style reference. Both panels are part of the rejected image; the lower organizer is not an approved example. Words stand in for the physical tools, and the comparison shows no recognizable objects or action. It already has rounded corners and restrained colors, so adding those features alone cannot fix it. A table can be useful when the data is the subject, but labeling two boxes does not illustrate a physical metaphor:
Rejected. Rounded corners and pale fills do not make a physical metaphor visual. Show the tools and the relationship being explained.
Word-only tool boxes
LOCAL PREVIEWActivate this specimen to load its real styles. No saved preferences change.
Redrawing the same concept
For the same concept, draw the same hammer, wrench, and screwdriver in both states. Let their arrangement show the difference. Use a short handwritten instruction and a targeted highlight to identify the wrench. This new redraw applies the guidance; it is not an image taken from a tutorial. Its editable source and self-contained SVG are available below:
New example. Keep object identity consistent, let arrangement show the comparison, and give the callout a specific target.
The same tools, visibly rearranged
LOCAL PREVIEWActivate this specimen to load its real styles. No saved preferences change.
Full-size image / Download SVG / Source
Original Twemoji graphics by Twitter and contributors, CC BY 4.0, bundled graphics version 17.0.3. Fonts: Permanent Marker / Apache 2.0 and Nunito / SIL OFL 1.1. Build template.
Objects and visual vocabulary
Use recognizable objects when the explanation involves objects. In the Merkle example, folders contain files, a monitor identifies the local copy, and a globe identifies the cloud copy. Repeated folder, image, settings, and lock symbols let us compare the same hierarchy without reading every filename. Use the site's KIRUPAicons for consistent colorful icon artwork, or draw simple flat objects that belong to the same visual family. Do not mix platform-native emoji renderings, glossy stock illustrations, and unrelated icon packs in one sequence:
Good reference. Repeat the same symbols and layout so the reader can compare state without decoding a new picture.
Recognizable objects and matching structures
LOCAL PREVIEWActivate this specimen to load its real styles. No saved preferences change.
Shapes, lines, and spacing
Draw clean flat geometry with rounded corners on objects that benefit from them: obstacle tiles, containers, buttons, and annotation boxes. Leave visible padding between each object and the surrounding borders or dividers. If an icon looks cramped, make it smaller instead of letting it touch the boundary. Judge this gap from the painted artwork, not empty space inside its SVG.
Keep structural geometry accurate. The BFS grid has square cells and straight shared boundaries; its rock containers are rounded. Use round line caps and joins on arrows, a consistent stroke weight, and enough space that pointers do not cross labels.
When an icon would otherwise lack contrast against its fill, like a pale icon on a pastel overlap, a thin white outline and a subtle drop shadow are fine. Otherwise, avoid making every element a heavy bordered card, or adding perspective, glass effects, and shadows that do not explain a relationship:
Good reference. Use friendly object geometry without distorting the coordinate system. Reserve stronger color for the relationship being measured.
Rounded objects in a precise grid
LOCAL PREVIEWActivate this specimen to load its real styles. No saved preferences change.
Color and emphasis
Keep the canvas white or near-white, with quiet gray structure and dark readable labels. Use pale blue, yellow, green, or lavender fills to mark a region, then stronger color for its boundary, number, arrow, or changed value. The sampled palette below records the BFS artwork, not new global CSS tokens. Assign colors to explicit roles within an explanation and keep those meanings stable. Do not recolor a diagram with the page palette or assume a sampled accent is safe for small text. Here, blue marks reached cells, dashed outlines identify the newly reached cells, and lavender distinguishes the adjacent rocks:
Good reference. Use fill, number, and outline together to distinguish the new search frontier from blocked cells.
First search ring
LOCAL PREVIEWActivate this specimen to load its real styles. No saved preferences change.
Sampled BFS palette
#FFFFFFDrawing surface#D9DEE5Quiet grid structure#D3D9E0Obstacle tile fill#A9B3BDObstacle tile outline#D8EDFFPreviously reached area#B3DAF9Newly reached cells#DDD0F4Adjacent blocked cells#FFF1C7Destination alignment#DDF3CFSelected route region#E0605ADistance annotation
Consistent sequences
When showing an algorithm, reuse the same coordinate system, object positions, scale, labels, and crop. Change only the state being explained. The next BFS frame keeps Zorb, the rocket, and all four rocks in place while adding the cells reached in two steps. Moving a rock or shifting the grid between frames would make the reader solve a different problem:
Good reference. Hold the scene still while the algorithm's state changes.
Second search ring
LOCAL PREVIEWActivate this specimen to load its real styles. No saved preferences change.
Focus and detail
Reduce detail when it competes with the current explanation. This BFS frame keeps Zorb and his immediate neighbors clear while fading the surrounding grid. The faded content still provides context. Do not fade the subject, a necessary label, or an error until it becomes unreadable, and explain what the change in emphasis means:
Good reference. Use selective emphasis to distinguish what the actor can inspect from what the reader can see.
Local visibility
LOCAL PREVIEWActivate this specimen to load its real styles. No saved preferences change.
Arrows and technical accuracy
Use arrows for a specific relationship, with unambiguous endpoints. Showing every breadcrumb is useful when explaining predecessor links, but it is a poor choice when the task is to identify one route. Compare the unfiltered frame with the focused version below. Its green arrows point from discovered cells back toward Zorb; they are breadcrumbs, not the forward walking direction. Match every arrow, coordinate, count, and label to the accompanying explanation and code:
Avoid for a single-route explanation. This is not inherently an incorrect diagram. It becomes a poor choice when the explanation needs the reader to follow just one route.
All breadcrumbs at equal priority
LOCAL PREVIEWActivate this specimen to load its real styles. No saved preferences change.
Good reference. Make the relevant route easy to follow without changing the underlying scene or reversing the breadcrumbs.
One route emphasized
LOCAL PREVIEWActivate this specimen to load its real styles. No saved preferences change.
Handwritten callouts
Use Permanent Marker for short handwritten callouts. This is the author's confirmed font, not an identification guessed from a raster image. The Merkle reference uses the handwritten 'Not equal!' label above a bracket joining the two root hashes. Reserve this face for a few words that direct attention: 'Only this branch changes', 'Start here', or 'Not equal!'. Keep longer explanations in HTML. Do not set paragraphs, filenames, code, coordinates, or hash values in a marker font, and do not simulate handwriting by rotating ordinary sans-serif words:
Good reference. Use Permanent Marker to direct attention to one relationship, keeping filenames and values in a separate data face.
A short handwritten callout
LOCAL PREVIEWActivate this specimen to load its real styles. No saved preferences change.
Why this arrow works: The Not equal! bracket is a deliberate style choice. Its two arrows are a symmetric pair centered under the label, so Gestalt grouping ties them to Not equal! without the tail touching the words. See Arrows.
Callout arrows
Treat the callout text and its arrow as one annotation, with the tail starting at the words and the head stopping just short of the target. Arrows have their own page, Arrows, with every rule and an avoided and better example of each.
Arrow rules
In short: callouts start at their words and are all curve, like a whiteboard marker flick, with no straight runs and no sharp joints except the head. Structural arrows in diagrams use straight runs, rounded elbows, and shared trunks.
Two layouts are special cases where every arrow matches: a straight sequence uses perfectly straight, equal arrows on one shared center line, centered in equal gaps, and a cycle rides one rounded loop, with every arrow running from the midpoint of a side to the midpoint of the next step's facing side, all the same length. Neither bends an arrow its own way.
On a chart, a callout's text and arrow use the classic kirupa.com blue. Every arrow is one smooth stroke that stops just short of its target and stays clear of labels, borders, and the reading path. The details, examples, and the tool that draws them are on Arrows.
Callouts in published figures
The rules below came from Kirupa's review of figures that agents drew for published articles. Each one is small on its own, but together they decide whether a figure reads as one confident drawing or as a pile of parts. Every pair shows the real published figure before and after the fix. First, give a callout's swoop open space. If the arrow would brush past another label, flip it vertically or move the words to the empty side of the figure, so it uses the free space instead of crowding the content beside it. In the velocity figure, Next spot moved from the crowded upper right, where its curve squeezed past vx = 240, to the empty lower right:
Before vs. after. Bad: the swoop squeezes past the vx = 240 label. Better: flip the arrow vertically and put the words in the empty lower right, so the callout uses free space instead of crowding other content.
Crowded swoop vs. flipped into open space
LOCAL PREVIEWActivate this specimen to load its real styles. No saved preferences change.
Point at the detail you're naming, and aim the tip at that detail's center. A tip that stops on blank paper, beside the shape, or to one side of a small target makes the reader guess. Before shipping, follow the tip and confirm it lands on the thing the words describe: the off-limits band itself, the center of point 2, the thin black line, or the dotted tunnel. When the target is small, let the curve bend more so it drops into the target rather than sliding past it:
Before vs. after. Bad: the Too close! tip lands on empty paper beside the wheel. Better: the tip lands inside the off-limits band, the detail the words name.
Tip on blank paper vs. tip on the detail
LOCAL PREVIEWActivate this specimen to load its real styles. No saved preferences change.
Before vs. after. Bad: a flat arc ends to the right of the circled 2. Better: a curvier drop that aims at the center of the circled 2, the point being referenced.
Beside the target vs. into its center
LOCAL PREVIEWActivate this specimen to load its real styles. No saved preferences change.
Before vs. after. Bad: the tip hangs left of the thin black line. Better: the tip stops just above the line, so there's no doubt where the swap happens.
Pointing near the line vs. at it
LOCAL PREVIEWActivate this specimen to load its real styles. No saved preferences change.
Write a callout's words in the same color as its arrow, or a slightly darker shade of the same hue, so the eye reads the words and the arrow as one note. Dark ink words with a dark red arrow look like two separate things that happen to sit near each other. tools/build_ai_fundamentals_images.py fails a figure whose callout words don't match their arrow's color (same hue, at most 20% darker):
Before vs. after. Bad: dark ink words with a dark red arrow read as two separate things. Better: the words wear the arrow's color (or a slightly darker shade), so they read as one note.
Dark words vs. words in the arrow's color
LOCAL PREVIEWActivate this specimen to load its real styles. No saved preferences change.
Leader lines, the short straight lines that tie a plain label to a spot in a chart or diagram, must stand out from the borders, axes, and gridlines around them. Never draw them in the quiet structural gray (#a9b3bd or lighter): next to a gray border they disappear, and the reader can't tell which edge the label means. Draw a leader in its label's own color, or in dark ink (#1e2933) when the label is ink, at least 2.5px wide. Dashed drop lines from a value to its axis take the value's color the same way:
Before vs. after. Bad: leader lines in the same quiet gray as the border they touch blend into it. Better: draw each leader in its label's color, or dark ink, so it stands out from borders, axes, and gridlines.
Gray leader lines vs. contrasting ones
LOCAL PREVIEWActivate this specimen to load its real styles. No saved preferences change.
Type, titles, layering, and icons
Never set figure labels in a pixel font unless the figure is about pixels. Data labels, numbers, code, and identifiers use a thick, noticeable monospace: Geist Mono Bold, bundled as ai_fundamentals/images/fonts/geist-mono-700.ttf with ligatures removed, so every character reads on its own. Time units sit right against their number, with no space: 2.3s, 9.6s, 10ms, never 2.3 s. The renderer spaces it to the same advance the earlier labels used, so layouts keep their room:
Before vs. after. Bad: a pixel font makes every number blocky and harder to scan. Better: a thick, noticeable monospace, Geist Mono Bold, for data labels; keep pixel fonts for figures about pixels.
Pixel font vs. thick monospace
LOCAL PREVIEWActivate this specimen to load its real styles. No saved preferences change.
No title or caption of any size or weight inside the art, because the sentence before the figure sets the context. Legends, axis labels, and data labels are fine. When a title or caption comes out, trim the empty band it leaves so the drawing starts near the top:
Before vs. after. Bad: a bold title restates the prose and pushes the drawing down. Better: let the sentence before the figure set it up and start the drawing near the top.
Title inside the art vs. no title
LOCAL PREVIEWActivate this specimen to load its real styles. No saved preferences change.
Layer shapes the way real objects stack. When a road, bar, or connector meets a container, draw it first and tuck it under the container, so the container's rounded edge and outline stay whole. Never let a later shape paint over an outline it should slip behind:
Before vs. after. Bad: the road paints over the green block's rounded right edge. Better: draw the road first and tuck it under the block, so the block sits on top.
Road over the block vs. road under it
LOCAL PREVIEWActivate this specimen to load its real styles. No saved preferences change.
Draw icons with the same care as everything else. When a stock icon looks lopsided, too thin, or crammed against its neighbor, draw a simple flat version that matches the figure: a wooden hourglass with real sand, a flat face with clear brows and a bead of sweat, sized and spaced like siblings and grounded with a soft shadow. Keep each label inside the region it names; the Riemann Hypothesis label belongs inside the dug-out ground, not below it:
Before vs. after. Bad: stock icons that look lopsided, thin, or crammed together. Better: draw simple flat versions that match the figure, sized and spaced like siblings.
Stock icons vs. drawn with care
LOCAL PREVIEWActivate this specimen to load its real styles. No saved preferences change.
Before vs. after. Bad: the arrow ends away from the dotted tunnel, and the label falls below the region it names. Better: the tip lands on the tunnel and the label stays inside the ground.
Arrow off the tunnel vs. on it
LOCAL PREVIEWActivate this specimen to load its real styles. No saved preferences change.
Spacing and breathing room
Spacing follows the same discipline as arrows: consistent gaps and room to breathe. Measure gaps from painted edges, then make the layout match:
- Use equal gaps between sibling elements in a row or column.
- Give a central shape the same gap above and below, or left and right. A circle sitting 11px from the rows above and below it looked cramped; 56px fixed it.
- Never let shapes nearly touch. Move them apart or make them smaller rather than closing the gap.
- Reuse a small set of gaps, for example 24px between siblings and 48-56px between groups, measured from painted edges.
- In a three-item figure like a Venn diagram with captions outside the shapes, put the two top captions beside the upper-outer side of their shapes, not above them, so all three captions sit evenly around the figure.
In this comparison, equal 24px sibling gaps and the same 56px above and below the circle replace cramped 11px gaps:
Avoid vs. better. Bad: the circle sits 11px from the rows above and below, sibling gaps vary, and two boxes nearly touch. Better: every sibling gap is 24px and the circle has the same 56px gap above and below, so each group has room to breathe.
Cramped, uneven spacing vs. equal gaps
LOCAL PREVIEWActivate this specimen to load its real styles. No saved preferences change.
Charts
Charts follow one hard rule: no line ever crosses text or an icon. That covers gridlines, data lines, data markers, and bars. Put totals and annotations in a header band above the plot, end gridlines before any end-of-line labels, and route a callout's arrow so it never touches a data line either.
Check it in a browser rather than by eye: collect the outline of every text and image element, rotated with it (a tilted label's axis-aligned box is oversized and gives false hits), sample points along every gridline and data path, and expect zero hits.
A chart's handwritten callout uses the classic kirupa.com blue, --primary (#0798FF) from the site header, for both its words and its arrow. That blue is only 3.02:1 on white, so it's fine for a large handwritten callout (about 34px) and for the arrow, but not for small text. Draw the data series in a different hue from the kirupa-blue callouts on the same chart, so the annotation never blends into the data.
When a callout has plenty of room, push its curvature out: one broad, smooth sweep, like a quarter of an ellipse, that starts bending early, rather than running nearly straight and then bending tightly near the target. In this posts-per-week chart, the callout sits in the header band, and its arrow sweeps in one long quarter-ellipse from the words down into the week people passed the bots, without touching either line:
Good reference. Keep annotations in a header band above the plot and stop gridlines before end-of-line labels, so no line crosses text or an icon. The callout's words and arrow use the classic kirupa.com blue, and the arrow never touches a data line. With plenty of room, the arrow is one broad quarter-ellipse that starts bending early instead of bending tightly near the target.
A kirupa.com blue callout that never crosses a line
LOCAL PREVIEWActivate this specimen to load its real styles. No saved preferences change.
A celebration headline, like a big percentage jump, goes on a sticker that looks slapped on: tilted about -6°, with a sunny yellow face (#FFE36E), a white die-cut edge, and a soft blurred drop shadow. Set its words in a legible handwriting face, Kalam Bold (/design/illustrations/kalam-bold.ttf, about 78px, dark ink #1e2933); a pixel display face was too hard to read at a glance. A party popper can perch on one corner.
Playful heckling captions can crowd around it, each in Kalam Bold (about 34px) in kirupa.com blue with its own face icon and a blue arrow pointing at the sticker. The pointing can be comical, like one clean loop-de-loop, but every tail still leaves from its caption's first or last letter on the midline, or straight up or down from its middle.
If a corner peels, make it look like real paper:
- Cut the corner off along a slightly bowed fold line with a clipPath.
- Fold it back as a flap that mirrors the missing corner across that fold (its tip is the corner reflected across the fold line).
- Fill the flap with the sticker's pale backing, darker at the fold and white at the tip.
- Let it cast a soft blurred shadow onto the sticker.
Never paste a loose decorative triangle on a corner. The whole celebration lives in the header band, so no bar or gridline runs through it:
Good reference. Draw the bars in green, a different hue from the kirupa-blue captions, so the data and the heckling stay distinct. Put a celebration on a slapped-on sticker in a legible handwriting face, peel its corner as a real folded flap rather than a loose triangle, and let blue captions heckle it. Each caption's tail leaves from its first or last letter on the midline, never a corner, and everything stays in the header band above the plot.
A slapped-on sticker, heckled by captions
LOCAL PREVIEWActivate this specimen to load its real styles. No saved preferences change.
Data labels
Give data labels a separate readable type role. Filenames and hash-like values need a clear monospace face; coordinates and ordinary object labels need a clean sans-serif. The exact families of all rasterized data labels cannot be recovered from these PNGs. For new drawings, use bundled Nunito for labels and Geist Mono Bold for data; never a pixel font such as Departure Mono unless the figure is about pixel art. These are choices for new drawings, not claims about the original files. Keep labels beside their objects. In this Merkle state, blue replacement values and visible cross-outs identify the changed file, Config folder, and Project root; the other entries retain their previous values:
Good reference. Use position, replacement labels, and cross-outs alongside color to make the changed dependency chain visible.
Changed values within a stable hierarchy
LOCAL PREVIEWActivate this specimen to load its real styles. No saved preferences change.
Alternative representations
A second representation should preserve the objects and relationships from the first. The Merkle tree view uses the same folder and file symbols as the earlier directory view. Its highlighted path runs from settings through Config to Project, while the unaffected branches recede. Avoid replacing concrete objects with identical anonymous boxes when their identity helps explain the relationship:
Good reference. Keep visual vocabulary consistent when changing representations, and emphasize only the relevant dependency path.
The same objects in a tree view
LOCAL PREVIEWActivate this specimen to load its real styles. No saved preferences change.
Why this arrow works: Each arrow points at the folder icon and its label as one grouped destination, so the whole group is the target. The arrows follow the tree's own connectors and keep a clear gap from that group. See Arrows.
Drawing dimensions
For new vector drawings, a useful starting point is a 900px-wide artboard, roughly 32px outer padding, 2-4px structural strokes, 12-24px object corner radii, 24-28px ordinary labels, and 28-36px handwritten callouts. These are working recommendations at that artboard size, not measurements required by every existing illustration. Scale the stroke and type together. Keep arrowheads proportionate (open chevrons with 14-18px arms on a 4px stroke), allow a clear gap between a pointer and its label, and check the result at the actual article width before exporting.
Export and theme behavior
Keep an editable SVG or the original authoring file. When exporting SVG, make font and icon dependencies portable: embed permitted resources or outline a delivery copy of the text while retaining an editable text source. A font-family declaration alone does not bundle a font, and an SVG loaded through an img element cannot be assumed to fetch external fonts. For PNG, export enough pixels for the intended display size, normally 2x; keep lines and lettering sharp. Do not use CSS filters to invert a flattened drawing for dark mode. Retain a light artboard or create a separately checked dark version.
Mobile and accessibility
On narrow screens, do not shrink a dense diagram until its labels are unreadable. Provide a full-size image link, a focused crop, a stacked version, or a keyboard-scrollable region for a genuinely two-dimensional drawing. Every example here has a full-size link and a local surrounding-theme preview. The original image colors and fonts remain fixed. A source image can be a useful composition reference without being an accessibility template: new essential text still needs 4.5:1 contrast, and essential graphical distinctions need 3:1 or another equally clear visual cue.
Agent checklist
Before delivery, introduce the figure in the preceding paragraph and write alt text describing its point, not just its contents. Check the image against the exact prose and code: the same objects, coordinates, direction, counts, and state. Inspect every arrow against the arrow rules and every gap against the spacing rules. On a chart, check in a browser that no gridline, data line, or bar crosses any text or icon. Inspect Light and Dark presentation, mobile readability, clipping, font loading, and color-independent cues. Reject decorative arrows with no target, random emoji, tiny labels, unrelated changes between frames, and word-only boxes pretending to be the objects in the example. Read illustrations.json for the palette, font files, example provenance, and production checklist.
- Use meaningful colorful objects, restrained rounded geometry, stable visual roles, and short Permanent Marker callouts.
- Keep objects inset from borders and dividers. Group each callout with its short pointer without interrupting the comparison's reading order.
- Follow /design/arrows.htm for every arrow. Keep sibling gaps equal and never let shapes nearly touch.
- On charts, never let a gridline, data line, or bar cross text or an icon; callouts use kirupa.com blue, and celebrations go on a slapped-on Kalam Bold sticker whose peel looks like real paper.
- Keep new illustrations technically consistent with their prose and code; preserve scene geometry across a sequence.
- Do not treat an illustration palette as a replacement for site tokens, use marker lettering for data, or claim an unverified font match.
- Write a callout's words in its arrow's color, or a slightly darker shade of the same hue.
- Aim every callout tip at the center of the detail it names, and give the swoop open space; flip it before it crowds other text.
- Use a thick monospace (Geist Mono Bold) for data, never a pixel font; no title or caption inside the art (the sentence before the figure sets it up); tuck connecting shapes under containers; and draw icons that look deliberate.
- Draw leader lines in their label's color or dark ink, never the structural gray of nearby borders, axes, and gridlines.






















