Syllabus

  1. 01Color BasicsSet text and background colors, and write colors as names, hexadecimal codes, RGB values and HSL values, then convert one color between all four.6 lessons
    1. 01Foreground and Background
    2. 02Hexadecimal Colors
    3. 03RGB Colors
    4. 04HSL Colors
    5. 05One Color, Four Notations
    6. 06Color Basics Quiz
  2. 02Transparency and currentcolorMake colors see-through with an alpha channel, predict what shows through stacked layers, let borders and icons follow the text color with currentcolor, and fix the usual broken color declarations.5 lessons
    1. 01Alpha and Transparency
    2. 02Stacking Translucent Layers
    3. 03The currentcolor Keyword
    4. 04Fixing Broken Colors
    5. 05Transparency and currentcolor Quiz
  3. 03Modern Color and ContrastUse oklch() and color-mix() with safe fallbacks for older browsers, measure text contrast against the WCAG ratios, and keep a whole palette in custom properties.6 lessons
    1. 01oklch() and Fallbacks
    2. 02Mixing Colors with color-mix()
    3. 03Contrast and Accessibility
    4. 04Palettes with Custom Properties
    5. 05Modern Color and Contrast Quiz
    6. 06Project: Clayhouse Theme