Persistent Dark / Light Mode across multiple pages

I wanted to create a dedicated conversation for this since this seems to be a prevalent topic. I have created a light and dark mode experience throughout my site. However, I cannot figure out how to write the proper Javascript to make this a persistent experience for the user on any page they visit. Meaning, if they are on light mode when they move to the next page, it will have that cookie information from the previous page. Any developers out there willing to share? Here’s my site.

Here is my public share link: LINK
(how to access public share link)

1 Like