I implemented dark mode on my Wordpress website with the following code:
//Create the cookie object var cookieStorage = { setCookie: function set