# Search

## Colors

Depending on the setting of the search (Overlay search, expandable search and standard search), the color fields have a different function. Learn more about the respective function of the color under the help labels.

{% hint style="info" %}
The basic appearance settings of the search can be found in the tab "[General](https://themedocs.zenit.design/en/styling/general)".
{% endhint %}

![](https://2915610672-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4i6VN0FeNAgRFLwVM2Cr%2Fuploads%2FfmgJo4gn8pIpWe40iVQL%2Fdocs-en-config-theme-header-search-colors.webp?alt=media\&token=05b26961-3f47-41e0-b322-4f217003f0ba)

## Basic configuration

The search field **width (1, 2)** is specified as a percentage and refers to the **total width of the header**. If the selected percentage value exceeds the actual available space within the respective header row, the search field will not expand beyond that limit. This means that a width of 50% may already fully occupy the space between the logo and the main navigation in practice.

The **category filter (3)** enables an additional theme feature that allows the search to be filtered by a selected category while typing the search term.

The dividers in the search suggestions can be enabled using the Search suggest separator (4) option.

<figure><img src="https://2915610672-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4i6VN0FeNAgRFLwVM2Cr%2Fuploads%2FIpOrkCfXmrqhVwyNnuRs%2Fdocs-en-config-theme-header-search-basic-configuration.png?alt=media&#x26;token=d3f33e56-ba6f-420e-8cce-7a8896a43ab8" alt=""><figcaption></figcaption></figure>

Examples:<br>

<figure><img src="https://2915610672-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4i6VN0FeNAgRFLwVM2Cr%2Fuploads%2F5GPN3juYO09gKiU5jLui%2Fdocs-example-theme-header-search-basic-configuration-width.webp?alt=media&#x26;token=097f76ae-768e-4456-9d10-b24f2f2e9854" alt=""><figcaption><p>Search with 50% width</p></figcaption></figure>

<figure><img src="https://2915610672-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4i6VN0FeNAgRFLwVM2Cr%2Fuploads%2F89OXG2AzSLuAGxWND8zp%2Fdocs-example-theme-header-search-basic-configuration-category-filter.webp?alt=media&#x26;token=4e3947ba-d15a-4650-a5b9-e598e7deff16" alt=""><figcaption><p>Category filter</p></figcaption></figure>

<figure><img src="https://2915610672-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4i6VN0FeNAgRFLwVM2Cr%2Fuploads%2F0ByX4CDUbPXA3pJh3SRl%2Fdocs-en-config-theme-header-search-basic-configuration-suggest-separator-example.png?alt=media&#x26;token=4f737ca9-8321-4941-88f9-45bac7483193" alt=""><figcaption></figcaption></figure>
