Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

import global variables scss angular

/*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;
}
 
PREVIOUS NEXT
Tagged: #import #global #variables #scss #angular
ADD COMMENT
Topic
Name
4+3 =