The first solution is to make this color change automatic based on the user's preferences. The second way is to let the user choose to browse the site in light or dark mode using a button.