~/talk

Building user-adaptive interfaces with preference media queries

Talkat Google I/O 2021 · 2021-05-18..05-20· [css, accessibility]
slides:none on file

A live workshop shows a complete CSS-only settings form that becomes themeable, responsive, animated and accessible without JavaScript. It uses grid with repeat(auto-fit, minmax()), logical properties, rem-based spacing, HSL color channels and a single orientation media query plus user media queries like prefers-color-scheme & prefers-reduced-motion. DevTools and CodePen (or Vite) verify behavior; the form respects system font size, input modality and writing direction and the color/theme system actually adapts as promised.

AI-written summary · about

  1. 0:00Intro
  2. 1:15User Preferences
  3. 6:17CodePen
  4. 6:53HTML
  5. 7:28Adaptive interactions
  6. 8:30Grouping inputs
  7. 10:48Screen Reader
  8. 12:00Adaptive Layout
  9. 12:21Spacing
  10. 14:41Typography
  11. 16:07Logical Properties
  12. 17:45Flex Start
  13. 18:25Grid Dev Tools
  14. 19:56Display Grid
  15. 20:19Form Grid
  16. 23:30Section Grid Demo
  17. 24:13Field Set Demo
  18. 25:36Field Set Item Demo
  19. 26:19Field Set Item Picture
  20. 26:57Field Set Item Selector
  21. 27:45Field Set SVG
  22. 29:12Input Type checkboxes
  23. 29:36Open Dev Tools
  24. 30:29Width selector
  25. 31:29Gain more space
  26. 31:51Repeat
  27. 33:09Style
  28. 33:33Field Set
  29. 35:19Layout Summary
  30. 35:35Color
  31. 37:49Setting up color channels
  32. 38:49Adding color
  33. 39:03Global custom properties
  34. 39:45Color channels
  35. 40:12Text and surface colors
  36. 41:00User preference
  37. 41:20Text properties
  38. 43:25Color scheme
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.