type-safe CSS-in-JS, compiled, composable
StyleX
Thinking in StyleX | StyleX
facebook/stylex: StyleX is the styling system for ambitious user interfaces.
- compiled: compiled to CSS classes and variables at build time; no runtime overhead
- composable:
stylex.props()
replacestailwind-merge
- easier to reset by setting style to
null
- limits what can be overridden with template class
- theme/styling system with
createTheme()
/defineVars()
Facebook Did It Again - YouTube
Facebook Tried Tailwind, Then Built This Instead - YouTube
Facebook's Tailwind Killer Is Now Open Source - YouTube