# Icon system

Each family has a territory, so a screen never mixes filled and line glyphs by accident. Nobody hand-writes icon SVGs.

| Family | Territory | Source, license |
| --- | --- | --- |
| Solar Bold Duotone | Composer area (chips, control row, plus menu, model and permission badges, effort pill, send), question and approval panel, timeline row tiles, action menus, DAG view controls and perspective strip | `apps/web/components/solar-icons`, CC BY 4.0 |
| pqoqubbw animated line | App chrome: left rail, center tabs, sidebar, settings nav, function cards. No migration planned. | `apps/web/components/animated-icons`, MIT |
| lucide-react | Everything static elsewhere: settings bodies, dialogs, timeline chevron | `lucide-react`, ISC |

Solar bodies are vendored from Iconify into `bodies.ts` by `apps/web/scripts/icons/fetch-solar.mjs`: extend `ICONS`, rerun, commit, so builds stay offline. Filled glyph plus a 50% lighter layer, chosen because line sets looked generic at 14 to 16px. The user's avatar comes from DiceBear; an Agent's is a character ([Agent avatars](https://openprogram.io/docs/reference/design/ui/visual-system/agent-avatars.html)).

**Composer glyphs**

| Role | Glyph |
| --- | --- |
| Options trigger `+` | `tuning-2` |
| Add files | `paperclip` |
| Tools, tool profile | `case-minimalistic`, `settings-minimalistic` |
| Web search, sandbox | `global`, `box-minimalistic` |
| Unattended off, on | `eye`, `eye-closed` |
| Thinking effort; Fast mode | `fire`; Fast turns it red |
| Chat model badge | Provider logo ([brand mark](#brand-marks)), `cpu` without one |
| Channel chip | Channel logo in brand colour ([brand mark](#brand-marks)) |
| Agent badge | The Agent's avatar, by the [fill rule](#the-composers-fill-rule) |
| Permission badge | `shield-check` |
| Local, web tab, goal, picture-in-picture chips | `monitor`, `earth`, `target`, `pip-2` |
| Working folder, add folder | `folder-with-files`, `add-folder` |
| Project, missing project | `folder-open`, `danger-triangle` |
| Menu check, close, carets | `check-circle`, `close-circle`, `alt-arrow-right`, `alt-arrow-down` |
| Send, copy | `plain-2`, `copy` |
| Model vision, video, tools, reasoning | `eye`, `videocamera`, `case-minimalistic` (12px, its art fills the box), `lightbulb-bolt` |
| Git pill; new branch or worktree, worktree, PR, view PR | `git-branch`; `add-circle`, `folder-path-connect`, `git-pull-request`, `square-arrow-right-up` |
| File-change card title, rows | `pen-new-square`, `file-text` |
| File-change undo, Review | Font Awesome solid `rotate-left`, `eye`, with text. Solar's undo is a hairline at button size. Same script and table; viewBox in `SOLAR_VIEWBOXES`. |

Toggles change glyph, not only colour: Unattended closes the eye, while-running shows a forward arrow for Steer and a queue list for Queue, a project with no folder shows the warning triangle.

Not Solar: Fast in the effort card keeps the animated gauge, needle rotated by `active`; `?` in the effort card ([effort picker](https://openprogram.io/docs/reference/design/ui/composer/effort-picker.html)) is static lucide `CircleHelp` at 14px.

## The composer's fill rule

Applies inside the composer and its popups: chips, control row, menus, effort capsule, context-usage card, Goal dialog. Question and approval cards sit under the reply and keep their sizes.

- **Box**: 16 × 16px
- **Measure**: The painted ink, not the view box
- **Scale**: `s = 16 × optical.scale / max(inkWidth, inkHeight)`
- **Place**: Ink centre on box centre, moved `optical.x` px right
- **Hover**: 18 × 18px on the control's hover (`HOVER_POP_FILL`, 1.125)

A wide glyph is 16px wide (WeChat 16 × 13.1px), a tall one 16px high. `optical` is 1 and 0 except where a logo is set by eye.

| Drawing | How |
| --- | --- |
| Solar | `SolarIcon fit="fill"` crops the view box to a square round the ink. Bounds in `solar-icons/ink-bounds.ts`, generated by rasterising `bodies.ts` (the 50% layer counts): `npm run generate:solar-ink-bounds --workspace apps/web`. |
| Brand logos | `BrandMark fit="fill"`, through `ModelMark` and `ChannelLogo fit="fill"`, from `brand-mark/ink-bounds.generated.ts` |
| Agent characters | `fit="mark"`, `botMarkFit` in `components/avatar/bot/catalog.ts`; body as ink. Uploaded picture, letter tile or DiceBear already fill the box and only pop. |
| Anything else | `FillIcon` (`components/ui/fill-icon.tsx`) crops an svg to geometry plus half stroke, fits an image or canvas whole. The ink box is cached by the svg's markup, so a re-render does not measure again. App icons and favicons are runtime rasters with no measured ink. The context ring only takes the hover. |

**Exceptions**

- Send plane: grows to 18px like the other composer glyphs, and does not glide.
- Stop: 8 × 8px square in a 16px box.
- Trailing chevrons, menu checks: static lucide at 16px.
- Chip's sliding ×, capability marks, effort gauge and `?`, drop overlay's paperclip: their own sizes.
- Outside the composer a Solar glyph draws its whole view box (ink 20/24) and pops 1.12 (`HOVER_POP`).

## Brand marks

Provider logos (`public/images/providers`) and channel logos (`public/images/channels`) are drawn only by `BrandMark` (`apps/web/components/brand-mark`). One-colour logos are masks in text or brand colour; coloured logos are the picture. Outside the composer: `fit="contain"`, no hover motion.

A logo whose own background glares on a dark theme (Codex's white tile) names a second picture, `dark` in `provider-icons.json`, shown on a dark theme; a brand plate keeps the first.

| Place | Size |
| --- | --- |
| Sidebar channel rows | 14px |
| Command palette, Chats page | 16px |
| Settings plate, logo 2px inside | 20px lists, 16px routing overview, 40px provider page |

OpenProgram's own engine in the Harness chip and menu shows its small mark, `openprogram-mark.svg`: a half disc, a quarter disc and a disc in a 2 × 2 grid with even gaps, in the brand's indigo, violet and sky.

- Why not the App icon: its tile, wave cell and three off-centre discs blur at 16px and read as tilted.
- Claude Code shows Claude's own mark, like the other agents.

Codex, Gemini and OpenProgram are each 16px wide in the Harness menu. Two logos carry an `optical` correction in `provider-icons.json`, set by eye against them:

| Logo | scale | x | Why |
| --- | --- | --- | --- |
| Claude | 1.06 | −0.5px | Thin rays look small |
| DeepSeek | 1.08 | +0.75px | The whale's weight sits left of its frame |

Add a logo: add the file, run `npm run generate:brand-ink-bounds --workspace apps/web`. One test fails on a stale table; another when a component outside `components/brand-mark` draws a logo file.

## Execution timeline

Each row starts with a 24px tinted tile (20px nested) holding a 13px glyph (11px nested), static (`motionPreset="none"`) with no tooltip. `presentTool()` in `components/chat/messages/execution/tool-presentation.ts` picks the glyph; `StepRow` in `execution-strip.tsx` falls back by row kind.

**Timeline glyphs**

| Row | Glyph |
| --- | --- |
| Command (`bash`, `write_stdin`, `terminal_use`) | `programming` |
| Execute code | `code-square` |
| Edit, write, patch | `pen-new-square` |
| Read file, PDF | `file-text` |
| List folder | `folder-open` |
| Find files (`glob`) | `file-search` |
| Search (`grep`, code search) | `magnifier` |
| Code intelligence (LSP) | `structure` |
| Web search, fetch | `global` |
| Browser control | `cursor` |
| Generate, analyze image | `gallery-add`, `gallery` |
| Canvas, send file, message an agent | `plain-2` |
| Sub-agent tools | `ghost` |
| Read conversation | `book` |
| Ask the user | `chat-round-question-mark` |
| Plan mode | `map` |
| Scheduled jobs | `calendar` |
| Run program | `box` |
| Use skill | `stars` |
| Resource, memory | `database` |
| Todos | `checklist` |
| Worktree | `git-branch` |
| Self-update | `refresh` |
| MCP | `plug-circle` |
| Any other function | `sledgehammer` (Solar has no wrench) |
| Fallback: thinking, LLM, sub-agent, function | `lightbulb-bolt`, `cpu`, `ghost`, `sledgehammer` |

Not type glyphs: a failed row's small stroked ✗, and the lucide `ChevronRight`.

## Motion contract

| Part | Contract |
| --- | --- |
| Handle | All families share `AnimatedNavIconHandle` (`startAnimation`, `stopAnimation`) |
| Hover target | The container, never the 16px glyph. A Solar icon with no ref follows its nearest clickable ancestor: button, link, any menu item, listbox option, chip |
| Selector, pop scales, spring | `components/ui/hover-pop.ts`, which Agent characters also use |
| Compositor | Every preset is a whole `transform` string, so framer hands it to the browser as a Web Animation the compositor runs; a frame of a hover costs the page's main thread nothing |
| Reduced motion | All motion stops under `prefers-reduced-motion` |
| Wrapper | `SolarIcon` renders the same `span.inline-flex` wrapper as the animated set |

### Presets

| Preset | Effect |
| --- | --- |
| `pop` (default) | Scale 1.12; 18/16 for a filled composer glyph |
| `nudge` | Caret slides 1.5px right |
| `pulse` | One-shot pop-in when a menu item becomes checked |
| `none` | Decorative glyphs: menu checks, warning triangles, capability marks |

The pqoqubbw icons redraw themselves (a wrench turns, an arrow bobs); a filled glyph cannot, hence the presets.

## Attribution

[Solar Icons](https://github.com/480-Design/Solar-Icon-Set) © 480 Design, CC BY 4.0. The two Font Awesome glyphs: [Font Awesome Free](https://fontawesome.com/license/free), © Fonticons, CC BY 4.0. Noticed in the header of `bodies.ts` and here. Provider and agent marks are LobeHub's (MIT), except the marks of agents LobeHub lacks (T3 Code, ZCode, OpenCode's kin, Pi's kin and others), from yetone/magpie (MIT); both noticed in `public/images/providers/NOTICE.txt`.

## Implementation status

| Status | Items |
| --- | --- |
| Implemented | Composer on Solar (top-bar badges in `components/chat/top-bar` included), timeline tiles, the fill rule |
| Not yet | Fast as a state-driven gauge (needle low when off, sweeps high and accent-red when on); Solar `question-circle` in the effort card; user-facing credits entry for Solar |
