~/talk

Custom properties as the basis of CSS architecture

TalkinRussianat FrontTalks 2016 · 2016-09-17..09-18· [css, web-platform]
links:none on file
slides:none on file

Native CSS custom properties (CSS variables) are presented as real runtime variables that inherit through the DOM and obey the cascade, enabling techniques like responsive spacing via media-query-scoped runtime variables instead of build-time Sass hacks. The workflow described includes using the PostCSS plugin postcss-custom-properties to generate static fallbacks for older browsers while keeping the original variables, and manipulating them from JavaScript via element.style; recommended practices are scoping at :root or :host, providing fallbacks with var(..., fallback), and noting that variables cannot be used inside media-query arguments or inside url() functions.

AI-written summary · about

  1. 0:00Introduction
  2. 1:15CSS preprocessor limits
  3. 4:33CSS variables history
  4. 9:53CSS variable scope
  5. 12:44CSS variable concept
  6. 15:11Comparison with preprocessors
  7. 17:00Inheritance and cascade
  8. 20:33Cascade advantages
  9. 22:39Internationalization with variables
  10. 23:44CSS functions usage
  11. 25:28Variables in components
  12. 26:31JavaScript integration
  13. 27:55Legacy browser support
  14. 29:23Advanced use cases
  15. 30:24Future of CSS variables
  16. 30:45Closing remarks
  17. 31:11Q&A
~/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.