Skip to main content

Variable: themeManager

const themeManager: ThemeManager

Defined in: src/theme/ThemeManager.ts:552

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 { themeManager } from "./ThemeManager";

// Apply a theme
const theme = themeManager.getTheme("dark");
themeManager.applyTheme(theme);

// Listen for system theme changes
const cleanup = themeManager.onSystemThemeChange((isDark) => {
console.log("System theme changed:", isDark ? "dark" : "light");
});