Mailagents
Back to the homepage

mailagents.dev / foundations

Clarity, by design.

A shared language for the website, the console, and every conversation in between.

01

Color tokens

Near-black surfaces, clear text, and mint for actions and selection. Mint, amber, and red communicate status. One dark theme everywhere.

Canvas--canvas
Surface--surface
Elevated--elevated
Text--text
Body--text-secondary
Secondary--muted
Accent / links--accent
Accent / actions--accent-solid
Accent / selected--accent-subtle
Success--success
Warning--warning
Danger--danger
Host Grotesk / Interface & display

Made for
the next reply.

Distinctive shapes. Strong headings. Comfortable body text.
IBM Plex Mono / Code & data

inbox.created
agent: research-agent
status: ready

A distinct voice for technical information.

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

468
02

Actions & feedback

One clear primary action. Familiar, accessible states.

Primary · Secondary · Ghost · Disabled · Loading

DeliveredReceivedNeeds attentionFailedDraft
03

Controls with context

Labels, helpful validation, and explicit feedback.

A readable name for your agent’s inbox.

Interactive specimen

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.

04

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.

05

Put the pieces to work.

The same components, assembled into a complete interaction.

From request to inboxInteractive demo
import { Mailagents } from "@mailagents/sdk";
 
const client = new Mailagents();
const { data: inbox } = await client.createInbox(
  { local_part: "research-agent" },
  process.env.MAILAGENTS_IDEMPOTENCY_KEY!,
);
Live inbox / demo

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.