# Creating categories

{% hint style="info" %}
To review key information on defining categories, see [Categories](/complete-reference-guide/customization-options/custom-configurations/creating-custom-configurations/planning-configuration-and-data-structure/categories.md).
{% endhint %}

### In the `presets` directory, customize the `.json` files

In the **presets** directory, each `.json` file needs:

* `icon` must mach the name of an icon in the `icons` folder - use prefix only, excluding the size refernce and file extension (eg. for `fishing-24px.svg/fishing-100px.svg` use `fishing`).
* `name` will be the human-readable label shown to the user
* `geometry` must be an array of `point` ,`area`, and/or `line` (All categories for use in Mapeo Mobile must include `point`.)
* `sort` (optional) is an integer that will determine the order in which categories are displayed on the **Categories** screen of Mapeo Mobile. If no `sort` is included, categories will be listed alphabetically by `name`.
* an array of `fields` (optional) which should match the `key` created in the fields directory. Fields will be displayed to users in the order they are listed in the `fields` array.
* `color` (optional) determines the color of observation dots on the map. (Dots fall back to orange if no color is defined.) Value can be a hex code, CSS color name or any string supported by [validate-color](https://github.com/dreamyguy/validate-color).

#### Example preset file (`fishing-site.json`):

```
{
    "icon": "fishing",
    "name": "Fishing Site",
    "sort": 10,
    "color": "#13D5CF",
    "fields": [
        "name"
    ],
    "geometry": [
        "point",
        "area"
    ]
}
```


---

# 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.mapeo.app/complete-reference-guide/customization-options/custom-configurations/creating-custom-configurations/coding-configuration/creating-categories.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.
