Using currentColor with color-mix is amazing

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

IntermediateUI13 min

About this video

Kevin Powell shows how to use currentColor with color-mix() in CSS to build higher-contrast links, handle more advanced colour cases, and combine the technique with light and dark modes and prefers-contrast.

What you’ll learn

  • Use color-mix() with currentColor to derive colour variations in CSS
  • Build higher-contrast link styles with color-mix()
  • Combine color-mix() with light and dark modes and prefers-contrast