Branding
The Branding plugin dresses the platform as an installation's own: its name, the colour of its buttons, links and highlights in each theme, its logo, the favicon of the browser's tab, a backdrop behind the sign-in page and one behind every other page. Turn it on on the Plugins page, then set it on the Branding page of the administration, which takes settings:write.
Name and colours
The name is the platform's site_name, which titles the tab, the sidebar, the sign-in page and emails; the page edits it with the rest and provides a reset action to return it to the platform default (IDEKube or the deployment setting). The colours are the branding settings section:
| Field | Meaning |
|---|---|
primary | The colour in the light theme, as #rrggbb; empty keeps the platform's. |
primary_dark | In the dark theme; empty lightens primary. |
Text on the colour is dark or white, whichever reads. The sign-in page's glow follows the colour too.
Images
| Image | Shown | At most |
|---|---|---|
| Logo | In the sidebar and on the sign-in page, in a square. | 512 KiB |
| Favicon | In the browser's tab; follows the logo and active theme colour when unset. | 256 KiB |
| Sign-in backdrop | Behind the sign-in page, covering it. | 4 MiB |
| Backdrop | Behind every page once signed in, covering it, under a veil of the theme's background so that what is on it stays legible in both themes. | 4 MiB |
Automatic default favicon
When no custom Favicon is uploaded, the browser tab icon stays in sync with the logo and active theme automatically:
- With a custom Logo: raster logos are scaled down cleanly in the browser to a 64×64 PNG (preserving aspect ratio inside the square frame), and SVG logos stay vector-sharp—automatically applying the active theme's primary colour when the SVG uses
currentColor. - Without a custom Logo: the platform renders its default hexagonal mark coloured with the active theme's
--primaryand--primary-foregroundtokens, updating live as light/dark mode, brand colours or the palette change. - With a custom Favicon: the uploaded favicon overrides the automatic behaviour; resetting it immediately restores following the logo and theme colour.
The Branding page shows a live preview of the effective favicon in the Favicon row whenever no custom favicon is set.
SVG vector logos and favicons
Both Logo and Favicon accept crisp SVG vector graphics (.svg / image/svg+xml) alongside PNG, WebP, JPEG, GIF and ICO. SVG favicons upload directly as vectors and are advertised to browsers with <link rel="icon" type="image/svg+xml">; SVG logos open in the crop dialog with an Upload original SVG action so they stay vector-sharp at every size.
Before storage, the backend detects SVGs from their bytes (supporting optional UTF-8 BOM, XML declarations, comments and DOCTYPE prologs) and sanitizes the XML by stripping <script>, <foreignObject>, on* event attributes, dangerous javascript: / data:text/html / data:image/svg+xml URIs, active elements and DTDs while preserving clean vector paths, gradients, styles and <use> references. Served SVGs also carry Content-Security-Policy: default-src 'none'; style-src 'unsafe-inline'; sandbox and X-Content-Type-Options: nosniff.
Cropping and compressing large backgrounds
Uploading a logo, raster favicon, sign-in backdrop or app backdrop opens an interactive crop dialog with drag-to-pan, zoom slider and wheel controls, and live source/output dimension and size readouts:
- Logo and raster favicon crop to a
1:1square (512×512within 512 KiB for logos;256×256within 256 KiB for favicons). - Sign-in backdrop and app backdrop accept large source images over 4 MiB (up to 50 MiB in the browser), let you choose a
16:9,16:10,4:3or original aspect ratio up to2560×1440, and automatically compress to WebP (with JPEG fallback), stepping quality and dimensions if needed so the uploaded file always fits under the 4 MiB server limit.
Existing images can be re-framed via Adjust (fetched through the same-origin API route so canvas editing works even when a CDN is configured), and any uploaded branding image can be restored to the platform default via Reset (DELETE /v1/branding/images/<name>).
Setting and removing images is audited as branding.image_set and branding.image_delete.
CDN distribution
Images are stored in PostgreSQL and served publicly at GET /v1/branding/images/<name>, designed to act cleanly as a CDN origin alongside other platform public static assets (such as user avatars):
- Immutable versioned caching:
/v1/metapublishes versioned URLs (/v1/branding/images/<name>?v=<digest>, or<cdn_url>/v1/branding/images/<name>?v=<digest>whenplatform.cdn_urlis set). Requests whose?v=matches the current digest receiveCache-Control: public, max-age=31536000, immutable; unversioned or stale requests receiveCache-Control: public, max-age=60, must-revalidateso proxies never pin outdated assets forever. - Conditional requests: responses include a strong
ETag: "<sha256>"and answer matchingIf-None-Matchheaders with304 Not Modified. - Cross-origin headers: responses include
Access-Control-Allow-Origin: *,Cross-Origin-Resource-Policy: cross-origin,Vary: OriginandX-Content-Type-Options: nosniffso CDN-served images work seamlessly in<img>,<link rel="icon">and cross-origin canvas operations.
Point your CDN distribution's origin at the IDEKube API server (forwarding /v1/branding/images/* and the v query parameter in the cache key), then configure cdn_url under Settings → Platform (or via PATCH /v1/settings/platform; see Runtime settings).
The browser keeps what it last showed and paints it before the page loads, so the platform's own colours and favicon do not flash at each visit.
Turning it off
The platform looks as it always does at once; the colours and images are kept for when it is turned on again.