When a user selects the dark theme in the interface, this information is written to Local Storage with the key “theme” and the value “dark.” This ensures that the preferred theme is preserved when the user returns to the application.
Application Flow: