* use platform features for date picker * handle color modes properly * colorScheme native in body only not on html
43 lines
1.3 KiB
TypeScript
43 lines
1.3 KiB
TypeScript
import chakraTheme from "../theme";
|
|
import { ColorModeScript } from "@chakra-ui/react";
|
|
import Document, { Head, Html, Main, NextScript } from "next/document";
|
|
|
|
class ConsoleDocument extends Document {
|
|
render() {
|
|
return (
|
|
<Html lang="en-US">
|
|
<Head>
|
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
<link
|
|
rel="preconnect"
|
|
href="https://fonts.gstatic.com"
|
|
crossOrigin="anonymous"
|
|
/>
|
|
<link
|
|
href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&display=swap"
|
|
rel="stylesheet"
|
|
></link>
|
|
<link
|
|
href="https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;402;500;600;700;800;900&display=swap"
|
|
rel="stylesheet"
|
|
></link>
|
|
<link
|
|
rel="stylesheet"
|
|
href="https://unpkg.com/react-vis/dist/style.css"
|
|
></link>
|
|
<script>global = globalThis;</script>
|
|
</Head>
|
|
<body id="tw-body-root">
|
|
<ColorModeScript
|
|
initialColorMode={chakraTheme.config.initialColorMode}
|
|
/>
|
|
<Main />
|
|
<NextScript />
|
|
</body>
|
|
</Html>
|
|
);
|
|
}
|
|
}
|
|
|
|
export default ConsoleDocument;
|