courses / css / level 3

level 3 · expert

advanced
css.

Write CSS like a professional: tokens, cascade layers, `:has()`, modern layout, motion and accessible design systems.

  • 28 lessons
  • 7 units
  • 5 h 24 m in all
  • £0, for good

what’s inside.

For people who build things on their own and want code that others trust and can change.

CSS Level 3 is for people who finished Levels 1 and 2. In 28 lessons you master custom properties and themes, cascade layers, `:has()`, subgrid and container queries, transforms, animation and reduced motion, then build a small design system with accessible focus and contrast. It ends with a level check: a themeable component set you ship yourself.

every lesson goes the same way.

  1. meet it
  2. guess first
  3. your turn
  4. fix it
  5. nailed it

unit 1

Name your values

Store colours and sizes once, then reuse and swap them across a whole site.

4 lessons · 45 min

  1. Custom properties10 minStore a colour once and use it all over the page.
  2. Tokens follow the family tree11 minRestyle a whole section by changing one token inside it.
  3. A plan B for every var()12 minKeep styles safe when a token is missing or holds the wrong thing.
  4. Themes12 minSwitch a whole page to dark mode by swapping a few tokens.

unit 2

Control the cascade

Decide which rule wins on purpose, instead of fighting specificity.

4 lessons · 46 min

  1. Group with :is()11 minWrite one selector that matches many, and know what it weighs.
  2. Weightless with :where()11 minWrite defaults that any later rule can change without a fight.
  3. Cascade layers12 minGroup rules into layers so the right ones win, whatever their weight.
  4. Setting the layer order12 minFix the order of every layer in one line, and know what beats them all.

unit 3

Look inside

Style elements by what they contain and what state they are in, with no script.

4 lessons · 46 min

  1. The :has() selector11 minStyle an element by what sits inside it.
  2. Combinators inside :has()12 minTest for direct children and next-door neighbours, and even count them.
  3. Style what is missing11 minPlan for messy data: style cards with no photo and profiles with no bio.
  4. Reacting to state12 minHighlight a choice and reveal parts of a form when a box is ticked.

unit 4

Modern layout

Shape and place components with the newest layout tools in every browser.

4 lessons · 48 min

  1. Aspect ratio10 minKeep a box's shape at any width, without working out heights.
  2. Logical properties12 minWrite spacing that follows the text, so any language looks right.
  3. Subgrid13 minLine up titles, prices and buttons across a row of cards.
  4. Container queries13 minStyle a component by the space it is given, not the screen size.

unit 5

Move, turn and grow

Move, turn and resize boxes without disturbing the layout around them.

4 lessons · 44 min

  1. Move it with translate10 minSlide a box into place without pushing anything else.
  2. Turn and resize10 minTilt stickers and grow cards without pushing their neighbours.
  3. The pivot point11 minSwing doors from their hinges and grow menus from their tops.
  4. Chaining transforms13 minCombine several moves in one property, and get the order right.

unit 6

Make it move

Animate the page with keyframes, and keep the motion kind to every visitor.

4 lessons · 47 min

  1. Keyframes11 minDescribe an animation once, then play it on any element.
  2. Timing functions11 minChoose how an animation speeds up and slows down, or ticks in steps.
  3. The animation shorthand13 minWrite a whole animation in one line, and read anyone else's.
  4. Respect reduced motion12 minTurn big movement off for people whose devices ask for less.

unit 7

Design systems

Turn your styles into a system a whole team can build with, for every visitor.

4 lessons · 48 min

  1. Design tokens and scales13 minSplit tokens into raw values and jobs, and build a spacing scale.
  2. Utility classes12 minAdd small one-job classes that always win, without heavier selectors.
  3. Focus you can see11 minGive keyboard users a clear, consistent focus ring from your tokens.
  4. Contrast you can trust12 minPick text and surface tokens that everyone can read, in every theme.
end of level 3 level check: a themeable component set Build one small project with everything from this level. Pass it and your face levels up. see the check

finished css?

pick your next language.

see all courses