From d711d66e55c8a0e68072c5aa90dd94b31ba81a31 Mon Sep 17 00:00:00 2001 From: "Robert S." Date: Sat, 23 May 2026 01:24:52 +0200 Subject: [PATCH] fix(ui): prevent dark-mode FOUC and honor explicit theme toggle MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `@eschricht/nuxt-color-mode` deliberately returns `undefined` from `useClientPreferredColorScheme()` during hydration to avoid Vue hydration warnings. The consequence is that `` is unresolved until `onNuxtReady` fires (~100ms in dev), so dark-OS users on `theme=system` see a light flash on first paint. The same hydration path can also leave the class empty on subsequent cookie changes — clicking the theme toggle to switch from `system` to the opposite of the OS preference (e.g. `system → light` on a dark-OS machine) leaves the page rendering against the OS preference instead of the user's pick. Add a single inline blocking