Disable dark mode on Metronic React
How do I disable dark mode and keep the site on light mode permanently? I can remove the switcher button but I can't find where to permanently replace the dark or system theme to light only.
To achieve this you can remove the theme initialization code. We handle our theme mode switch with file
You can remove class initialization from
src/_metronic/layout/MasterInit.tsx. Then remove theme setup script tag from public/index.html and in the same file for HTML tag add attribute
Then clear your localStorage and refresh the page and you should have light mode enabled permanently.
Keenthemes Support Team