diff --git a/docs/.vitepress/theme/themes/themeHandler.ts b/docs/.vitepress/theme/themes/themeHandler.ts index 1ee579c47..f3cf781d4 100644 --- a/docs/.vitepress/theme/themes/themeHandler.ts +++ b/docs/.vitepress/theme/themes/themeHandler.ts @@ -99,6 +99,11 @@ export class ThemeHandler { if (mode === 'dark') { root.classList.add('dark') } + + // Remove amoled class if current mode is not 'dark' + if (mode !== 'dark') { + root.classList.remove('amoled') + } } private applyCSSVariables(colors: ModeColors, theme: Theme) {