~/talk

Styled Components, SSR, and Theming

Talkat React Finland 2018 · on Wednesday, 2018-04-25· [react]
slides:none on file

Styled-components v2 with Next.js actually extracts and injects critical CSS on the server using Next.js SSR with ServerStyleSheet, so pages render styled immediately even with JavaScript disabled; a demo app (a Sean Bean death list) proves the approach and the server-rendered page stops waiting for CSS that formerly showed up ~400ms later. Theming uses ThemeProvider and a time-based theme for accessibility fed through React context, polished is used for color math, and the demos are open source and working.

AI-written summary · about

  1. 0:00Intro
  2. 2:05CSS to HTML
  3. 2:50About Kasia
  4. 4:10Do I really need this
  5. 5:04CSS
  6. 6:00Advantages of Styled Components
  7. 7:38Theming
  8. 8:11Disclaimer
  9. 8:40Important
  10. 9:38Global vs Local
  11. 11:04Styling
  12. 12:09Plain CSS
  13. 12:40Simple People
  14. 14:27Underlying Class
  15. 14:47What Can Go Wrong
  16. 15:18Specificity Problem
  17. 20:54Theme Provider
  18. 22:02Demo
  19. 28:16Whats more
~/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.