Skip to content

Commit d4e5f88

Browse files
authored
chore: add dark mode detection
Detect system dark mode preference and apply it by default
2 parents a36078a + af7ec89 commit d4e5f88

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/app/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ export default function Layout({ children }: { children: ReactNode }) {
163163
<script type="application/ld+json" dangerouslySetInnerHTML={{ __html: JSON.stringify(websiteJsonLd) }} />
164164
</head>
165165
<body className={`${inter.variable} ${displaySerif.variable} flex min-h-screen flex-col antialiased`}>
166-
<RootProvider>{children}</RootProvider>
166+
<RootProvider theme={{ defaultTheme: "system", enableSystem: true }}>{children}</RootProvider>
167167
</body>
168168
</html>
169169
);

0 commit comments

Comments
 (0)