mailagents.dev / foundations
Clarity, by design.
A shared language for the website, the console, and every conversation in between.
Color tokens
Near-black surfaces, clear text, and mint for actions and selection. Mint, amber, and red communicate status. One dark theme everywhere.
Made for
the next reply.
inbox.created
agent: research-agent
status: ready
Spacing scale
4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 96
Space separates sections and keeps related content together. Borders define controls, panels, and rows that need a clear boundary.
Corner radii
Actions & feedback
One clear primary action. Familiar, accessible states.
Primary · Secondary · Ghost · Disabled · Loading
Controls with context
Labels, helpful validation, and explicit feedback.
Try the whole state.
Submit an empty name to see validation, or create a demo inbox to see the loading and success states.
This example runs locally. No account or real inbox is created.
Nothing gets left blank.
Every state tells you what happened and what comes next.
Your first conversation starts here.
Create an inbox to give your agent an address.
Put the pieces to work.
The same components, assembled into a complete interaction.
import { Mailagents } from "@mailagents/sdk";
const client = new Mailagents();
const { data: inbox } = await client.createInbox(
{ local_part: "research-agent" },
process.env.MAILAGENTS_IDEMPOTENCY_KEY!,
);
This is where replies land.
Run the request to create a demo inbox.SDK & CLI preview · source builds. This demo runs locally. Setup & retry safety
A request. An inbox. A conversation.
Keyboard-accessible tabs, copy feedback, loading states, and an inspectable result. This is the same component used on the homepage.
Run the request, simulate an incoming email, then reply as an agent.
Midnight is the only theme. Motion respects your system’s reduced-motion preference.