Safari Technology Preview now supports dark mode via `@media (prefers-color-scheme: dark)` in CSS media queries. 

Same should be supported in Electron apps to enable automatic light/dark mode switching.

shell/browser/atom_browser_client.cc
const GURL& url,
    content::ResourceRequestInfo::WebContentsGetter web_contents_getter,
    int child_id,
    content::NavigationUIData* navigation_data,
    bool is_main_frame,
    ui::PageTransition page_transition,
    bool has_user_gesture,
    network::mojom::URLLoaderFactoryRequest* factory_request,
    
    network::mojom::URLLoaderFactory*& out_factory) {  
  
  base::PostTaskWithTraits(
      FROM_HERE, {BrowserThread::UI},
      base::BindOnce(&HandleExternalProtocolInUI, url, web_contents_getter,
                     has_user_gesture));
  return true;
}
std::vector<std::unique_ptr<content::NavigationThrottle>>