evidence.config.yaml— project name, the pages directory, and default date and layout settings.theme.yaml— the project’s theme (colors, palettes, and scales).
evidence.config.yaml
This file lives at the project root. Every key is optional.
| Key | Type | Description |
|---|---|---|
project.name | string | The project’s display name. |
project.evidence | string | The Evidence platform version. Populated for you; you don’t normally edit it. |
pages | string | The directory that holds your pages, partials, and queries. Defaults to ./pages. |
date.first_day_of_week | sunday | monday | The day weeks start on for week grains and calendars. Defaults to sunday. |
date.default_date_range_end | object | The default “end” of relative date ranges. See the accepted values below. |
layout.page_width | article | full | Default page width — article (centered, limited width) or full (full browser width). |
layout.cards | boolean | Wrap each component in a card (border + shadow) for a dashboard look. |
layout.table_of_contents | boolean | Show the table-of-contents sidebar, generated from page headings. |
layout.auto_refresh | number (ms) | How often the page re-runs its queries, in milliseconds. Omit (or 0) to disable. |
date.default_date_range_end is one of:
{ type: today }— ranges end today.{ type: relative, days_ago: <n> }— ranges endndays before today (e.g.days_ago: 1to exclude an incomplete current day).{ type: custom_sql, sql: '<expression>' }— a SQL expression that evaluates to the end date.
layout key sets the project-wide default; pages override them in their page settings.
theme.yaml
theme.yaml defines the project’s theme — chart colors, palettes, and color scales — and lives at the project root next to evidence.config.yaml.
See Themes for the full file structure, what each setting does, and how theme inheritance works.
