Closed AbdallahAbis closed 2 years ago
Great question. I'm in a little hurry right now, but I will take a time to respond this later today
Sure. Take your time.
This is another great point. Something we definitely need to implement. Stiches JS has Compound Variants https://stitches.dev/docs/variants#compound-variants
We probably can take ideas from that.
What do you think?
looks great! it will reduce the number of ternary operators used in functional variants.
Hey @AbdallahAbis , I've just added a new Pull Request which should solve this issue. Could you give your thoughts on that, please? :)
Hey @AbdallahAbis, check this out https://windstitch.vercel.app/docs/compound-variants ;)
I have this component:
I render this:
the output I get:
The issue here is the output has conflicting classNames and it shows a normal font instead of bold.
The question would be, how can I make the variant reference the size and weight so specifying the variant acts just like specifying both weight and size and I won't get those conflicting classNames? or how can I make the defaultVariants not apply if the variant prop is specified?
the expected result is
I render this:
The output should be: