#contrast-color

[ follow ]
fromdaverupert.com
2 weeks ago
UX design

Using your design system colors with contrast-color()

Using contrast-color() combined with if() enables selecting brand design-system colors instead of only black or white.
fromWebKit
8 months ago

How to have the browser pick a contrasting color in CSS

The contrast-color() function simplifies color management in CSS by automatically selecting black or white text for optimal contrast with a specified background color.
UX design
[ Load more ]