Angular material design - how to add custom button color?
问题 I want to add my own custom colors, similar to "primary", "warn" etc. For example, I added a class for an orange background, but I use it as a class and not as a color attribute. It works, but the code looks a bit confusing. <button md-raised-button color="primary" class="btn-w-md ml-3 orange-500-bg"> <i class="material-icons">description</i> Deactivate </button> What do I need to do to add it as color="orange" ? 回答1: You can change the color of the button only in the normal css way by