Skip to content

How to build a design system for AI-native applications

What a design system needs once software acts on its own: execution states, human oversight, evidence, usage, motion and documentation that agents can read.

A design system for an AI-native product starts where every design system starts: tokens, type, spacing, accessible primitives. What changes is the layer above. Once software plans, waits, acts and reports on its own, the interface needs a shared vocabulary for states that conventional systems never had to name.

This article lays out what that system needs, layer by layer, and what we have learned building Attuna, an open-source design system for agentic interfaces that is still in early preview.

Start with the foundations

None of the AI-specific work helps if the foundations are weak. The usual decisions still come first:

  • Tokens for colour, type, spacing, radius, elevation and motion, named by role (surface, muted text, border) rather than by value. The Design Tokens Community Group format is worth following if tokens need to travel between tools.
  • A type scale that handles long-form reading, because AI products display a lot of generated prose, and dense interface text at the same time.
  • Accessible primitives for focus management, dialogs, menus and popovers. Build on a proven headless library such as Base UI rather than writing these again.
  • Status colours that are never the only signal: every state also has an icon and a word.

AI products add one foundation-level requirement that is easy to miss: a distinct colour for working. Success, warning and error are not enough when the most common state on screen is “in progress”. Attuna’s colour foundation includes one.

The states AI adds

Conventional components have a familiar set of states: rest, hover, focus, pressed, disabled, loading, error. AI-native components need more, and they need them consistently across the system:

States an AI-native system should name once and reuse everywhere.
StateWhere it appears
PlannedSteps and tool calls the agent intends to take
WorkingMessages, steps, calls, whole agents
StreamingReplies being written
Waiting for inputAgents blocked on an answer
Needs approvalAgents blocked on a decision
StoppedWork the person ended early
Completed and failedEverything above, with what happened
RestoredWork returned to an earlier checkpoint

The point of naming them in the system is consistency. If “waiting” looks one way in the sidebar and another way in a message, people have to learn the product twice. The guide to agentic UI design explains what each state asks of the person.

Component architecture

A structure that has worked well for us has four layers:

  1. CompositionsWhole surfaces: a workspace, a conversation, a run view.
  2. Agentic componentsPrompt input, messages, status, tool calls, progress, sources, usage.
  3. Core componentsButton, field, dialog, popover, collapsible, badge, progress.
  4. FoundationsTokens, type styles, motion curves, accessible primitives.
Each layer only uses the ones below it. Agentic components never reach past the core components to the tokens directly.

Agentic components are built from core ones: a tool call is a collapsible with a status mark; a usage notice is a recessed surface with a meter. That keeps focus rings, motion and spacing consistent for free. It also means that improving a core component improves every agentic one that uses it.

Keep agentic components independent of any particular AI runtime. They should take a status and callbacks, not a model client. Runtimes change quickly: in November 2026 alone, Vercel’s AI Elements began moving into shadcn/ui, and Google’s A2UI reached 1.0. A component that only knows “working” and “onStop” survives those changes.

Agentic families

Grouping agentic components by the job they do makes a system easier to learn and to extend. These are the families in Attuna today:

Agentic families and their components in Attuna.
FamilyJobComponents
ConversationAsking and answeringPrompt Input, Message, Message Actions, Suggested Replies, Workspace Context, Context Chip
NavigationMoving between views and conversationsIcon Rail, Chat Sidebar
ExecutionFollowing and controlling workAI Loader, Agent Status, Tool Call, Task Progress, Checkpoint, Agent Handoff, Run History
SourcesEvidence for an answerSource Citation, Sources List
OutputsWhat the agent changedChange Summary
UsageCost and room leftContext Meter, Usage Limit
VoiceSpeaking and listeningVoice Session

Human oversight deserves its own attention as the system grows. Today, Attuna expresses approval through Agent Status’s approval state and core dialogs; a dedicated approval component is not available yet. The guide to human-in-the-loop UX covers what such a component has to show.

Context and usage

AI products have constraints that conventional software doesn’t surface: a context window that fills up, and allowances that run out. Both should be visible before they cause a failure, not explained afterwards.

In the composer
In settings

Weekly messages

82% used

Running low412 of 500 messagesResets Monday at 09:00

Attuna’s Context Meter and Usage Limit. Hover or focus the ring to see the exact count; click it for the breakdown.

The rule that matters most: show measured numbers only. A context meter that estimates tokens, or a usage bar that animates towards a guess, teaches people to ignore it. Context Meter takes counts from your application and never estimates; Usage Limit warns from 80% and says what happens until the reset.

Responsive behaviour

Agentic interfaces are dense, and they have to work on phones. A few decisions help:

  • Decide which detail disappears first. Tool names, durations and secondary labels can hide on narrow screens; states and actions cannot.
  • Keep the composer and Stop within reach of the thumb and above the keyboard.
  • Let side panels (sources, files, run history) become sheets rather than squeezing the conversation.
  • Truncate long titles in rows, with the full text available on expansion.

Motion

AI interfaces are full of change: text streaming in, steps completing, panels opening. Without restraint, they never stop moving. Treat motion as part of the system, with a small set of named durations and curves, and a clear purpose for each: entering, changing state, drawing attention.

  • One small working mark per region, not one per item.
  • Short fades for state changes, so they register without distracting.
  • Respect reduced motion everywhere. WCAG’s animation from interactions criterion is a good baseline.

Attuna’s motion foundation defines those durations and curves once, and the guide to AI loading states applies them to waiting.

Documentation for people and agents

Design systems are now read by coding agents as often as by people. That changes what good documentation looks like:

  • Plain source. Components that live in the project as readable files are easier for agents to use correctly than compiled packages. This is the idea behind shadcn/ui’s open code approach.
  • An index for machines. An llms.txt file lists every page with a one line description, so an agent can find the right component without crawling.
  • Rules in prose. “Start each step title with a verb” is guidance an agent can follow. A screenshot is not.
  • Behaviour, not just props. Document what each state means and when to use it, because that is where agents and people both go wrong.

How Attuna approaches it

Attuna is our attempt at this, and it is early. Today it has seven foundations, 31 core components and 22 Agentic components, with a composed Interface showing them together. Every component is a single React file built on Base UI and Tailwind CSS, with one theme file of tokens.

Attuna isn’t on npm or a component registry yet. The installation guide gives you a prompt to hand to a coding agent, which checks your project and copies in the theme and the components you choose, or the same steps to follow by hand. The coding agents guide covers working with Attuna in Claude Code, Codex and other coding agents, and the documentation is published as an llms.txt index.

Some things are still missing, including a dedicated approval component. We document what exists and leave the rest out of the navigation until it’s ready.

A state inventory

Before adding a new agentic component to a system, check it against this list. Every row should have an answer, even if the answer is “not applicable”.

A checklist for any agentic component.
QuestionWhy it matters
What does it look like before anything happens?Empty and planned states are the most often forgotten.
How does it show work in progress?With a label that names the work, not a generic spinner.
Can the person stop it, and what does stopped look like?Stopping is a state, not just an action.
How does it fail, and what is the way forward?One sentence and one action, near the failure.
Where is the evidence?Output, sources or diffs, one step away.
Is every state readable without colour?Icon and word, always.
What do screen readers hear, and when?Polite status changes, not every update.
What happens with reduced motion?The state must still be clear when nothing moves.
Does it depend on a specific AI runtime?It shouldn’t. Status and callbacks travel; clients don’t.

For the question of when an agent should render interface at all, read generative UI vs conversational UI.