Bea’s catalogue now has a palette built in oklch(), two themes, colors that pass AA, motion that respects people’s settings, and seed photos that grow into their pages. You built all of that one lesson at a time. Bea has asked for the whole job in one go.
In this project, you’ll restyle the Hawthorn Seed Library from its starting colors on your own, in four steps that each end in a graded exercise. You’ll also run the checks that no test can, in a real browser.
Read Bea’s Brief
Bea left her request at the front desk, written on the back of a seed packet. Neighbors borrow seeds from the library in spring and bring back seeds from their harvest in the fall, and she’d like the website to feel like one of the packets. Here’s what she asks for:
- The three colors from the packets: the leaf green, the terracotta, and the sunflower yellow
- A dark version for neighbors who read the catalogue late at night, and a way for each visitor to pick the theme they like
- Text and controls that everybody can read, whatever their eyesight or their screen
- Pages that still work for neighbors who get dizzy when things slide around, and for those who use high-contrast settings
- A seed’s photo that grows out of the catalogue when someone opens its page
You’ve done each line of the brief in this course. What’s new is doing them all, in order, without a lesson to follow. Each step below names the lesson that taught it, so if a step feels hazy, revisit that lesson first.
Set Up the Starting Site
Make a fresh copy of the starting site you downloaded at the beginning of the course, and open it in your editor. Its colors are the hand-picked hex values you started with.
The stylesheet keeps its colors in three tiers of custom properties on :root, in the base layer. Primitives hold raw values, semantic roles such as --color-text and --color-focus point at primitives, and components read only the roles. Keep that split for colors.
Every color you pick goes in a primitive or a role. Components still change in other ways, since later steps rework the badge’s pulse, give buttons real edges, and name photos for the transition.
Serve the site with your editor’s Live Preview and open it in Chrome or Edge at the address it gives you, such as http://127.0.0.1:3000/index.html. Don’t open the files straight from disk. Pages with a file:// address don’t share an origin, so the page transition would never play.
The exercises’ tests read only your CSS, so build each step in your local copy too and run its browser checks there.