I have defined SCSS variables in the file
src/styles/settings/_variables.scss
and imported them into src/styles.scss
. However, these variables are not available for every component.
Is there a way to create a global file that contains all SCSS variables for all my components? It is cumbersome to include @import
in every component's .scss
file, especially with nested components.
I know there are similar questions, but they seem outdated and do not apply to the latest versions of Angular.
I am using Angular 7.3 with CLI.