Adding dark mode with Next.js, styled-components, and useDarkMode

Brian Lovin / filed under HTML & CSS, Javascript, UI Design

I recently added automatic dark mode theming to my personal site using Next.js, styled-components, and useDarkmode. This is a short technical look at how it’s built.

Subscribe to newsletter

Design and frontend links delivered to your inbox every day and week. No spam, unsubscribe at anytime.

Choose frequency