Hi support team,
I have the Metronic VueJS theme. How can I set the light mode as the default value? Currently, it defaults to the dark mode (or system) for most users.
Thanks.
Hi,
You can change a default theme mode in file public/index.html. Just update defaultThemeMode
variable.
The default theme is "system" but you can set a "light" or "dark" theme.
var defaultThemeMode = "dark";
Hi Lauris,
Unfortunately, that doesn't work. I had already changed it, but the theme always defaults to dark mode. Any ideas?
Thanks.
Can you try to delete kt_theme_mode_menu and kt_theme_mode_value from your local storage?
We store these variables to save theme mode, if on your computer these variables are already set to "dark" then the theme will be dark every time you open a page.
Regards,
Lauris Stepanovs,
Keenthemes Support Team
I tested using the incognito mode to imitate a new user who would not have any values saved. The site still defaults to the dark mode. I'm certain you could replicate this behavior. Any way to fix this?
Hi,
Also, to change a default theme mode, you need to update the general.mode
property in the file src/core/config/DefaultLayoutConfig.ts.
Regards,
Lauris Stepanovs,
Keenthemes Support Team