Replies: 1 comment 2 replies
-
This is not allowed, You can't arbitrarily nest styles more than one level deep. You can split up into multiple variables though: export const buttonSolidStyles = stylex.create({
base: {
borderWidth: 2,
},
color: (color: Colors) => ({
borderColor: colors[`${color}500`],
}),
});
export const buttonOutlineStyles = stylex.create({ ... });Also, not sure where |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Like
I write dynamic compoundVariants
but throw error
A style value can only contain an array, string or number.Beta Was this translation helpful? Give feedback.
All reactions