From cf0cc4dc0fc684c6b4da271da632da669b1aa184 Mon Sep 17 00:00:00 2001 From: Sunny Date: Fri, 24 Jul 2026 12:42:10 -0400 Subject: [PATCH] fix(login): render the profile's active theme on the login page The pre-auth login page cannot call /api/prefs/theme (401) and a freshly opened device has nothing in localStorage, so it always fell back to the built-in default palette instead of the theme the user set in-app. Inject the profile's active theme into the login page at render time so it matches the in-app theme on any device, including a first visit. Scoped to single-user instances (no way to know whose theme to show before sign-in); localStorage and the default :root remain fallbacks. The injected JSON is escaped so it cannot break out of the surrounding