Always impressed by how insanely overcomplicated people can make CSS.
StyleX – Meta's styling library
21–30 of 86 posts
Re: StyleX – Meta's styling library
#22Just at a cursory glance, this looks pretty verbose and clunky. Existing React ecosystem styling solutions are many, so it’s not immediately evident to me when you would accept the trade offs introduced by this tool over any existing ones that seem much nicer to not only integrate, but also have to work with day to day.
0 runtime is the argument over emotion (and therefore MUI right now)
Re: StyleX – Meta's styling library
#23I hate having to give everything a name like people do in react native stylesheets. Give me an inline performant style prop any day
What do you mean "inline style prop," writing CSS in the HTML style attribute? That's a nightmare to manage across large apps, not composable or reusable, and this library compiles to performant styling (according to the authors/examples).
Re: StyleX – Meta's styling library
#24Always impressed by how insanely overcomplicated people can make CSS.
Re: StyleX – Meta's styling library
#25How does this compare to https://griffel.js.org/ ?
This appears to place more emphasis on static typing, and has less strange syntax (think of "shorthand" in Griffel).
The docs steer you away from atomic CSS, whereas Griffel's embraces them.
Re: StyleX – Meta's styling library
#26Just at a cursory glance, this looks pretty verbose and clunky. Existing React ecosystem styling solutions are many, so it’s not immediately evident to me when you would accept the trade offs introduced by this tool over any existing ones that seem much nicer to not only integrate, but also have to work with day to day.
it was exciting at launch, but took forever to ship, and now Tailwind has run away with that problem.
Re: StyleX – Meta's styling library
#27I hate having to give everything a name like people do in react native stylesheets. Give me an inline performant style prop any day
Re: StyleX – Meta's styling library
#28Borrows a lot from emotion/styled-components it appears. The extensive typing seems to be the biggest feature. They mention why I should choose it over BEM or Tailwind, why choose it over MUI though?
Does anyone really like Material UI? I find it so clunky and heavy.
createTheme() (from this library) seems clunky too, but makes sense.