Add Gitea themes (same palettes as Trilium themes)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user