style: remove heroui default background setting (#10029)

* style: remove heroui default background setting

* fix: import order

* fix: remove layer
This commit is contained in:
RieN 7z 2025-09-08 20:50:10 +08:00 committed by GitHub
parent 2bae30bd11
commit ce26828e41
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 1 deletions

View File

@ -154,3 +154,7 @@
@apply bg-background text-foreground;
}
}
:root {
background-color: unset;
}

View File

@ -69,7 +69,10 @@ export const ThemeProvider: React.FC<ThemeProviderProps> = ({ children }) => {
}, [actualTheme, initUserTheme, navbarPosition, setSettedTheme, settedTheme])
useEffect(() => {
tailwindThemeChange(settedTheme)
tailwindThemeChange(actualTheme)
}, [actualTheme])
useEffect(() => {
window.api.setTheme(settedTheme)
}, [settedTheme])