I allow the user to change the main primary color of the application by using any hexadecimal color by calling:
changeTheme(color){
Vuetify.framework.theme.themes.light.primary = color
}
the problem is that if the chosen color is too bright or dark, the text color can't be read.
is there is something like this? ==>
changeTheme(color, textColor){
Vuetify.framework.theme.themes.light.primary = color <== This line works
Vuetify.framework.theme.themes.light.primaryText = textColor <== This not
}
I need to apply the changes too all the places where primary color is being used, app-bar, buttons...etc. I also have a toggle between dark and light mode, so I need to be sure that the color text doesn't change when switching between modes.