Accessing bootstrap scss variables in angular 2 component

前端 未结 3 1190
遇见更好的自我
遇见更好的自我 2020-12-09 16:32

I\'m working on a new Angular2 project built using Angular CLI and have configured the project to use SCSS. I have Bootstrap 4 successfully loaded into my styles.scss<

3条回答
  •  余生分开走
    2020-12-09 16:57

    Create a _colors.scss file, copy all the color variables inside and import that file in your component.scss file.

提交回复
热议问题