Dynamic component colors sans predetermined Sass $colors()

Is there a way to set component colors in a truly dynamic way; i.e. colors that are set at runtime by the user, or pulled from a database?

Instead of [color]="predeterminedColorInSCSS",

I’m look for [color]="colorJustSetByUser",

or even [color]="'#FF0000'"

Or can I dynamically add to $colors at runtime?

1 Like

Did you find a solution to your question?
I’m running into the same issue in which I want to fetch the right colors from an online database through a JSON call

Nope. Unfortunately, it’s not a feature of the framework at this point.

My comment here lists a few areas of discussion at the repo.