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.
Hi,
To achieve this you can remove the theme initialization code. We handle our theme mode switch with file src/_metronic/assets/ts/layout/ThemeMode.ts
.
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 data-theme="light"
.
Then clear your localStorage and refresh the page and you should have light mode enabled permanently.
Regards,
Lauris Stepanovs,
Keenthemes Support Team