The New Way to Build with AI! Introducing ReUI — the developer platform for agentic UI with shadcn/ui
Browse ReUI Pro

Set light mode as default


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.


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (5)

 
Deleted comment
 
Deleted comment

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";


Regards,
Lauris Stepanovs,
Keenthemes Support Team



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


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
buy metronic keenthemes mega bundle

ReUI

Open-source React components, blocks and templates built on shadcn/ui and Tailwind CSS by Keenthemes.