1 2 3 4 5 6 7 8 9 10 11 12
import { ThemeProvider } from "next-themes"; import "../css/tailwind.css"; function MyApp({ Component, pageProps }) { return ( <ThemeProvider attribute="class"> <Component {...pageProps} /> </ThemeProvider> ); } export default MyApp;