Branding
Set an application name, logo, favicon, and accent colour for the instance. An administrator saves one branding record that applies to all users.
Where branding appears
| Element | What branding controls |
|---|---|
| Sidebar header | Custom logo (replaces the stock Piping mark) and the application name |
| Browser tab | Tab title (<name> · <page>) and the favicon |
| Sign-in screen | Accent palette and favicon — branding is fetched before authentication |
| Detached session tabs | The application name feeds the tab title of pop-out session windows |
Branding is fetched from a public endpoint at app boot. The first paint uses the stock appearance, then switches to the saved palette and favicon when the record loads.
Configuring branding
Open Administration → Appearance (/administration/branding). Saving requires the instance-settings update permission — see Access control.
| Setting | Notes |
|---|---|
| Application name | Required (save is disabled while empty). Default: Piping. Shown in the sidebar and browser-tab title |
| Logo | Image up to 512 KB. Replaces the stock mark in the sidebar |
| Favicon | Image up to 512 KB. Replaces the browser-tab icon |
| Accent color | A preset swatch or a custom hex value |
The page previews changes live: picking a palette recolours the whole app immediately, but nothing is persisted until you click Save. Leaving the page without saving restores the saved palette. Reset to default switches the draft back to the stock accent.
Propagation and caching
Saving applies the new branding immediately in the editing admin's browser. Other signed-in clients fetch branding once at app boot and cache it for 5 minutes, so they pick up changes on the next page load or once the cache expires — there is no push notification for branding updates.
The browser-tab title is composed dynamically per route as <name> · <page>; the branded application name is always the leading segment. Detached session windows are titled <name> · <host> · <PROTOCOL> (plus the remote username when known) so multiple session tabs stay distinguishable.
Accent colour
Built-in presets: Amber (default), Blue, Violet, Emerald, Rose, and Cyan.
Custom accepts any colour via the colour picker or a hex field (e.g. #3b82f6).
How derivation works:
- Only the brand/accent token family is recoloured: primary buttons, links, focus rings, the sidebar accent, and the on-accent text colour.
- Neutral surfaces, text, and semantic status colours (success, warning, error, info) are unchanged.
- Dark and light variants clamp lightness and select the on-accent text colour automatically.
- If a custom accent is set without a custom favicon, the stock favicon mark is recoloured to match.
Tip: The accent colour is instance-wide; the light/dark/system theme choice stays per-user — see User settings.
Logo and favicon
Images are uploaded from the browser and stored as base64 data URLs in PostgreSQL. Each file may be up to 512 KB in any browser-renderable format, such as SVG, PNG or WebP. The logo uses a square slot with object-fit: contain; roughly square artwork fits best. Clear restores the stock mark or favicon.
REST API
| Method | Path | Auth | Purpose |
|---|---|---|---|
GET | /api/v1/instance/branding | none (public) | Read branding for login/first paint |
PUT | /api/v1/instance/branding | admin | Replace the branding record |
PUT payload (the response — for both verbs — returns the same fields plus updated_at):
{
"app_name": "Acme Ops",
"logo_data_url": "data:image/png;base64,...",
"favicon_data_url": null,
"theme": { "mode": "preset", "presetId": "blue", "base": { "h": 211, "s": 90, "l": 54 } }
}
| Field | Type | Meaning |
|---|---|---|
app_name | string | Application name; leading/trailing whitespace is trimmed |
logo_data_url | string | null | Logo as a data:image/...;base64,... URL, null to clear |
favicon_data_url | string | null | Favicon as a data URL, null to clear |
theme | object | Opaque palette config (see below) |
The theme field is an opaque JSON object owned by the web UI; the backend stores it as-is. Recognised shapes: { "mode": "default" } (stock palette), { "mode": "preset", "presetId": "...", "base": {...} }, and { "mode": "custom", "base": {...} }, where base is an HSL triple (h 0–360, s/l 0–100). Unrecognised values fall back to the stock palette.
A fresh install is seeded with the defaults: name Piping, no logo or favicon, stock amber accent. The full route list lives in the API reference.