# CSS Editor

Some themes may require certain CSS values and rules or a combination of CSS styles that cannot be achieved using the predefined styles and properties in the theme engine and the widgets.

Custom CSS can be added to the **css** style in relation to a [state](/theme-builder/theme-elements/states.md). Wisej will use the CSS exactly as entered in the theme when it applies the state to the widget.

{% hint style="info" %}
The **Material-3** theme uses this feature to add an animated focus bar under input fields and under the tabs in the tab view widget.
{% endhint %}

![](/files/Xk0A05Xd3fxFTsmAI6mr)

Note that the syntax in the CSS editor is JSON. For example to set style *background-color* to **red**, you have to enter "background-color": "red".

You can use theme colors as well as rgb, rgba, named colors, #RRGGBB, and #RRGGBBAA definitions.


---

# 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.wisej.com/theme-builder/user-interface/css-editor.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.
