~/talk

The strategy guide to CSS Custom Properties

Talkat .concat() 2018 · on Saturday, 2018-03-03· [css, web-platform, frontend-architecture]
slides:none on file

Custom properties are dynamically scoped CSS values that inherit and obey the cascade so use preprocessors for static globals (brand colors, spacing) and custom properties for locally dynamic values tied to media queries or DOM state. Place all variable declarations and media queries at the top — the logic fold — and update one CSS variable instead of swapping names. Use the JS API or postcss-css-variables to polyfill old browsers. This workflow ships in production and noticeably simplifies responsive and theming work.

AI-written summary · about

  1. 0:00Introduction
  2. 3:07What are custom properties
  3. 5:58Dynamic scope
  4. 7:20Global
  5. 8:03Static
  6. 10:57Assigning custom variables
  7. 11:46Using preprocessors
  8. 12:22Dont do what it run time
  9. 13:12Modular scale example
  10. 14:43Change the value not the variables
  11. 15:57Fragmented values
  12. 16:27Separating logic from design
  13. 17:54The logic fold
  14. 18:51Example
  15. 21:40Global Custom Properties
  16. 22:26Updating Custom Properties
  17. 23:22Style Attributes
  18. 24:00Use Custom Properties Today
~/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.