UNPKG

use-color-theme

Version:

A custom React Hook to help you implement a "color theme" component.

20 lines (17 loc) 350 B
import Document, { Head, Html, Main, NextScript } from 'next/document'; class _Document extends Document { render() { return ( <Html> <Head> </Head> <body> <script src="./colorTheme.js" /> <Main /> <NextScript /> </body> </Html> ); } } export default _Document;