Walks through generating accessible colour contrast for design tokens with pure CSS, first using relative colour syntax and then an improved approach that uses the color() function in XYZ space to measure luminosity. Aimed at people maintaining design systems across many themes.
What you’ll learn
✓Generate accessible colour contrast values for design tokens in CSS
✓Compare relative colour syntax with the color() function in XYZ space