Comments on: What’s Going On in Dark Theme / Light Theme Land https://frontendmasters.com/blog/dark-and-light/ Helping Your Journey to Senior Developer Sun, 21 Apr 2024 15:27:56 +0000 hourly 1 https://wordpress.org/?v=6.5.2 By: Bramus https://frontendmasters.com/blog/dark-and-light/#comment-2955 Sun, 21 Apr 2024 15:27:56 +0000 https://frontendmasters.com/blog/?p=1716#comment-2955 Sounds like it is going to require a new API and then potentially browsers actually using it themselves,

If browsers were to implement this feature natively, the would not need the Web Preferences API, as they can do it directly.

However, to pass the info to the website, and to allow the website to change the value should they want to, the Web Preferences API is the thing that would allow that.

Also, for my POC extension I rely on the Web Preferences API as that’s currently the thing that allowed me to implement it – there is currently no other way (besides using Chrome DevTools Protocol) to override light/dark on a website.

]]>
By: Paweł Grzybek https://frontendmasters.com/blog/dark-and-light/#comment-2842 Fri, 19 Apr 2024 13:31:31 +0000 https://frontendmasters.com/blog/?p=1716#comment-2842 Thanks for linking to my website Chris 🙏

]]>