chang themes to light mode all condition
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 ?
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.
I've followed it but it doesn't work, it always follows the system settings
If you selected a mode it saves the value in your local storage. Please clear the local store for Metronic and retry:
same dark mode after delete that .
I have installed dark-mode="light" but not working automate to dark mode after refresh
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?
im using metronic 8.1. and this error just into chrome, other browser working fine.
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";
You can change it to:
const defaultThemeMode = "dark";
To set the default theme mode to dark when your site is initially launched.
Also please double-check and make sure the localhost storage has no theme mode-related variables and they must be reset.
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?