How to change colors (primary, secondary, etc) for dark theme?
-
Hi.
In file quasar.variables.sass are the variables for the colors.
I’d like to specify different colors when in dark theme.
How can I do it?
Thanks.
-
-
I tried this:
.body–light {
/* … /
}
.body–dark {
/ … */
}But it didn’t work.
But that wouldn’t change primary, secondary, etc colors.
This would force me to create classes (I think) -
@educob you can check if dark is on or not plus using helper function to change the brand colors in run time, check here https://quasar.dev/style/color-palette#Dynamic-Change-of-Brand-Colors-(Dynamic-Theme-Colors).