News for hackers. Stuff that matters.
Re:StyleX – Meta's styling library by candiddevmike on Tuesday December 05, 2023 @07:47PM (#38539065)
Inline styles by themselves don't support a lot of necessary CSS things like media and child selectors. You lose the "cascading" part of CSS...
Re:StyleX – Meta's styling library by nwienert on Tuesday December 05, 2023 @08:32PM (#38539437)
Try out Tamagui which solves this - child and media selectors, even container queries and stuff like container + pseudo.
Re:StyleX – Meta's styling library by cantSpellSober on Tuesday December 05, 2023 @10:17PM (#38540139)
Unclear if they mean inline styles as in "the HTML attribute" or a React prop. Tamagui doesn't solve the former.