` / `` element |
| Terminal font | Terminal output only | `appearance.font("mono")` from the GUI plugin SDK |
- Never write a literal family (`Inter`, `"OpenMono"`, `monospace`, `Menlo`, `system-ui`) in production CSS, classes, inline styles, canvas `font` strings or widget options. A literal ignores the user's setting.
- Never add an `@font-face`, font file, or font package outside `packages/app/src/index.css`. That file is the only place the app ships faces: Inter (variable), and OpenMono Regular (weights below 600), Bold (600 and up) and Italic for both code and the terminal. If a design needs a face that is not shipped, add it there and say why in the PR.
- The OpenMono files in `src/assets/fonts` are made from the app build of OpenMono Nerd: no ligatures and every character one cell wide. Each style has a `-latin` file, which loads with the app, and a `-cyrillic` and a `-rest` file, which `unicode-range` loads when a character of theirs is drawn. The nine text files and their `unicode-range` values are the same as the websites' (`services/site/script/openmono.py`); change both scripts together. All styles share `OpenMono-icons.woff2` (the Nerd Fonts icons), whose rules come last in `src/index.css`. They are in `src`, not `public`, so that each URL has a content hash: the web server caches font files for a year. Do not replace them with the files from the OpenMono release, which have ligatures. Rebuild them with `uvx --from 'fonttools[woff]==4.60.1' python script/openmono.py ` from `packages/app`. It writes nothing unless the build is complete, its icons are the same in every style, every character is in the `unicode-range` of its own rule in `src/index.css`, and its copyright lines are in the third-party notices.
- Show shell commands with the timeline shell metrics: code font, `13px`, weight `440`, `-0.04px` letter spacing. Do not invent another size for the same content.
- Prefer weight tokens (`font-medium`, `var(--font-weight-medium)`) over literal weights. Mono at `600` or more renders OpenMono Bold, so reserve it for real emphasis.
- Do not read font settings directly. `src/settings/model.tsx` writes them to the CSS variables above, and the plugin host passes the terminal font through `appearance.font`.
## Loading Indicators
This section is the single source for loading indicators across `app`, `ui`, `session-ui`, `gui-plugins` and `desktop`.
- The dot-matrix `Spinner` (`@opencode/ui/spinner`, and `SessionProgressIndicatorV2` and `ActivityRing`, which render it) means the AI is working: a running session, turn, subagent or tool call. Use it only for those states.
- Every other loading state uses `Loader` (`@opencode/ui/loader`): page, pane and file loads, browser reload, search, connecting, authenticating, sending, installing. Use a purpose-built indicator only when the state has one, such as the titlebar update ring.
- Choose the indicator at each call site. Never restyle a shared indicator (`Loader`, `ActivityRing`, `Spinner`) to look like another one; that silently changes every caller.
## Floating surfaces over native pages
A native page view, such as the browser pane's, paints above every DOM element, so `src/runtime/plugin/embeds.tsx` hides it while floating app UI overlaps it.
- Mark the painted box of a floating surface with `data-floating-overlay` for its whole visible lifetime, including its exit animation. Mark the surface, not a full-window transparent portal wrapper.
- Popper positioners, `aria-modal` dialogs, open `