Created
May 30, 2021 05:27
-
-
Save kjmczk/7d73d42eae240c4d0d208bcec6f72fdf to your computer and use it in GitHub Desktop.
pages/_document.tsx - MDX Blog with Dark Mode - Medium
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// pages/_document.tsx | |
import Document, { Html, Head, Main, NextScript } from 'next/document'; | |
class MyDocument extends Document { | |
render(): React.ReactElement { | |
return ( | |
<Html> | |
<Head /> | |
<body className="bg-white dark:bg-gray-900 text-gray-900 dark:text-gray-100"> | |
<Main /> | |
<NextScript /> | |
</body> | |
</Html> | |
); | |
} | |
} | |
export default MyDocument; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment