diff --git a/apps/designer/app/shared/theme/theme.ts b/apps/designer/app/shared/theme/theme.ts index 444ce09210..23ea40f215 100644 --- a/apps/designer/app/shared/theme/theme.ts +++ b/apps/designer/app/shared/theme/theme.ts @@ -47,8 +47,8 @@ const renderThemeProps = () => { const theme = getColorScheme(); const root = document.documentElement; theme === "dark" - ? (root.className = darkTheme.className) - : root.removeAttribute("class"); + ? root.classList.add(darkTheme.className) + : root.classList.remove(darkTheme.className); root.style.colorScheme = theme; root.dataset.theme = theme; };