Answers for "Change scss variables dynamically angular"

CSS
2

change css to scss angular

ng config schematics.@schematics/angular:component.styleext scss
Posted by: Guest on April-22-2020
0

scss how to use a variable in entire angular project

/*in the src/_variables file:*/
$primary-color: blue;

/*in the component you want to use the variable:*/

@use 'src/variables' as c;

.container-fluid {
  text-align: center;
  background-color: c.$primary-color;
}
Posted by: Guest on April-24-2021

Code answers related to "Change scss variables dynamically angular"

Browse Popular Code Answers by Language