# Components

Sizes, colors and radii are in [tokens.md](tokens.md).

## Tile

A rounded square that stands for one agent.

- **With a logo:** the agent's mark in one color, the agent's foreground color, on the agent's background color. The mark fills 60% of the tile. Where the logo comes from is in [logos.md](logos.md).
- **Without a logo:** up to two initials in the foreground color, semibold.
- A dark logo gets a light tile. A tile as dark as the notch would vanish.
- The tile never changes with state. State belongs to the badge.
- Three sizes: 20 in the ear and in lists, 24 in settings rows, 28 in a panel header.

## Stack

Tiles in the ear, in the order their agents were announced.

- Three at most. Each overlaps the previous by 6 and carries a 1.5 border in the notch color, so the overlap reads as a gap. The border is outside the tile: a tile in a stack still measures 20, and its border only shows over the tile before it.
- More than three: the count follows as `+N`, label size, secondary color, tabular figures.
- Order in the ear: tiles, count, badge.

## Badge

A 7 point circle in a state color. One per ear, showing the most urgent state. No badge when everything is working.

## Status icon

A 14 point icon at the start of a session row.

| State | Icon |
|---|---|
| Working | A ring: a track at white 18% and an arc in the text color that turns once a second. With known progress the arc shows it and does not turn; it breathes instead: it shrinks to 84% at 70% opacity and comes back, every 1.2 s. Both stay still with Reduce Motion. |
| Needs you | An 8 point amber dot |
| Done | A green check, 2 point stroke, round caps |
| Failed | A red cross, 2 point stroke, round caps |

## Ring

Progress around a point: a 3 point track at white 14% and a round-capped arc in the text color, starting at twelve o'clock. Used in live mode when the agent reports a measurable step.

## Chip

A label with a border, 5 radius, 1 by 6 padding, label size.

- **State chip:** text in the state color, border in the same color at 50%.
- **Neutral chip:** secondary text, hairline border. In Geist Mono when it shows a path or a branch.

## Timer

A time the app draws and moves by itself, so a plugin is not asked again every second: a countdown to a moment, or the time since one. Minutes and seconds, `18:42`, and hours once past one, `1:02:03`, with tabular figures and the roll of the digits of the theme; a countdown stops at `0:00`. It ticks once a second only while the notch can be seen, as the time of live does, and never with Reduce Motion rolling. VoiceOver reads the time in words, "18 minutes, 42 seconds left". Used by an indicator chip in peek and by the timers block of a plugin panel.

## Button

- **Primary:** primary fill, text on primary, no border. One per surface.
- **Secondary:** raised fill, hairline border, primary text.
- Height 28, or 32 in a request. Radius 6. Label at body size, medium.
- A button that answers to a key shows its keycap after the label.

## Keycap

The key that triggers something: caption size, secondary text, a border at white 18%, radius 5, 16 line height, 5 to 6 horizontal padding. Inside a primary button the border is black at 22% and the text dark.

## Code

Geist Mono on a raised fill with a hairline border, radius 10, padding 10 by 12. Wraps; never scrolls sideways.

## Switch

30 by 18 with a 14 point knob. On: accent fill, white knob. Off: the switch-off token, with a secondary knob on dark and a white knob on light.

## Segmented control

A track with 2 padding and radius 7 holding items 22 tall with radius 5. The selected item is lighter than the track and medium weight. In the notch, as in peek, the track is the raised fill and the selected item the primary fill with the text on primary; in the settings window it takes the colors of the window.

## Row

The unit of every list.

- 32 tall, or 42 with a second line. Radius 6. 8 to 10 horizontal padding.
- Leading: a status icon or a tile. Then the title. Trailing: a time, a count, a chip or a keycap.
- Under the pointer: raised fill. Selected by keyboard: raised fill and a 2 point accent border.

## Project row

The row of a project group in peek and in the command bar: a row like any other, with a chevron after the project and its count that turns down while the group is open, and the state of the group at the trailing edge. It is a button: `↩` or a click opens it in place and closes it. The rows of the group follow it, indented. See the built choices in [tokens.md](tokens.md).

## Group header

A tile at 20, the agent's name at label size, and its session count in tertiary. No background.

## Plan limits

The windows of a plan, one after another with a middle dot between them, each its length and its share, `5 h 62% · week 31%`, at label size in tertiary. A window past the threshold of the toast is a chip of "needs you" instead. Never in the color of the agent. In peek it is its own line under the group header; in detail each window has its line, followed by when it resets in caption and secondary. VoiceOver reads it as one element: "Plan limits. 5 h limit, 62 percent used, resets in 2 hr 10 min".

## Footer

The last strip of a panel: a hairline above, 8 by 12 by 10 padding, caption size in tertiary. A hint on the left, keycaps with their meaning on the right.
