Hello,
I want to work on a big modification to Metronik, and I modified the defaults through variables and it was done very easily.
But when I add new elements or delete existing elements in $theme-colors, I did not get correct results.
For example, I want to delete the elements info, light & dark through the following code:
$theme-colors: map-remove($theme-colors, "info", "light", "dark");
$alhalabi-colors: (
"primary2": $primary2-100,
// secondary 1 is overwritten by $secondary
"secondary2": $secondary2-100,
"secondary3": $secondary3-100,
"secondary4": $secondary4-100,
"help": $help,
"help2": $help2
);
$theme-colors: map-remove($theme-colors, "info", "light", "dark");
Hi Mohammed Alhalabi
Have you rebuild the assets using gulp or webpack?
Metronic processes variables in a specific order. Make sure your custom modifications are executed after the core _variables.scss has been imported.
Instead of modifying directly, create an updated version of $theme-colors like this:
// Custom Theme Colors
$theme-colors: map-remove($theme-colors, "info", "light", "dark");
// Add Custom Colors
$theme-colors: map-merge($theme-colors, (
"primary2": $primary2-100,
"secondary2": $secondary2-100,
"secondary3": $secondary3-100,
"secondary4": $secondary4-100,
"help": $help,
"help2": $help2
));