~/talk

Encapsulation and Theming: The New Frontiers of the Final CSS Challenge

TalkinItalianat CSSDay 2018 · on Friday, 2018-03-16· [frontend-architecture]
slides:none on file

Explains how Shadow DOM encapsulation protects component styles but prevents global theming, and recommends practical approaches: use CSS custom properties with providers (example: styled-components) or limited selectors like :host and ::slotted to create hooks. Describes the new ::part with part forwarding proposal to allow outer CSS to style internals, notes browser support (Chrome OK, Firefox behind a flag, Safari improving) and warns that the old apply() proposal has been removed so tradeoffs remain.

AI-written summary · about

  1. 0:00Modern CSS themes
  2. 3:15Global cascade problems
  3. 5:48Isolated style components
  4. 6:31BEM for styling
  5. 7:58BEM limits with complex components
  6. 10:54BEM drawbacks and alternatives
  7. 11:35CSS encapsulation history
  8. 14:35Shadow DOM encapsulation
  9. 16:00Framework encapsulation
  10. 18:10CSS-in-JS theming in React
  11. 20:01Web Components support
  12. 21:29Component reuse and consistency
  13. 22:12Shadow piercing risks
  14. 23:41CSS host functions and ::part
  15. 26:12Custom elements and styling
  16. 27:46External CSS to components
  17. 29:13Direct CSS risks
  18. 31:02CSS variables alternative
  19. 33:33@apply function problems
  20. 36:31Native element styling
  21. 37:35::part and ::theme intro
  22. 41:09::part and ::theme limits
  23. 42:15CSS theming proposals
~/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.