import React from "react"; import Document, { Html, Head, Main, NextScript } from "next/document"; class MyDocument extends Document { render() { return ( <Html> <Head /> <body className="bg-gray-100 text-black dark:bg-gray-800 dark:text-white"> <Main /> <NextScript /> </body> </Html> ); } } export default MyDocument;