News for hackers. Stuff that matters.
Re:The Future of CSS: Easy Light-Dark Mode Color Switching w... by politelemon on Tuesday October 10, 2023 @08:17AM (#37831106)
Would this make toggling between schemes easier? Suppose there is a button on the page that lets user pick light or dark. What would the js look like?
Re:The Future of CSS: Easy Light-Dark Mode Color Switching w... by bramus on Wednesday October 11, 2023 @04:29AM (#37842183)
Toggling between schemes is not part of this feature.

Easily toggling light/dark is part of the Web Preferences API feature, which is being prototyped in Chrome: https://chromestatus.com/feature/4631882616012800