Dark/Light Mode

Hi, I am building a custom portfolio website and I want to allow users to toggle between dark vs light mode using a toggle. I am open to creating 2 different pages but I don’t want to have loading/redirecting time.