You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know all these tailwind classes are not for everyone, but the decision was made that tailwindcss would be where we configure our "tokens".
I came across class-variance-authority recently, and it looks like it might solve the same problem as @vanilla-extract/recipes but I'm not sure what exactly the differences are between the two?
Is @vanilla-extract/recipes overkill in my case? Would cva be more performant? What if I want to use make the base variable dynamic a la Provider?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey there,
We've been building some components for our design system using
@vanilla-extract/recipes
& tailwindcss and we love it so far.Here's a quick example of how we use it:
I know all these tailwind classes are not for everyone, but the decision was made that
tailwindcss
would be where we configure our "tokens".I came across
class-variance-authority
recently, and it looks like it might solve the same problem as@vanilla-extract/recipes
but I'm not sure what exactly the differences are between the two?Is
@vanilla-extract/recipes
overkill in my case? Wouldcva
be more performant? What if I want to use make thebase
variable dynamic a la Provider?Beta Was this translation helpful? Give feedback.
All reactions