svgl/pages/_document.js
2022-03-03 14:48:37 +00:00

19 lines
453 B
JavaScript

import { ColorModeScript } from "@chakra-ui/react";
import NextDocument, { Html, Head, Main, NextScript } from "next/document";
import theme from "styles/theme";
export default class Document extends NextDocument {
render() {
return (
<Html>
<Head />
<body>
<ColorModeScript initialColorMode={theme.config.initialColorMode} />
<Main />
<NextScript />
</body>
</Html>
);
}
}