~/talk

Styled Components

Talkat .concat() 2018 · on Saturday, 2018-03-03· [react, css]
slides:none on file

A concrete solution: a library called styled-components that binds CSS strings to components, implemented with tagged template literals that let functions interpolate props, injects real CSS into a style tag rather than inline styles, and uses React context for a theme provider so themes swap without altering component APIs. It arises from shipping a component library (Elemental UI, Spectrum), prototypes in a week, publishes styles via npm, and works in the browser with media queries and pseudo selectors.

AI-written summary · about

  1. 0:00Start
  2. 4:40Hiding Implementation Details
  3. 10:33Tag Template Literals
  4. 10:59Functions for Conditional Styling
  5. 13:10Styled Components
  6. 14:49Color Changer Component
  7. 17:00Theming
  8. 19:10React Context
~/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.