Replies: 2 comments 1 reply
-
|
Hey could you show me an example for this? |
Beta Was this translation helpful? Give feedback.
0 replies
-
In the "alert" component, you do the same thing, except instead of having preset classes in the theme with the colors (like at the beginning of the code), you use colors from the tailwind itself: "bg-amber-50 text-amber-800 dark:border-amber-700 dark:bg-amber-950/30" Basically, I propose standardizing status colors:
and using it in different components such as buttons, following the same logic as the alert component using CVA. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Why not use default status colors like info, warning, success, and error instead of destructive?
And use the styles in different components, such as buttons, chips... just like alert does (but with the colors directly in the theme)
Beta Was this translation helpful? Give feedback.
All reactions