ThemeContext and passed into the application. When the user toggles the theme, I save this value in local storage for when they come to the site again. window and passing the default value (light theme) if it isn't founduseEffect(and useLayoutEffect) to get the theme value from local storage when the user first loads the page.