Pattern library

UI Patterns

A UI pattern library built for coding agents. 40 patterns, each shipping a copy-paste prompt that rebuilds it inside your own codebase — plus a live preview and the source behind it.

Every pattern, three ways

Preview

The pattern running live in an isolated frame, in whichever theme you are reading in.

Source

Its markup, styles and behaviour, plus a single runnable file carrying its own palette.

Prompt

A written spec that rebuilds the pattern from scratch — including why each decision is the way it is. Paste it into Claude Code, Cursor, or any coding agent.

The prompts are the point. Each one is written to survive being handed to an agent with no other context: it names the surfaces the pattern belongs on, spells out the constraint that makes it work, and calls out the failure it exists to prevent. Nothing here is a dependency you install.

40 patterns
#01
Data displayAdded Aug 11, 2026

Windowed schedule grid

Rows of resources against a fixed time window, where each block is sized by its overlap with the window rather than by its own duration.

#03
Data displayAdded Aug 11, 2026

Cross-highlight matrix

A two-axis lookup table with both headers sticky, hover lighting the full row and column at once, and a durable click-to-pin selection for touch.

#10
Data displayUpdatedUpdated Sep 12, 2026

Plan preview tree

A dry run shown as a before-and-after tree with counts now, after, and the difference.

#32
FormsAdded Aug 28, 2026

Undo toast

A destructive action with no confirm dialog, held behind a toast and committed when it expires.