Welcome to Color, Themes and Motion! Colors picked by eye can look fine and still be hard to read. Motion that delights one visitor can make another dizzy. This course is about choosing both on purpose, and checking that they work for everyone.
It’s course 3 of 5 on the Modern CSS and Accessible Interfaces learning path, and it stands on its own, so you can start it here.
You’ll work on the catalogue site of the Hawthorn Seed Library. Bea runs the library from the community center. Neighbors borrow seeds in spring and bring back seeds from their harvest in the fall.
You’ll start from her current site, whose colors are hex values picked by eye from her printed seed packets: a leaf green, a terracotta, and a sunflower yellow. It has no dark theme, and nobody has checked its contrast. When you’re done, you’ll have the finished site from the video, in light and dark.
What You’ll Learn
By the end of this course, you’ll be able to build light and dark themes from tokens with modern color, check that every text and interface color meets WCAG AA contrast in both, and add motion and page transitions that respect people’s settings.
Along the way, you’ll:
- Build a palette in
oklch(), a newer way to write CSS colors - Give it light and dark themes
- Measure contrast in both themes
- Adapt to people’s settings, such as reduced motion
- Make a seed’s photo grow from the catalogue into its page
In the project, you’ll style the whole Hawthorn Seed Library site.
Before You Start
You need HTML and CSS up to custom properties, cascade layers, media queries, and transitions, plus a current version of Chrome or Edge and an editor with a live preview. You won’t write any JavaScript in this course.
The starting stylesheet keeps its colors in tokens, which are custom properties. Primitives hold raw values, and semantic tokens such as the text color point at them. Each lesson recaps what it needs.
How the Course Works
Text lessons and videos alternate with coding exercises. Their tests check your CSS but can’t see the page, so you check how it looks in your browser. Then come a project, a chat with the RealJS AI mentor about your choices, a quiz, and a summary.
Get the Code
The download on this course’s page has the starting version of Bea’s site and the finished one. Open the starting site in your live preview now.
Next comes a text lesson, Build a Palette in oklch(), where you rewrite Bea’s colors.