Perfect Next.js dark mode in 2 lines of code. Support System preference and any other theme with no flashing
MIT License
Bot releases are visible (Hide)
"use client"
was added to the library output so that you can use it as a React Client component without creating a wrapper.Full Changelog: https://github.com/pacocoursey/next-themes/compare/v0.2.0...v0.3.0
Published by pacocoursey over 2 years ago
These changes shouldn't affect 99% of usage of this library, but they're good to be aware of.
next/script
to a regular script
tag inserted at the top of the <body>
nonce
again because the injected script is no longer base64 encdoed