~/talk

CSS in JS: What For and Why?

TalkinRussianat HolyJS 2017 Piter · 2017-06-02..06-03· [css]
links:none on file
slides:none on file

Overview of CSS-in-JS: why use it, how it works, and how it supports dynamic CSS. Compares existing libraries and their differences, presents the approach the author’s team uses and why, and describes experiments (a browser extension and a Service Worker) for caching generated CSS, with many concrete examples.

AI-written summary · about

  1. 0:00Introduction
  2. 1:19CSS in JS benefits
  3. 6:21Dynamic CSS with JS
  4. 8:28Code reduction
  5. 9:31DRY and variables
  6. 10:59Clean code
  7. 12:24No configs
  8. 13:06Regular styles problems
  9. 14:32IDE and DOM issues
  10. 15:35CSS in JS libraries
  11. 17:36JSS pros and cons
  12. 20:05Aphrodite approach
  13. 23:17Fela features
  14. 24:43Styled Components strengths
  15. 27:15Styled Components perf
  16. 29:00Ideal library
  17. 30:26Why we built ours
  18. 31:54Composition
  19. 33:43Unique class names
  20. 35:48Readable class names
  21. 36:52Components with states
  22. 37:58Properties table
  23. 39:43Main reason
  24. 41:05Template literals
  25. 42:10Parsing CSS strings
  26. 44:42Parsing optimization
  27. 46:08Inserting styles
  28. 48:15Runtime optimization
  29. 51:55Production solutions
  30. 54:27Resources
  31. 55:53Q&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.