An Interest In:
Web News this Week
- May 1, 2024
- April 30, 2024
- April 29, 2024
- April 28, 2024
- April 27, 2024
- April 26, 2024
- April 25, 2024
August 10, 2018 01:58 pm GMT
Original Link: https://css-tricks.com/switch-font-color-for-different-backgrounds-with-css/
Switch font color for different backgrounds with CSS
Ever get one of those, "I can do that with CSS!" moments while watching someone flex their JavaScript muscles? Thats exactly the feeling I got while watching Dag-Inge Aas & Ida Aalen talk at CSSconf EU 2018.
They are based in Norway, where WCAG accessibility is not a just good practice, but actually required by law (go, Norway!). As they were developing a feature that allows user-selectable color theming for their main product, they faced a challenge: automatically adjusting …
The post Switch font color for different backgrounds with CSS appeared first on CSS-Tricks.
Original Link: https://css-tricks.com/switch-font-color-for-different-backgrounds-with-css/
Share this article:
Tweet
View Full Article