Replies: 2 comments 4 replies
-
Hey 👋 Something like this would be possible, but we explicitly chose to not include it because it would break being able to compose recipes up with existing classes, including using Sprinkles within your Recipes. If you wanted to go all in on Recipes and didn't want to allow class composition at all, you could build a different version of the Recipe API, however this isn't something we'd include in the core API as we feel class composition is an important feature to fit in with the other vanilla-extract APIs. |
Beta Was this translation helpful? Give feedback.
-
Hi, I ran into this issue and was wondering if there was a better way to have recipes work with conditions than just having to copy paste all the keys as new members for each condition as I did in this file while experimenting with the concept: In this example I make a |
Beta Was this translation helpful? Give feedback.
-
Hey Vanilla Extract Team,
I think it would be fantastic if
recipe
variants could support the sameconditions
system insprinkles
. Something like this:There are two major advantages I see here:
sprinkles
function.Beta Was this translation helpful? Give feedback.
All reactions