fix: theme persistence and update version to 2.1.9-beta9

This commit is contained in:
sagitchu
2026-03-20 23:37:35 +08:00
parent b7065f6e99
commit c137bdcc63
5 changed files with 32 additions and 13 deletions
@@ -12,6 +12,12 @@ import React from "react";
import "@/themes/loader";
import { ThemeProvider as ThemeContextProvider } from "@/themes/context";
import { initThemeSystem } from "@/themes/registry";
// Restore saved theme SYNCHRONOUSLY at module load time — before first render.
// This ensures the CSS tokens are injected before any component renders,
// preventing a flash of the default theme.
initThemeSystem();
interface ThemeProviderProps {
children: React.ReactNode;