Loading video player…

Color, Themes and Motion (Overview)

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.

Download

Course Slides (.pdf)

690.2 KB
Download

Sample Code (.zip)

292.3 KB

00:00 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.

00:10 This course is about choosing both on purpose and checking them. Here’s a first taste of the finished site, in light and dark. This course is third of five on the Modern CSS and Accessible Interfaces path, and stands on its own.

00:27 Bea runs the Hawthorn Seed Library from the community center. Neighbors borrow seeds in spring and return seeds from their harvest. Here’s her site as you’ll start it, with hex colors picked by eye from her seed packets: a leaf green, a terracotta, and a sunflower yellow.

00:44 It has no dark theme, and nobody has checked its contrast.

00:49 By the end, 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.

01:05 You’ll build a palette in OKLCH, a newer way to write CSS colors, and give it two themes. You’ll measure contrast, adapt to settings like reduced motion, and make a photo grow into its page.

01:17 Then you’ll style Bea’s whole site.

01:23 You need HTML and CSS up to custom properties, cascade layers, media queries, and transitions, plus a current Chrome or Edge and a live-preview editor. You won’t write any JavaScript.

01:36 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.

01:49 Each lesson recaps what it needs.

01:53 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 AI mentor, a quiz, and a summary.

02:08 The course page’s download has the starting site and the finished one. Open the starting site in your live preview now. Next, in the text lesson Build a Palette in oklch(), you rewrite Bea’s colors.

Become a Member to join the conversation.