Set Custom:Button Card Color

I don’t know if you can do it with the regular button card but I know you can with custom button card in HACS. You can have different colors for each state.