Color scheme

Unit 3: Color, Theming, and Visual Effects

This unit moves from structure into visual polish. You will build a complete color system with modern color functions, wire it into semantic tokens that support dark mode, and then layer on shadows, gradients, filters, and backdrop effects to bring your portfolio to life with disciplined art direction.

Part A: Modern Color and Dark Mode

Learn

  • Modern Color Functions
    Work with oklch(), color-mix(), and palette ramps to create perceptually uniform color systems that scale predictably.
  • Semantic Tokens and Dark Mode
    Map raw color values to semantic token names, use light-dark() and prefers-color-scheme to support automatic theme switching.

Choose Topics

Choose Topics are a team activity. Your team divides the topics among its members so each person covers one. Smaller teams do not need to cover every topic, and larger teams should only double up when the list is shorter than the team. Work through your topic's learn page and record a short Teaching Video that teaches your teammates what you learned:

For your chosen topic, you are expected to create your own demo. You are welcome to include our demos in your video as well, but they should accompany your work, not stand in for it. Only rely on our demos as your sole demonstration if the page explicitly says so.

  • Relative Color Syntax
    Derive new colors from existing ones by adjusting individual channels directly in CSS.
  • The contrast-color() Function
    Let the browser automatically pick the most readable text color against any background.
  • Print and Forced Colors
    Handle print-color-adjust and forced-colors so your designs remain usable in print and high-contrast modes.
  • Theme Toggle and Storage
    Build a theme switcher that remembers the user's preference across visits using localStorage.
  • currentColor Patterns
    Use currentColor to keep borders, shadows, and SVG fills in sync with the inherited text color.
  • Wide Gamut and Display P3
    Tap into the wider color range of modern displays using Display P3 and color-gamut media queries.

Assignments

Part B: Visual Effects and Design Review

Learn

  • Shadows and Gradients
    Layer box shadows and CSS gradients to add depth, texture, and visual hierarchy to your components.
  • Filters and Backdrop Filter
    Apply blur, brightness, contrast, and other filter effects to elements and their backdrops for polished UI treatments.

Choose Topics

Choose Topics are a team activity. Your team divides the topics among its members so each person covers one. Smaller teams do not need to cover every topic, and larger teams should only double up when the list is shorter than the team. Work through your topic's learn page and record a short Teaching Video that teaches your teammates what you learned:

For your chosen topic, you are expected to create your own demo. You are welcome to include our demos in your video as well, but they should accompany your work, not stand in for it. Only rely on our demos as your sole demonstration if the page explicitly says so.

  • Blend Modes
    Combine overlapping colors and images using CSS blend modes for creative compositing effects.
  • Clip Path and Mask Image
    Shape elements with clip-path and reveal content through mask-image for non-rectangular layouts.
  • Shape Outside
    Wrap inline content around circles, polygons, and images for magazine-style text flow.
  • Advanced Gradients and @property
    Create repeating gradient patterns and animate gradient values using registered custom properties.
  • Filter versus Backdrop Performance
    Compare the rendering cost of filter and backdrop-filter and learn when each is the right choice.

Assignments