# Light Mode/Dark Mode

Our component library supports **Dark Mode** and **Light Mode** Layouts with **Light Mode** as the default Option, but the handling should be implemented **on your side** as a developer. To enable Dark Mode, you need to **set the `data-theme="dark"` attribute** on the `<body>` or relevant container element programmatically in your project.

{% tabs %}
{% tab title="Vanilla Js" %}

```jsx
<html data-theme="dark">
<body>
  <dda-button></dda-button>
</body>
</html>
```

{% endtab %}

{% tab title="React" %}

```jsx
 <div data-theme="dark">
      <DdaButton />
    </div>
```

{% endtab %}

{% tab title="Vue" %}

```jsx
<template>
  <div data-theme="dark">
    <DdaButton />
  </div>
</template>
```

{% endtab %}

{% tab title="Angular" %}

```jsx
<div data-theme="dark">
  <dda-button></dda-button>
</div>
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: 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://designsystem.dubai.ae/developers/light-mode-dark-mode.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.
