Perfect Next.js dark mode in 2 lines of code. Support System preference and any other theme with no flashing
Perfect Next.js dark mode in 2 lines of code. Support System preference and any other theme with no flashing
[Bug]: Script tag while rendering React component.
[Bug]: React 19.2 dev error "Encountered a script tag while rendering React component" when ThemeProvider remounts on client (e.g. switching a root dynamic segment like `[lang]`)
Unexpected Theme Switch to Light Mode After User Login
[Bug]: react-hooks/set-state-in-effect ESLint error when trying to avoid hydration mismatch
[Feature request]: Support themes with themes
[Bug]: localStorage.getItem is not a function on Node.js 25+ (window = globalThis breaks SSR guard)
[Bug]: Script tag not supported in react components
[Bug]: Uncaught ReferenceError: __name is not defined in Injected Theme Script
[Bug]: next-themes forces stale theme when Next.js cacheComponents/Activity is enabled (React 19, Next 16)
[Bug]: Theme class name get's removed from `html`