-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
[theme] Allow custom color variants #13875
Copy link
Copy link
Closed
Labels
priority: importantThis change can make a difference.This change can make a difference.ready to takeHelp wanted. Guidance available. There is a high chance the change will be acceptedHelp wanted. Guidance available. There is a high chance the change will be acceptedtype: new featureExpand the scope of the product to solve a new problem.Expand the scope of the product to solve a new problem.v5.x
Milestone
Metadata
Metadata
Assignees
Labels
priority: importantThis change can make a difference.This change can make a difference.ready to takeHelp wanted. Guidance available. There is a high chance the change will be acceptedHelp wanted. Guidance available. There is a high chance the change will be acceptedtype: new featureExpand the scope of the product to solve a new problem.Expand the scope of the product to solve a new problem.v5.x
Expected Behavior 🤔
The ability to have
successin the color palette for Button, or any component w/ acolorprop.Current Behavior 😯
Only
errorpalette option is available.Context 🔦
Similar to the need for error styling, a
successcolor palette option for any component that has acolorprop would be equally valuable. The current functionality to get a green button option, for instance, requires lots of custom styling on the Button component which isn't ideal. If error is warranted in the palette, why not success as well?Another idea is for some kind of dynamic mapping, so if you created a manual key of
successand passed it in as a color prop to a Button, the button would just try to find the theme override with that key in the palette.Thanks!