Topic: How to change Primary (or other) colors
                  
                  Jonathan Yates
                  pro
                  asked 9 years ago
                
                      
                      dominic_ks
                      premium
                        answered 5 years ago
                    
Hi, following on from this - this file is in the node_modules folder - presumably if you update colours here they will be overwritten next time you update MDB?
Marta Wierzbicka free commented 5 years ago
Hi,
with every update of our MDB package, we overwrite our files. If you don't want the new files to overwrite your custom colors variables and classes, you need to add your custom settings to the _custom-styles.scss file and when you download a new package, you replace an existing _custom-styles.scss file with your own one and you have updated the package of MDB and your custom code. Also, you can download the new MDB package and copy and paste new CSS, JS and SCSS files to your existing project. Maybe it will be easier for you.
Best, Marta
                      
                      jar8
                      free
                        answered 6 years ago
                    
hi , for change primary color, what file scss i have to change ?, i have the MDB-Pro_4.8.2 and i can't found data/_colors.scss that Marta Szymanska do mention.
Marta Wierzbicka free commented 6 years ago
Hi,
in MDB Gulp package, a path to the colors is scss/core/_colors.scss. Also, I recommend you to update your package to the newest version, for now, it is a 4.8.5 version of MDB package.
Best, Marta
jar8 free commented 6 years ago
thanks by the answer , where can i download the newest version?, please
Marta Wierzbicka free commented 6 years ago
Hi,
here is the link: https://mdbootstrap.com/profile/my-orders/. When you are logged in to your MDB account, you will find the newest package at this link.
Best, Marta
jar8 free commented 6 years ago
thank you too much
Marta Wierzbicka free commented 6 years ago
Hi,
you're welcome.
Best, Marta
                      
                      Bartłomiej Malanowski
                      staff
                        answered 9 years ago
                    
avanibhatnagar free commented 6 years ago
I tried doing that. It still doesn't let me choose my colors!
                      
                      Jonathan Yates
                      pro
                        answered 9 years ago
                    
                      
                      Marta Wierzbicka
                      free
                        answered 9 years ago
                    
$primary-color: #4caf50;
.primary-color {
    background-color: #4caf50!important;
}
$primary-color-dark: #2e7d32;
.primary-color-dark {
    background-color: #2e7d32!important;
}
Do you use minified version? 
                    
                      FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Pro
 - Premium support: No
 - Technology: General Bootstrap questions
 - MDB Version: -
 - Device: -
 - Browser: -
 - OS: -
 - Provided sample code: No
 - Provided link: No