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 withoklch(),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, uselight-dark()andprefers-color-schemeto 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
Handleprint-color-adjustandforced-colorsso 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. -
currentColorPatterns
UsecurrentColorto 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 andcolor-gamutmedia queries.
Assignments
-
Tokenized Color System and Dark Mode
Wire your color ramps into semantic tokens and implement a fully functional dark mode on your portfolio. -
Teaching Video Report
Complete your chosen topic report, download the PDF, and submit it to Canvas.
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 withclip-pathand reveal content throughmask-imagefor 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 offilterandbackdrop-filterand learn when each is the right choice.
Assignments
-
Visual Effects
Apply shadows, gradients, and filters to your portfolio components with intentional art direction. -
Teaching Video Report
Complete your chosen topic report, download the PDF, and submit it to Canvas. -
Design Review: Tokens, Themes, and Effects
Present your color system, theme implementation, and visual effects for peer and instructor feedback.