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

This commit is contained in:
rhld16 2025-12-19 23:51:33 +00:00 committed by GitHub
parent 574741cb5c
commit 89ec4df6a5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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) {