Skip to content

[theme] Allow custom color variants #13875

@carlgunderson

Description

@carlgunderson
  • This is not a v0.x issue.
  • I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior 🤔

The ability to have success in the color palette for Button, or any component w/ a color prop.

Current Behavior 😯

Only error palette option is available.

Context 🔦

Similar to the need for error styling, a success color palette option for any component that has a color prop 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 success and 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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: importantThis change can make a difference.ready to takeHelp 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.v5.x

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions