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

there's conflict with auto choosing a background with color-scheme too. like, i can specify a dark color scheme preference, get dark controls, then pick an accent color which turns all the controls light.. which feels like i'm in the middle of a game of wack-a-mole. 

there's also `color-contrast()` in [Color 5](https://drafts.csswg.org/css-color-5/#colorcontrast) that seems handy here, for Joey and developers? 

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? 

🙂 

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


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

Received on Tuesday, 30 March 2021 15:15:16 UTC