Context

A design system you can click, not just read

Aster UI is an agentic interface design system rebuilt as working code. Twenty-four components reconstructed from the source system, down to its variables, variants and layer stacks, then wired up so they actually respond — same tokens, same geometry, real behaviour. One file, no dependencies.

The Aster UI landing view: a headline, a 24 / 38 / 0 stat row, and a live agent-run panel.
The library, running. Not a spec sheet — a page you can type into, play an agent run, and open with ⌘K. Open the live library →

The problem

A reference that looks right but doesn’t run

A component library delivered as static frames tells you what a thing should look like, not how it behaves — and in an agent interface, behaviour is most of the point. The states that matter only exist in motion, and once they’re flattened into pictures they drift away from the code that ships.

States are invisibleA prompt moving idle → running → interruptible, a tool call queued then failed, reasoning counting up — none of it reads in a still frame.
Specs driftHand-off values get eyeballed and re-typed at the point of use, so the built thing slowly stops matching the system.
The goal: rebuild the system as the real thing — every token, variant and state present and clickable, with nothing hardcoded at the point of use.

Approach

Rebuild from the tokens up, then make it move

I reconstructed the system in the order it was built: tokens first — colour, spacing, radius, the palette pairs — then the primitives that read from them, then the composed agent components on top. Once the geometry matched the source layer for layer, I wrote the behaviour by hand, with no framework and no dependencies, so every state is genuine rather than a mock-up of one.

The Message component showing a user turn in an elevated bubble and a full-width agent reply.
Message. A user turn sits in an elevated bubble; the agent turn runs full width because it’s the longer read. Row actions stay hidden until hover or keyboard focus, so a long thread isn’t a wall of buttons.

The work

Twenty-four components, one composable flow

The set spans four groups — Agent (prompt, message, reasoning, tool call, task list, approval, citation, agent card), Shell (side bar, nav bar, pop-up, command menu), Content (code block, file card, image grid, empty state) and Primitives (button, icon button, chip, tag, avatar and more). They compose: the hero plays a single agent run that threads message, reasoning, a tool call, a code block and an approval through one conversation.

A syntax-highlighted code block with a copy action, above a file card showing uploading, ready and failed states.
Content components. The code block the agent wrote, with copy; and one file card that covers uploading, ready and failed. Progress is a bounded track, not a spinner, because the wait has an end the user can see.

A closer look

The detail that only survives in code

The Agent avatars make the case for rebuilding rather than redrawing. Each identity isn’t a gradient fill — it’s a stack of rotated, blurred rounded rectangles lit by inset glows, exactly the way the source symbols are constructed. Reproduced layer for layer, then scaled to every size by a single custom property.

Avatar variants: monogram and logo avatars, six glowing agent identities, four sizes, and an overlapping avatar group.
Avatar. Seventeen variants from one component — monograms, the agent identities, four sizes and an overflowing group — all driven by the same tokens and one scale property.

Foundations

Read from the file, not eyeballed

Every value on the page comes from the library’s own tokens: the palette pairs, the interaction overlays, the 4 / 6 / 8 / 12 / 16 spacing steps and the four radii. Thirty-eight tokens, named to mirror the source system’s own paths, so nothing is a hardcoded hex at the point of use.

The Tokens section: palette swatches with hex pairs, background and text colour tokens, and the radius scale.
Tokens. Palette, colour, spacing and radius — the layer everything else is built on. Change a value here and it propagates, the same way it does in the source system.

Reflection

What this project taught me

Rebuilding a design system as working code surfaces every decision a static spec lets you skip. You can’t eyeball a behaviour — a state either exists and responds or it doesn’t — so the discipline forces the system to be honest about how it actually works, not just how it photographs.

Keeping it to one file with zero dependencies was the other deliberate constraint. It made the library portable and legible end to end, and it’s the clearest argument I can make for the thing I care about most: shipping components that behave, not pictures of components that might.

Aster UI is a personal reconstruction, built to study how a modern agent-interface system holds together. Open the live library →