fromdaverupert.com2 weeks agoUX designUsing 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.
fromWebKit8 months agoHow to have the browser pick a contrasting color in CSSThe 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