i want to change my color default to light mode, but not working still change to system default setting (dark), how can i change that ?
im using metronic 8.1. and this error just into chrome, other browser working fine.
Hi,
We have no such issue reported from other users so we assume that should be in your code. Have you set the dark mode in the initial theme mode script:
const defaultThemeMode = "system";
const defaultThemeMode = "dark";
Can u please confirm if you change the mode in Chrome it does not remember the selected theme mode after page reload? Do you have this issue in the original templates or in your custom page only? Have you followed the documentation and placed the main theme mode init code right after the body as explained here?
I have installed dark-mode="light" but not working automate to dark mode after refresh
Hi,
Are you using Metronic v8.1.1 ? By right the dark mode should work as expected if you are using the latest Metronic v8.1.1 which has a new dark mode implementation.
Do you have any JS errors in your browser console? Have you put the theme mode init code as explained here ?
If you need any further code can u pls provide us with your test link to your ur site?
Regards.
same dark mode after delete that .
https://i.postimg.cc/dQ65r70h/Screen-Shot-2022-07-25-at-15-05-40.png
Hi,
Can you please check if dark-mode="dark"
is it set in the login page's body tag ? Also have u placed the main theme mode init js code right after the body tag as explained here.
Regards.
I've followed it but it doesn't work, it always follows the system settings
Hi,
If you selected a mode it saves the value in your local storage. Please clear the local store for Metronic and retry:
<img src="https://i.imgur.com/Xn4jhOC.png" alt="" class="w-100"/>
Regards.
Hi,
May I know which Metronic version are you using?
The improved dark mode support was added in Metronic v8.1.0 so we suggest you use the latest Metronic v8.1.1 to easily manage the theme modes as explained here.
Regards.