diff --git a/core/core-frontend/src/store/modules/appearance.ts b/core/core-frontend/src/store/modules/appearance.ts index e37429cb9d..3d567a1226 100644 --- a/core/core-frontend/src/store/modules/appearance.ts +++ b/core/core-frontend/src/store/modules/appearance.ts @@ -160,6 +160,12 @@ export const useAppearanceStore = defineStore('appearanceStore', { ) } else if (document.documentElement.style.getPropertyValue('--ed-color-primary')) { document.documentElement.style.setProperty('--ed-color-primary', '#3370FF') + document.documentElement.style.removeProperty('--ed-color-primary-light-3') + document.documentElement.style.removeProperty('--ed-color-primary-light-5') + document.documentElement.style.removeProperty('--ed-color-primary-1a') + document.documentElement.style.removeProperty('--ed-color-primary-33') + document.documentElement.style.removeProperty('--ed-color-primary-99') + document.documentElement.style.removeProperty('--ed-color-primary-dark-2') } this.bg = data.bg this.login = data.login