> For the complete documentation index, see [llms.txt](https://config.wiki.teamresourceful.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://config.wiki.teamresourceful.com/creating-your-first-config/config-categories.md).

# Config Categories

Config categories are like normal configs except they can be included in other configs or categories. Categories must be annotated with the @Category annotation its only change that is different from a config is that its id is not restricted to being very basic characters.

Config categories unlike entries are added to a config or category via its annotation with categories parameter. Categories are ordered by the way they are put into the annotations list. So if you want category 1 to show up before category 2 have category 1 higher in the list.

The following is an example of how to add categories to a config, this can also be done for a category as it has the same parameter.

```java
@Config(
    value = "demo",
    categories = {
            Category1.class,
            DemoConfig.Category2.class
    }
)
```
