fixes dark mode piblic page (#4201)

This commit is contained in:
Syed Ali Shahbaz 2022-09-06 14:20:36 +05:30 committed by GitHub
parent dc6f8d1f63
commit addd58cca6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -77,7 +77,7 @@ class MyDocument extends Document<Props> {
</Head>
{/* Keep the embed hidden till parent initializes and gives it the appropriate styles */}
<body>
<body className="dark:bg-darkgray-50 bg-gray-100">
<Main />
<NextScript />
{/* In case of Embed we want background to be transparent so that it merges into the website seamlessly. Also, we keep the body hidden here and embed logic would take care of showing the body when it's ready */}