~/talk

Decoding StyleX: Meta's Cutting-Edge Styling System

Talkat React India 2024 · 2024-10-15..10-19· [css, react]
links:none on file
slides:none on file

Meta’s Stylex is an atomic, compile-time styling system used across Facebook, Instagram, WhatsApp and Threads that cuts a single-page stylesheet from 15–45 MB → 200–300 KB in their 2019 revamp. It generates static CSS and CSS variables at build time, integrates with React’s render pipeline for faster renders, scopes styles per component, supports per-property media queries and conditional styles, and is authored in Flow with auto TypeScript types enabling atomic inline CSS reuse and predictable “last style wins” behavior.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 1:46What is StyleX
  3. 3:33Why StyleX was created
  4. 5:00Key benefits of StyleX
  5. 7:50Basic StyleX usage in React
  6. 9:36Hover and pseudo-classes in StyleX
  7. 10:17Media queries in StyleX
  8. 11:02Conditional styling in StyleX
  9. 13:31Overriding styles in StyleX
  10. 14:57Atomic CSS and bundle size
  11. 16:23Theming and design tokens
  12. 19:12StyleX vs Tailwind comparison
  13. 23:49Q&A and resources
~/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.