Skip to content
Discussion options

You must be logged in to vote

by looking at your screenshot, it seems you have bigger issues than the size of the button.. 😅
also, I'm guessing you're looking at the size of the file unminified + uncompressed

that being said, do you have an alternative in mind that would solve this ? and would you be willing to work on it ?


I noticed you have.. 98 compoundVariants (console.log(buttonRecipe.compoundVariants.length)), what's happening here ? maybe you can find a way to reduce that number ?

  • instead of generating X compoundVariants for each color and just swapping the color used like here css: { border: '1.5px solid token(colors.neutral)' } you could for example just use a CSS variable and apply that variable in the color

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by theMasix
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
Converted from issue

This discussion was converted from issue #1648 on November 06, 2023 14:30.