I create a dark mode in nextjs with redux.
Add redux in nextjs and build the dark mode with redux. you can add redux in nextjs with my article.
application demo https://y2hziz.sse.codesandbox.io/
Full article on medium https://medium.com/p/666a126b9703