Skip to content

Topics

Jump to a topic.

Search questions

Find a question by title, tag, or summary.

Chapter 09

Typography, colour, and motion

The finishing layer: how fonts are matched, how text wraps and truncates, modern colour spaces and dark mode, and CSS transitions and animations.
  1. 010How does the browser pick a font face, and when does it synthesise bold or italic?medium
  2. 020How do you truncate text with an ellipsis on one line or several?easy
  3. 030What do oklch() and wide-gamut colour spaces give you over rgb() and hsl()?medium
  4. 040How do color-mix() and relative colour syntax work?medium
  5. 050How do color-scheme and light-dark() support dark mode?medium
  6. 060How do CSS transitions work, and how do you transition display or an element's entry?Coremedium
  7. 070How do @keyframes animations differ from transitions?medium