Skip to content
Discussion options

You must be logged in to vote

Scenario 1 -> yes, that works


Scenario 2:

there's no such thing as an inline callback like the backgroundColor: ${(props) => props.isTrue? 'red' : 'white' with Panda styled factory

  1. you can directly reference your theme tokens like this: color: 'colorBg'
  2. you can also use compoundVariants to handle props-based variants
  3. you can also just use styled inside one of your custom component and deal with that logic in there

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by astahmer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants