transform stylex.create() and stylex.props clientside #711
philholden
started this conversation in
General
Replies: 1 comment 3 replies
-
You should be able to use Generally this is only suggested for development, but it might work for your use-case as well. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am currently using Emotion and considering moving to StyleX the biggest blocker is getting StyleX working in our user editable playgrounds. Just need the ability to ability create and apply classes but do not need the ability to define variables. The theme variables can be available precompiled on on the playground scope but I want users of the playground to be able to override simple styles like margin on components.
The editor has a transformCode prop allowing the code entered to be transformed so ideally I'd like to use that to transform the code with a subset of stylex. Looking to be able to do simple things like this:
However the babel transform code has lots of node ecosystem stuff in it which stops it running in the browser. The playground does not allow importing or exporting so does needs very reduced stylex functionality.
Beta Was this translation helpful? Give feedback.
All reactions