Might be a bit late, but I made this possible by using the window object named "localstorage". By applying that to your js script that handles the dark mode button/toggle, you will save the user input on the browser.