summaryrefslogtreecommitdiff
path: root/pages/_document.tsx
diff options
context:
space:
mode:
authorMichal Sapka <michal@sapka.me>2022-08-11 22:44:46 +0200
committerMichal Sapka <michal@sapka.me>2022-08-11 22:44:46 +0200
commit0c1973d84c3aa86e7ea6004e6e0845f123f49f2a (patch)
treee232984c01c75b471d1756ae87bf036a913832f6 /pages/_document.tsx
parent462c437667ac750cc0fd765dfd551adfce2b2d91 (diff)
feat: theming spike
Diffstat (limited to 'pages/_document.tsx')
-rw-r--r--pages/_document.tsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/pages/_document.tsx b/pages/_document.tsx
index e2f593fb..ef9fcd3b 100644
--- a/pages/_document.tsx
+++ b/pages/_document.tsx
@@ -1,10 +1,13 @@
-import { Html, Head, Main, NextScript } from 'next/document'
+import { ColorModeScript } from '@chakra-ui/react'
+import NextDocument, { Html, Head, Main, NextScript } from 'next/document'
+import theme from '../lib/theme'
export default function Document() {
return (
<Html lang="en">
<Head />
<body>
+ <ColorModeScript initialColorMode={theme.config.initialColorMode} />
<Main />
<NextScript />
</body>