WICG / web-preferences-api

The Web Preference API aims to provide a way for sites to override the value for a given user preference (e.g. color-scheme preference) in a way that fully integrates with existing Web APIs.
https://wicg.github.io/web-preferences-api/
Other
41 stars 2 forks source link

Should this API allow setting of custom values? #13

Open lukewarlow opened 10 months ago

lukewarlow commented 10 months ago

Currently this API is limited to just allowing an override from pre-existing values. At least in the case of color-scheme it's possible that people may want to set a custom colour scheme.

Raised in: https://kilianvalkhof.com/2022/css-html/on-better-browsers-arbitrary-media-queries-and-browser-uis/#overwriting-known-media-queries

Would this be desirable?

How would these values get paired up to browser UA styles for stuff such as scrollbars and form inputs?

Potentially this would be a whole separate proposal on its own that this one could just allow you to set the value from?

lukewarlow commented 8 months ago

See #29 for some examples of sites that would benefit from at least custom colour schemes.