~/talk

Strategy Guide for CSS Custom Properties

Talkat CSSconf EU 2018 · on Friday, 2018-06-01· [css, frontend-architecture]
slides:none on file

Claims: global design tokens tend to be static (a 90% rule), local component values tend to be dynamic; prefer Sass for static globals and CSS custom properties for locally dynamic values. Tools shown: Sass interpolation, runtime custom properties, document.documentElement.style.setProperty, and postcss-variables to emit static fallbacks. Built demos: responsive button sizes using one property, a runtime modular-scale generator (works but is better computed at design time), and an organizational pattern called the logic fold. Core rule emphasized: change the value not the variable.

AI-written summary · about

  1. 0:00Introduction to properties
  2. 1:07Syntax and limitations
  3. 3:50Scoping and inheritance
  4. 5:51Global vs local variables
  5. 8:46Local dynamic variables
  6. 11:45Avoiding complex abstractions
  7. 15:01Changing values over variables
  8. 16:14Responsive design strategies
  9. 20:15Theming and JS integration
  10. 25:30Compatibility and summary
~/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.