fix(themeHandler): properly keep track of color theme when using preset

This commit is contained in:
rhld16 2025-12-19 23:46:36 +00:00
parent 574741cb5c
commit c3055c2c79
2 changed files with 3 additions and 7 deletions

View file

@ -97,11 +97,6 @@ export class ThemeHandler {
if (mode === 'dark' && this.amoledEnabled.value) {
root.classList.add('amoled')
}
// Add dark class for backward compatibility with VitePress
if (mode === 'dark') {
root.classList.add('dark')
}
}
private applyCSSVariables(colors: ModeColors, theme: Theme) {