📜  scss 如何在整个 Angular 项目中使用变量 - CSS 代码示例

📅  最后修改于: 2022-03-11 14:47:52.458000             🧑  作者: Mango

代码示例1
/*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;
}