diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index e086f915..ca2f2284 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -1,22 +1,61 @@ import React from 'react' import Head from 'next/head' import { AppProps } from 'next/app' -import { ThemeProvider } from 'next-themes' +import { ThemeProvider, useTheme } from 'next-themes' import '../styles/main.css' const MyApp: React.FC = ({ Component, pageProps }) => { + const { theme } = useTheme() + return ( <> - -