svgl/pages/_document.js

19 lines
453 B
JavaScript
Raw Normal View History

2022-03-03 22:48:37 +08:00
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>
);
}
}