# Global CSS & JS

Custom CSS and Javascript allow you to enhance your branding and UI/visual tweaks, without completely changing the look and feel of your app. For example, you can use Custom CSS to change the style of the components: colors,  size, text alignment, etc.

**Using Custom CSS & JS:**

**How to add Global CSS & JS**

1. **Go to the App Settings**
2. **Go to the Scripts and Styles**

{% embed url="<https://www.loom.com/share/5ee5e1c2f92b4228b97d3c4f6d894831>" %}

Custom CSS and JS are used in the same way for the app and the Sign-in/Sign-up page, but they are configured independently. The Custom CSS/JS settings can be accessed in the Scripts & Styles sections of the App Settings and Sign in & Sign up menus.&#x20;

1. Go to App Settings or Sign in & Sign up menu

<figure><img src="/files/4TkuDqtIVooHlEyIyfF9" alt=""><figcaption><p>App Settings menu location</p></figcaption></figure>

<figure><img src="/files/0DRmDMAv44IsS0oqT4Hx" alt=""><figcaption><p>Sign in/Sign up menu location</p></figcaption></figure>

2\. Go to **Scripts & Styles** in the menu and paste your CSS or JS in the appropriate **Global CSS** or **Global Javascript** field.

<figure><img src="/files/bJjkonQ9oO2S00n4fxaZ" alt=""><figcaption><p>Scripts &#x26; Styles menu section</p></figcaption></figure>

### Menu Style

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

Update menu background color:

```css
.admin-header{
    background-color:#C4CDFB;
}

.admin-header-link__label{
    color:#000;
    text-size:18px;
}
```

Update menu item style:

```css
.admin-header__title {
    font-size: 16px;
    color: #2B50ED;
    text-align: center;
}
```

### **Detail. Text Font and Size**

![](/files/iaP1v4xwhHOotViGyZzG)

```css
[data-component-id="{text-component-id}"] .text-truncate{
    text-align: center;
    font-size: 40px;
    color: black;
}
```

### Input Text Field Style

```css
.field__label {
    display: block;
    font-size: 16px;
    text-transform: uppercase;
    margin-bottom: 8px;
    margin-top: 8px;
    color: #2B50ED;
}

.field__content {
    font-size: 16px;
    color: #2B50ED;
}
```

### Table Row Style (Selected row color)

<figure><img src="/files/LVJ4DRjJYWPU8ugn3Yox" alt=""><figcaption><p> ()</p></figcaption></figure>

```css
.table__row_selected:nth-child(2n) {background: red !important;}
.table__row_selected:nth-child(2n+1) {background: red !important;}

.table__row_selected:nth-child(2n), .table_openable .table__row_selected:hover:nth-child(2n) {
    background:#04CFC9 !important
}

.theme_dark .table__row_selected:nth-child(2n), .theme_dark .table_openable .table__row_selected:hover:nth-child(2n) {
    background:#2b50ed !important
}

.table__row_selected:nth-child(2n + 1), .table_openable .table__row_selected:hover:nth-child(2n + 1) {
    background:#04CFC9 !important
}

.theme_dark .table__row_selected:nth-child(2n + 1), .theme_dark .table_openable .table__row_selected:hover:nth-child(2n + 1) {
    background:#2a4acf !important
}
```

{% @arcade/embed flowId="OdUvwFm2QlotIZLrS4HU" url="<https://app.arcade.software/share/OdUvwFm2QlotIZLrS4HU>" %}


---

# 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://docs.jetadmin.io/user-guide/design-and-structure/global-css-and-js.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.
