Not Exported
Updates document theme by manipulating the 'dark' class Enables CSS to apply the correct theme styling
Whether dark mode should be active
function updateDocumentTheme(isDarkMode: boolean): void { if (!isDarkMode) { document.documentElement.classList.remove("dark"); } else { document.documentElement.classList.add("dark"); }} Copy
function updateDocumentTheme(isDarkMode: boolean): void { if (!isDarkMode) { document.documentElement.classList.remove("dark"); } else { document.documentElement.classList.add("dark"); }}
Updates document theme by manipulating the 'dark' class Enables CSS to apply the correct theme styling