Add Gitea themes (same palettes as Trilium themes)

This commit is contained in:
Richard Zink
2026-09-08 11:44:25 +02:00
parent 3562b61656
commit bd384734a9
10 changed files with 264 additions and 0 deletions
+27
View File
@@ -44,6 +44,33 @@ appThemeBase = next-dark
iconClass = bx bxs-coffee
```
## Gitea themes (same palettes)
The same five families are available for [Gitea](https://gitea.io) in [`gitea/`](gitea/). They use the
identical palettes as the Trilium themes, so the web app and your Gitea instance stay consistent.
| Theme | Dark | Light |
|---|---|---|
| **Gruvbox** | `theme-gitea-gruvbox.css` | |
| **Harbor** | `theme-gitea-harbor.css` | `theme-gitea-harbor-light.css` |
| **Coffee** | `theme-gitea-coffee.css` | `theme-gitea-coffee-latte.css` |
| **Solarized** | `theme-gitea-solarized.css` | `theme-gitea-solarized-light.css` |
| **Tokyo Night** | `theme-gitea-tokyonight.css` | `theme-gitea-tokyonight-light.css` |
Installation (Gitea 1.27+):
1. Copy the wanted `theme-gitea-<name>.css` into Gitea's `public/assets/css/` (Docker example:
`/var/lib/docker/volumes/git/_data/gitea/public/assets/css`).
2. Add the theme name to `[ui] THEMES` in `app.ini` and set `DEFAULT_THEME` to it:
```ini
[ui]
THEMES = gitea,arc-green,<theme-name>
DEFAULT_THEME = <theme-name>
```
3. Restart Gitea, then pick the theme from **Explore → Preferences → UI theme**.
## Customising
The themes are variable-driven. Edit the `--*` values inside the `#trilium-app { ... }` block and the