Only static values are allowed inside of a stylex.create() call. #444
Replies: 1 comment 2 replies
-
No this is not possible. This rule is explicitly documented. You can move all the tokens to the same file as separate named exports. That's the closest you can get to what you're trying to achieve. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am trying to create a design-system for our product using stylex. I defined tokens and used them in storybook and everythingn works ok. However, I tried to create an object with multiple tokens:
but I can't use the new object created since I get the error
Only static values are allowed inside of a stylex.create() call..Is there anything I can do to organize the tokens into a single object?
Thanks a lot,
Adi
Beta Was this translation helpful? Give feedback.
All reactions