> For the complete documentation index, see [llms.txt](https://niaxus.gitbook.io/rosure/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://niaxus.gitbook.io/rosure/setup-and-configuration/images-and-media/set-default-theme-and-configure-toggle-button.md).

# Set Default Theme and Configure Toggle Button

### **Set the Default Theme**

The default theme for the template is **dark mode**. If you want to change it to **light mode**, follow these steps:

1. Open the `js/dark-light-theme.js` file.
2. Locate the following line at line 5:

   ```javascript
   const defaultTheme = 'dark';
   ```
3. Change the value `'dark'` to `'light'`:

   ```javascript
   const defaultTheme = 'light';
   ```
4. Save the file. The default theme will now be set to light mode.

***

### **Hide the Theme Toggle Button**

If you don't want users to switch between dark and light themes and prefer to lock the theme to your chosen default, you can simply hide the toggle button:

1. Open the `css/styles.css`
2. Add the following CSS rule:

   ```css
   #theme-toggle {
       display: none;
   }
   ```
3. Save the file. The toggle button will no longer be visible in the header, but the code will remain in case you want to re-enable it later.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://niaxus.gitbook.io/rosure/setup-and-configuration/images-and-media/set-default-theme-and-configure-toggle-button.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
