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 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.
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 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 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.
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.
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 →