I'll get down straight to the idea:
I want my lib's components to not have specific colors. So I style my component in the following way:
h1 {
color: $primary;
}
Note that I do not declare $primary
variable anywhere in the lib.
I do this in my app's folder (style.scss):
$primary: red
Obviously, it doesn't work, since I have to import this variable into my lib's component styles. But the library should not depend on the application.
So, the question:
Is it even possible to provide variables to libs from apps? If so, how?