refactor(web): rely on next-themes color scheme

This commit is contained in:
yyh 2026-05-02 11:49:57 +08:00
parent 0a4103b222
commit 8fa2619b7e
No known key found for this signature in database
3 changed files with 0 additions and 10 deletions

View File

@ -255,7 +255,6 @@ const TestThemeProvider = ({ children }: { children: React.ReactNode }) => (
defaultTheme="system"
enableSystem
disableTransitionOnChange
enableColorScheme={false}
>
{children}
</ThemeProvider>

View File

@ -64,7 +64,6 @@ const LocaleLayout = async ({
defaultTheme="system"
enableSystem
disableTransitionOnChange
enableColorScheme={false}
>
<NuqsAdapter>
<TanstackQueryInitializer>

View File

@ -113,14 +113,6 @@
/* ---------- App-level component CSS ----------------------------------- */
@layer components {
html {
color-scheme: light;
}
html[data-theme='dark'] {
color-scheme: dark;
}
[class*='code-'] {
@apply font-mono;
}