Understanding cva and tokens #2403
Answered
by
anubra266
jimmymorris
asked this question in
Q&A
Replies: 1 comment 2 replies
-
export const sampleRecipe = cva({
base: {
display: 'flex',
color: 'token(colors.text.action.default)',
// if you need fallback value
color: 'token(colors.text.action.default, red)',
},
}); |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
jimmymorris
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I was hoping to make sure I'm understanding something or need to make a feature request.
First question
Any reason why textStyles are not abled to be added to a
cva
?It seems like I cannot do the following:
Second question:
I have an atomic recipe that I'm wanting to create, I currently have the following:
I also understand that the following works:
but what it seems is that the following does not work:
Beta Was this translation helpful? Give feedback.
All reactions