Merge pull request #141 from ktz-dev/system-color-preference

fix: Add use-system-settings color mode and make it the default
This commit is contained in:
mauro 🤙
2024-09-07 13:22:56 +02:00
committed by GitHub
3 changed files with 29 additions and 8 deletions

View File

@@ -50,11 +50,11 @@
*/
}
.dark {
[data-theme='dark'], .dark {
--background: 0 0% 0%;
--foreground: 0 0% 98%;
--surface: rgb(23, 23, 23);
--surface: rgb(23, 23, 23);
--card: 0 0% 3.9%;
--card-foreground: 0 0% 98%;

View File

@@ -30,7 +30,6 @@ export default async function RootLayout({
<body className={inter.className}>
<ThemeProvider
attribute="class"
defaultTheme="dark"
enableSystem
disableTransitionOnChange
>