How to override a sass variable

How can I override a sass variable by another scss file?

For example - I have a basic scss file and two or three other ones - they are just applied based on the used theme…

Any ideas?


Hi Oliver,

The easy way to override a sass variable is to write it down on the file named variables.scss.
You can find it in the “theme” folder, right below the one named pages in src.

The theme should be changeable within the application itself und change all colors after beeing selected,

Sorry, I may not understand what you are trying to do. What I understood is you want your app to permit the user to change colors, is it right?
Did you try to use the [color], [ngStyle] or [ngClass] attributes to change colors dynamically ?