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

With the idea in mind of removing the harsh transition between light and dark themes, I decided to try generating the checkmark color based on whatever grayscale color has exactly the desired contrast ratio, and I ended up with these. This is not the current behavior in chromium like my last comment, this was just an experiment. I feel like they simply suggest that we should be using a black checkmark in most cases though...

<details>
<summary>3.0 contrast ratio</summary>

![3](https://user-images.githubusercontent.com/7681467/122604615-14703080-d02b-11eb-9389-1f2a32758dd8.png)
</details>

<details>
<summary>4.0 contrast ratio</summary>

![4](https://user-images.githubusercontent.com/7681467/122604626-19cd7b00-d02b-11eb-972f-cf8251412754.png)
</details>

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


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

Received on Friday, 18 June 2021 18:51:30 UTC