From a1c74f9d5fbc6798d35b97eacd8d41e6b57ccb1d Mon Sep 17 00:00:00 2001 From: "Anthony Fu (via agent)" Date: Fri, 7 Aug 2026 07:12:06 +0000 Subject: [PATCH 1/2] feat(hub-ui): overridable primary color + customizable branding MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Make the reference dock's identity a first-class, overridable surface so a consumer (e.g. a Vite DevTools-style viewer) can reuse hub-ui and rebrand it — logo, product name, and color — without forking. Primary color - The whole primary ramp derives from a single `--devframe-primary` variable (src/client/primary-ramp.css), appended after the UnoCSS output so it wins over Wind4's `:host` defaults. Unset keeps the exact devframe green (via a guaranteed-invalid fallback); set derives the five stops with `color-mix`. - The dock glow follows the primary variable, so a rebrand retints it too. Group accent - A group's `accentColor` is applied by overriding `--devframe-primary` on the group's chrome container (`.devframes-accent-scope`), retinting the whole cluster through the primary token — replacing the bespoke inline accent colors. The group's plugin view is left untouched. Branding - New `DevframeBranding` (logo/wordmark with light/dark variants, productName, primaryColor, tagline, favicon, windowTitle); all optional with devframe defaults. `createUi({ branding })` publishes it as `branding.json` through a new generic `DevframeHubUi.assets` seam on `@devframes/hub` (the only hub change — branding-agnostic). The dock fetches it before first paint; a host page can override any field at runtime via `window.__DEVFRAME_BRANDING__`, `