Re: [csswg-drafts] [css-ui-4] choosing background colors for accent-color for contrast (#6159)

> maybe a simpler route is better here? less magic like @emilio is saying. could spend all this time trying to write algo's which keep form controls within proper contrast, then developers make all labels and paragraphs white on white with color and background css. I understand the original intent here, to force prevent low contrast controls, but maybe it's over-reaching? i dont think it's intuitive to tell someone: "you can use your brand color as form control accent colors now! but, beware, the color you choose may flip the controls to a light or dark theme." seems obvious i have a new responsibility once i start styling form controls different then their defaults?

Perhaps would it make sense to instead of having the browser decide to color the rest of the control dark or light, let the page specify color-scheme:dark or color-scheme:light? And then we add a DevTools console message or add something to the DevTools styles sidebar to say when the combination of color-scheme and accent-color doesn't have enough contrast?

Maybe that's not how color-scheme should be used since it can just be changed dynamically by the OS...

-- 
GitHub Notification of comment by josepharhar
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6159#issuecomment-810671181 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 31 March 2021 00:46:41 UTC