> For the complete documentation index, see [llms.txt](https://docs.devhub.gg/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devhub.gg/skill-tree/ui-color-customization.md).

# UI Color Customization

### <mark style="color:yellow;">Usage</mark>

{% stepper %}
{% step %}

#### Enter the folder with the script

{% endstep %}

{% step %}

#### Enter `html` folder

{% endstep %}

{% step %}

#### Open the `colors.css` file

{% endstep %}
{% endstepper %}

**The code looks like this**

```css
/* use rgb format without commas */
/* more details you can find here */
/* https://tailwindcss.com/docs/customizing-colors#using-css-variables */

:root {
    /* custom colors */

    /* YOU CAN'T USE A COMMA BETWEEN RGB */
    --primary: 253 209 64; /* #fdd140 */
    --background: 32 46 59; /* #202e3b */
    --disabled: 114 114 114; /* #727272 */
    --background-body: 11 19 32; /* #0b1320 */
    --background-light: 42 61 78; /* #2a3d4e */

    /*!!! YOU MUST USE A COMMA BETWEEN RGB !!!*/
    --primary-rgba: 253, 209, 64; /* #fdd140 */
    --grid-dark-rgba: 11, 19, 32; /* #0b1320 */

    /* per-theme primary colors */
    --primary-legacy: 253 209 64; /* #fdd140 */
    --primary-legacy-rgba: 253, 209, 64;
    --primary-modern: 253 209 64; /* #fdd140 */
    --primary-modern-rgba: 253, 209, 64;
    --primary-zombie: 74 222 128; /* #4ade80 */
    --primary-zombie-rgba: 74, 222, 128;
    --primary-fantasy: 123 112 95; /* #7b705f */
    --primary-fantasy-rgba: 123, 112, 95;
}

```

**To customize the UI for yourself, simply edit the RGB color.**

### <mark style="color:yellow;">Examples of color changes</mark>

***

### <mark style="color:yellow;">Themes (v3)</mark>

v3 ships with four built-in visual themes. Switch between them by setting `Config.Theme` in `configs/sh.main.lua`:

```lua
Config.Theme = "modern" -- "legacy" | "modern" | "zombie" | "fantasy"
```

| Theme     | Description                                                         |
| --------- | ------------------------------------------------------------------- |
| `legacy`  | Original v1/v2 look                                                 |
| `modern`  | Default — clean modern look                                         |
| `zombie`  | Survival / post-apocalyptic style (concrete wall + grid background) |
| `fantasy` | Fantasy RPG style with ornate frames                                |

#### Legacy

<figure><img src="/files/Z6BIeCQyPZIHzb67HNVR" alt=""><figcaption></figcaption></figure>

#### Modern

<figure><img src="/files/bNWiq5Xw7MuHxktqoSl1" alt=""><figcaption></figcaption></figure>

#### Zombie

<figure><img src="/files/hj7KYWCPAt7PvscZNYYY" alt=""><figcaption></figcaption></figure>

#### Fantasy

<figure><img src="/files/3QlOUsUZTiciwl9dTLU5" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
Custom color overrides in `colors.css` apply on top of the chosen theme. Combine them to fine-tune any of the built-in themes.
{% endhint %}


---

# 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, and the optional `goal` query parameter:

```
GET https://docs.devhub.gg/skill-tree/ui-color-customization.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
