Topic: How to change Primary (or other) colors
Jonathan Yates pro asked 8 years ago
Marta Szymanska staff pro premium answered 8 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? Jonathan Yates pro answered 8 years ago
Bartłomiej Malanowski staff pro premium answered 8 years ago
jar8 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 Szymanska staff pro premium 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 commented 6 years ago
thanks by the answer , where can i download the newest version?, please
Marta Szymanska staff pro premium 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 commented 6 years ago
thank you too much
Marta Szymanska staff pro premium commented 6 years ago
Hi,
you're welcome.
Best, Marta
dominic_ks pro 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 Szymanska staff pro premium 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
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
- Premium support: No
- Technology: General Bootstrap questions
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No