Variable: themeManager
constthemeManager:ThemeManager
Defined in: src/theme/ThemeManager.ts:555
Global theme manager singleton instance.
Remarksโ
Provides convenient access to theme management functionality throughout the application. This singleton ensures consistent theme state and provides a centralized API for theme operations.
Exampleโ
import { logger } from "@app/services/logger";
import { themeManager } from "./ThemeManager";
// Apply a theme
const theme = themeManager.getTheme("dark");
themeManager.applyTheme(theme);
// Listen for system theme changes
const cleanup = themeManager.onSystemThemeChange((isDark) => {
    logger.info("System theme changed", {
        theme: isDark ? "dark" : "light",
    });
});