# theming

Each garage location has its own `Theme` table. When the NUI menu opens, these values are applied as CSS variables, changing the colors of the panel, buttons, borders, glow effects, and scrollbar dynamically.

***

## Theme fields

| Key        | Description                                                                    |
| ---------- | ------------------------------------------------------------------------------ |
| `accent`   | Main highlight color — used for the selection glow and focused button ring.    |
| `accent2`  | Secondary color — used for borders, scrollbar thumb, and inner panel outlines. |
| `panelTop` | Top color of the panel background gradient.                                    |
| `panelBot` | Bottom color of the panel background gradient.                                 |
| `btnTop`   | Top color of vehicle button gradients (also used for the header bar).          |
| `btnBot`   | Bottom color of vehicle button gradients.                                      |

All values must be valid hex color strings, e.g. `'#3B82F6'`.

***

## Preset examples

{% tabs %}
{% tab title="Police — Blue" %}

```lua
Theme = { accent = '#3B82F6', accent2 = '#1E3A8A', panelTop = '#121623', panelBot = '#0A0C14', btnTop = '#5078C8', btnBot = '#1E326E' },
```

{% endtab %}

{% tab title="Ambulance — Red" %}

```lua
Theme = { accent = '#D94A4A', accent2 = '#B73737', panelTop = '#121214', panelBot = '#08080A', btnTop = '#C83C3C', btnBot = '#5A1414' },
```

{% endtab %}

{% tab title="Sheriff — Gold" %}

```lua
Theme = { accent = '#D6B35A', accent2 = '#9C7A2F', panelTop = '#1A140C', panelBot = '#0C0906', btnTop = '#AA873C', btnBot = '#553C16' },
```

{% endtab %}

{% tab title="SWAT — Cyan" %}

```lua
Theme = { accent = '#00D9FF', accent2 = '#003D4D', panelTop = '#0A0F1A', panelBot = '#000000', btnTop = '#00B8D4', btnBot = '#001F29' },
```

{% endtab %}

{% tab title="Ballas — Purple" %}

```lua
Theme = { accent = '#B85CFF', accent2 = '#6B21A8', panelTop = '#1A0E24', panelBot = '#0C0612', btnTop = '#7E3AF2', btnBot = '#3B0764' },
```

{% endtab %}

{% tab title="Families — Green" %}

```lua
Theme = { accent = '#00FF00', accent2 = '#008000', panelTop = '#0A2A0A', panelBot = '#051A05', btnTop = '#32CD32', btnBot = '#006400' },
```

{% endtab %}
{% endtabs %}

***

## Tips

* Keep `panelTop` and `panelBot` very dark for best contrast with white button text.
* `accent` and `accent2` should be visually related — use a lighter and darker shade of the same hue.
* `btnTop` and `btnBot` control vehicle buttons *and* the header bar gradient, so choose colors that look good for both.
* Use a tool like [coolors.co](https://coolors.co/) to generate cohesive palettes.


---

# 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://mohssins.gitbook.io/mohscriptsdocs/moh-jobgarage/theming.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.
