Closed RotemBot closed 5 years ago
Hi,
setBrand
as its name implies, is for the brand colors (primary, secondary, tertiary) only.
For other colors use CSS variables: https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_variables and you can change them through JS too (the page I indicated shows everything you need to know).
Software version
Quasar: v0.17.18, as plugin in vue cli 3 project Browsers: Chrome
What did you get as the error?
I create and use custom colors, as explained in the color utils documentation - this works fine. I want to allow users to switch between color themes. I need to bo able to dynamically change my custom colors, and quasar palette colors, other than 'primary, secondary, tertiary, positive, negative, info, warning, light, dark, faded', such as body-background.
This is how I defined the custom colors:
This is how I tried changing them in the code. Primary, secondary and tertiary work fine:
What were you expecting?
When using color utils' "setBrand", it had not effect whatsoever on custom and system colors (other than the ones listed above). I need a way to chage all colors dynamically...