Visual library
Bookmarks, images and screenshots, together in one grid.
Small, stripped-down pieces of the product for bento and feature cards: a surface, a few real words, skeleton lines for the rest, one focal piece. Nine recipes to copy, and a stage that acts one out with a scripted cursor.
Inspired by Stageshow by Benji Taylor.
A spot illustration is a small, stripped-down piece of the product, drawn instead of a screenshot. It shows one idea at a size a screenshot can’t be read at, and it never goes out of date when the real UI changes.
The skill builds them from four parts and one rule: real words only where they name the feature, skeleton lines everywhere else. Then it can stage one: a short script, a drawn cursor, and the feature’s verb acted out beat by beat. Hover, tap or tab to any card below to play its move.
Bookmarks, images and screenshots, together in one grid.
Capture from Mac, the web and iPhone into one place.
Notes, articles and the words inside screenshots.
Record a thought before it disappears.
Attention is all you need
Mark up articles and PDFs, notes beside the source.
Revisit articles, links and PDFs faster.
Comments and mentions, stacked, newest on top.
Every change on every device, in the background.
Talk it through next to the work itself.
Screenshot. Everything at once, too small to read, and wrong the next time the UI ships.
Spot. One component, the words that sell it, readable at card size, and drawn in your own tokens.
import type { CSSProperties, ReactNode } from "react";
import { cn } from "@/lib/utils";
// The four parts every spot illustration is made of: a stage that centres it,
// surfaces (the white UI fragments), skeleton lines standing in for text, and
// at most one focal accent. Spots are decoration: the card's title says what
// the feature is, so every spot is aria-hidden.
// The one motion every spot uses: 500ms on the lift curve, the transform
// properties plus width and opacity, nothing under reduced motion. Moves are
// written `motion-safe:spot-on:…`, the card being the group: `spot-on` (a
// variant in globals.css) is the card's hover on devices that can hover, or
// the card's `data-on`, which a tap, a key or the grid's play-through sets.
export const SPOT_EASE =
"transition-[translate,rotate,scale,width,opacity,color] duration-500 ease-[cubic-bezier(.32,.72,0,1)] motion-reduce:transition-none";
// Delay for item i of a staggered move, spreading out from `from`: one gesture
// rather than a queue.
export const stagger = (i: number, from = 0, step = 40): CSSProperties => ({
transitionDelay: `${Math.abs(i - from) * step}ms`,
});
// The art well of a feature card. Fixed height so a row of cards lines up;
// the spot sits a little above centre, where the eye lands first.
export function SpotStage({ children, className }: { children: ReactNode; className?: string }) {
return (
<div
aria-hidden="true"
className={cn(
"relative isolate flex h-52 items-center justify-center overflow-hidden px-6 pb-4 select-none",
className,
)}
>
{children}
</div>
);
}
// One UI fragment: a white surface, one hairline ring, one soft shadow. `focal`
// marks the piece that lifts on the card's hover; give it to one surface only.
export function SpotSurface({
children,
className,
focal,
style,
}: {
children?: ReactNode;
className?: string;
focal?: boolean;
style?: CSSProperties;
}) {
return (
<div
style={style}
className={cn(
"rounded-xl bg-white shadow-[0_1px_2px_rgba(0,0,0,0.04),0_4px_12px_-4px_rgba(0,0,0,0.06)] ring-1 ring-black/[0.06]",
"dark:bg-zinc-800 dark:shadow-none dark:ring-white/[0.06]",
focal && [SPOT_EASE, "motion-safe:spot-on:-translate-y-1"],
className,
)}
>
{children}
</div>
);
}
const pct = (w: number | string) => (typeof w === "number" ? `${w}%` : w);
// A bar standing in for a line of text. `w` is a percentage of its row (or any
// CSS width); `hoverW`, if given, is the width it eases to on the card's hover;
// `strong` is the line that reads as a heading. Widths go through CSS
// variables, not an inline width, so the hover class can still win.
export function SkeletonLine({
w = 100,
hoverW,
strong,
className,
style,
}: {
w?: number | string;
hoverW?: number | string;
strong?: boolean;
className?: string;
style?: CSSProperties;
}) {
return (
<span
className={cn(
"block h-1.5 w-(--w) shrink-0 rounded-full",
strong ? "bg-zinc-300 dark:bg-zinc-600" : "bg-zinc-200 dark:bg-zinc-700",
hoverW !== undefined && [SPOT_EASE, "motion-safe:spot-on:w-(--hw)"],
className,
)}
style={{ "--w": pct(w), ...(hoverW !== undefined && { "--hw": pct(hoverW) }), ...style } as CSSProperties}
/>
);
}
// A paragraph of skeleton lines. Uneven widths, last line shortest: equal bars
// read as a table, not as text. `hoverLines` re-flows them on hover, top line
// first, as if the text were being rewritten.
export function SkeletonText({
lines = [100, 86, 92, 58],
hoverLines,
className,
}: {
lines?: number[];
hoverLines?: number[];
className?: string;
}) {
return (
<span className={cn("flex flex-col gap-2", className)}>
{lines.map((w, i) => (
<SkeletonLine key={i} w={w} hoverW={hoverLines?.[i]} style={stagger(i, 0, 60)} />
))}
</span>
);
}
// A tile standing in for a photo: a sun and two hills, no real image to load,
// license or keep in sync with the theme.
export function SpotPhoto({ className }: { className?: string }) {
return (
<span className={cn("relative block overflow-hidden bg-zinc-200 dark:bg-zinc-700", className)}>
<span className="absolute top-[20%] right-[20%] aspect-square w-[16%] rounded-full bg-zinc-50 dark:bg-zinc-500" />
<span className="absolute -bottom-[30%] -left-[10%] h-[70%] w-[80%] rounded-[50%] bg-zinc-300 dark:bg-zinc-600" />
<span className="absolute -right-[20%] -bottom-[40%] h-[75%] w-[90%] rounded-[50%] bg-zinc-400/70 dark:bg-zinc-500/70" />
</span>
);
}