top | item 38546038 (no title) blsapologist42 | 2 years ago It does support dynamic values. discuss order hn newest nwienert|2 years ago Can you link me to how you know that? The docs seem to indicate it doesn't:"Since StyleX depends on ahead-of-time compilation, it is important for all your styles to be statically analyzable""No runtime style injection.""All styles are bundled in a static CSS file at compile-time."---By dynamic styles I assume we're talking about something like this:{ backgroundColor: props.thirdPartyColor ?? randomColor() } naman34|2 years ago https://stylexjs.com/docs/learn/styling-ui/defining-styles/#... load replies (1)
nwienert|2 years ago Can you link me to how you know that? The docs seem to indicate it doesn't:"Since StyleX depends on ahead-of-time compilation, it is important for all your styles to be statically analyzable""No runtime style injection.""All styles are bundled in a static CSS file at compile-time."---By dynamic styles I assume we're talking about something like this:{ backgroundColor: props.thirdPartyColor ?? randomColor() } naman34|2 years ago https://stylexjs.com/docs/learn/styling-ui/defining-styles/#... load replies (1)
nwienert|2 years ago
"Since StyleX depends on ahead-of-time compilation, it is important for all your styles to be statically analyzable"
"No runtime style injection."
"All styles are bundled in a static CSS file at compile-time."
---
By dynamic styles I assume we're talking about something like this:
{ backgroundColor: props.thirdPartyColor ?? randomColor() }
naman34|2 years ago