Safari users will soon be able to independently change the light and dark mode on websites. This is reported by 9to5Mac.
According to media reports, Apple is working on a future Safari feature that will introduce custom dark mode settings for individual websites. Employees of 9to5Mac found a mention of a new function in the WebKit code, which is responsible for manually switching light and dark theme on sites.
Recall that WebKit is an Apple engine that supports all browsers on iOS. The new option is referred to in the code hosted on GitHub as “overriding the system color scheme with a per-website preference”. For example, it will help users to always view a certain website in dark mode, even if light is enabled on the system.
Since Apple introduced dark mode to iPhone and iPad with iOS 13, developers have updated their app interfaces to match system settings or allow users to override it. The new per-website settings in Safari will expand that browsing experience and also allow users to fix pages that don’t display properly in either light or dark mode.
In addition to per-website display customization, Apple is developing another option to block modal pop-ups on specific pages viewed in Safari. Modal popups must be closed by clicking the Cancel button or another, and they may look like system alerts. Apple is also developing a new API to manage the cookie consent process that many websites use.
The new WebKit features are labeled “TBA” or “To Be Announced”, so it’s not clear if they will become available for use in Safari through future updates to iOS 15 and macOS 12 or later in the year when new versions of the operating system are released.