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
To change the color of components, we manually change the classes for only one color. To be able to use the primary color and various other colors at the same time, you can add color changes to componentVariants.
Or you can create your own version of cva so that you can throw class templates for variants.
Or you can create an additional library that can perform this function. 👍
Why?
Many websites and projects require colorful components, but having only one color on a website looks very boring, and writing classes for all colored components yourself takes a long time.
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
Uh oh!
There was an error while loading. Please reload this page.
-
To change the color of components, we manually change the classes for only one color. To be able to use the primary color and various other colors at the same time, you can add color changes to
componentVariants
.How?
Why?
Many websites and projects require colorful components, but having only one color on a website looks very boring, and writing classes for all colored components yourself takes a long time.
Beta Was this translation helpful? Give feedback.
All reactions