# Which config takes precedence?

**URL:** <https://zola.discourse.group/t/which-config-takes-precedence/631>\
**Category:** Support\
**Created:** [October 5, 2020, 5:25pm UTC](https://zola.discourse.group/t/which-config-takes-precedence/631 "2020-10-05T17:25:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![tbrowder](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/tbrowder/32/298_2.png) [@tbrowder](https://zola.discourse.group/u/tbrowder)\
**Post date:** [October 5, 2020, 5:25pm UTC](https://zola.discourse.group/t/which-config-takes-precedence/631/1 "2020-10-05T17:25:23Z")

</div>

I think the answer is in the docs but I’m having trouble finding it, and my Zola site’s behavior isn’t helping. I’m trying to define the code highlight scheme name used.

I have a config toml file at the top of the directory that was originally created by “zola init” and also a config toml file in themes/docascode/.

Which one overrides the other?

Does it matter if one has the variable and the other does not?

If one has “” as the the value for the variable and the other has “solarized-dark” for the value, which is used?

---

<div class="post-metadata">

**Author:** ![Roman](https://avatars.discourse-cdn.com/v4/letter/r/ed8c4c/32.png) [@Roman](https://zola.discourse.group/u/Roman)\
**Post date:** [October 5, 2020, 6:59pm UTC](https://zola.discourse.group/t/which-config-takes-precedence/631/2 "2020-10-05T18:59:33Z")

</div>

By default zola uses config.toml inside root directory. You [can point another config.toml](https://www.getzola.org/documentation/getting-started/cli-usage/#build) like

```auto
zola --config /where file is/config.toml build

```

You may change to solarized-dark, the row is `highlight_theme = "kronuz"`

---

<div class="post-metadata">

**Author:** ![tbrowder](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/tbrowder/32/298_2.png) [@tbrowder](https://zola.discourse.group/u/tbrowder)\
**Post date:** [October 5, 2020, 7:11pm UTC](https://zola.discourse.group/t/which-config-takes-precedence/631/3 "2020-10-05T19:11:59Z")

</div>

So does that mean the ./themes/docsascode/config.toml is not used as the default?

---

<div class="post-metadata">

**Author:** ![Roman](https://avatars.discourse-cdn.com/v4/letter/r/ed8c4c/32.png) [@Roman](https://zola.discourse.group/u/Roman)\
**Post date:** [October 6, 2020, 5:51am UTC](https://zola.discourse.group/t/which-config-takes-precedence/631/4 "2020-10-06T05:51:17Z")

</div>

yes, default is ./config.toml

---

<div class="post-metadata">

**Author:** ![keats](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@keats](https://zola.discourse.group/u/keats)\
**Post date:** [October 6, 2020, 6:49am UTC](https://zola.discourse.group/t/which-config-takes-precedence/631/5 "2020-10-06T06:49:15Z")

</div>

The config.toml of a theme is actually not used at all by Zola, only `theme.toml` is. `config.toml` in a theme is for the person developing the site, so it can be ran as a site.

---

<div class="post-metadata">

**Author:** ![tbrowder](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/tbrowder/32/298_2.png) [@tbrowder](https://zola.discourse.group/u/tbrowder)\
**Post date:** [October 6, 2020, 10:38am UTC](https://zola.discourse.group/t/which-config-takes-precedence/631/6 "2020-10-06T10:38:43Z")

</div>

> > ![](https://global.discourse-cdn.com/free1/uploads/zola1/original/1X/707c581b568f34ff05e8a7a2f64c18118cde100e.png "keats") | [keats](https://zola.discourse.group/u/keats)  
> > October 6 |
> > 
> > - | - |
> 
> The config.toml of a theme is actually not used at all by Zola, only `theme.toml` is. `config.toml` in a theme is for the person developing the site, so it can be ran as a site.

Thanks.
