Chester pro asked 5 years ago

What is the correct way to add new colors into MDB library? My guess is to add in a new color into _colors.scss. For example: //Create new color variable $myspecialcolor: ( "base": #F44336, ); //Add new color to $colors collection $colors: ( "myspecialcolor": $myspecialcolor, "mdb-color": $mdb-color, "red": $red, "pink": $pink, "purple": $purple, "deep-purple": $deep-purple, "indigo": $indigo, "blue": $blue, "light-blue": $light-blue, "cyan": $cyan, "teal": $teal, "green": $green, "light-green": $light-green, "lime": $lime, "yellow": $yellow, "amber": $amber, "orange": $orange, "deep-orange": $deep-orange, "brown": $brown, "blue-grey": $blue-grey, "grey": $grey, "shades": $shades ); //CSS usage .myCustomDiv { color: color("myspecialcolor", "base"); } Is this correct?

Chester pro answered 5 years ago


Hi, Chester! yes, this is correct ;)

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