- From: Chris Lilley via GitHub <sysbot+gh@w3.org>
- Date: Wed, 03 Jun 2020 00:12:11 +0000
- To: public-css-archive@w3.org
This seems to respond directly to what @mirisuzanne [wanted](https://github.com/w3c/csswg-drafts/issues/4749#issue-560584557) > adjust given color to meet a particular ratio However, most of the discussion in that thread was about picking the color from a list which meets a given ratio, so it is good to discuss this, very different functionality, here. One is for the case where a palette of colors is already chosen, and this one is where a starting color can be freely modified to meet some set of criteria. @jhogue also [wrote about that](https://github.com/w3c/csswg-drafts/issues/4749#issuecomment-598250845) > I created a Sass function called a11y-color() that takes a color to change, a color to keep the same, a WCAG Level (AA or AAA), a font size, and whether or not a font is bold to calculate and change the first color (color to change) to a color that passes the supplied WCAG Level. -- GitHub Notification of comment by svgeesus Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5153#issuecomment-637879722 using your GitHub account
Received on Wednesday, 3 June 2020 00:12:13 UTC