> For the complete documentation index, see [llms.txt](https://partners.tray.com.br/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://partners.tray.com.br/themes/construindo-seu-template/editor-do-tema/settings-json.md).

# Settings.json

O arquivo **`settings.json`** é responsável por definir os modelos de personalização do layout. Ele tem como finalidade refletir as opções de edição definidas na loja virtual.

## Como usar

O arquivo deve ser escrito no formato de objeto JSON, e as variáveis devem ser inseridas dentro de cada modelo separado, sendo o modelo **current** a personalização atual que pode ou não ser preenchida. &#x20;

Para funcionamento o modelo padrão deve possuir a seguinte estrutura inicial:

{% code title="settings.json" %}

```json
{
    "current":{}
}
```

{% endcode %}

Devem ser inseridas no objeto JSON, as variáveis de cada modelo que precisam possuir o mesmo nome do atributo **`name`** das tags **`input`** e **`select`** criadas no arquivo **`settings.html`** ou no **`structure.json`**, e para cada variável é opcional utilizar um valor padrão, portanto seu valor também pode ser aspas vazias.

Para adicionar um novo modelo você deve declarar as variáveis e seus valores da seguinte maneira:

{% code title="settings.json" %}

```json
{
   "current":{},
   "modelo1":{
       "titulo": "Studio",
       "cor":"#0990ce",
       "limite_produtos": "200"
   },
   "modelo2":{
        "titulo": "TrayCheckout",
        "cor":"#6cbd45"
        "limite_produtos": "200"
   }
}
```

{% endcode %}


---

# 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://partners.tray.com.br/themes/construindo-seu-template/editor-do-tema/settings-json.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.
