Topic: Problem Customizing button colors

t.rable pro asked 6 years ago

With the new Version MDB-4.1.1 it's impossible to customize the buttons, because of the extensive use of !important, for example: .btn-primary { background: #4285F4; color: #fff !important; } ..... We have "background: white" for the btn-primary. Why is it necessary to use !important?? Thanks and best regards, Werner Buchert.

Michal Szymanski staff answered 6 years ago

It's required because Bootstrap itself use !important for some buttons styles, which conflict with our buttons. If you want to add a custom color for your buttons you also need use !important tag. When Bootstrap stops using !important we'll fix that issue immediately.
.btn-primary {
background: #4285F4;
color: red !important;

Please insert min. 20 characters.


Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.


Specification of the issue

  • User: Pro
  • Premium support: No
  • Technology: General Bootstrap questions
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No