Compare commits
2
Commits
02e81d4584
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eadb609dfc | ||
|
|
685bd17144 |
@@ -48,11 +48,12 @@ iconClass = bx bxs-coffee
|
|||||||
|
|
||||||
## Gitea themes (same palettes)
|
## Gitea themes (same palettes)
|
||||||
|
|
||||||
The same five families are available for [Gitea](https://gitea.io) in [`gitea/`](gitea/). They use the
|
The same six 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.
|
identical palettes as the Trilium themes, so the web app and your Gitea instance stay consistent.
|
||||||
|
|
||||||
| Theme | Dark | Light |
|
| Theme | Dark | Light |
|
||||||
|---|---|---|
|
|---|---|---|
|
||||||
|
| **Ash** | `theme-gitea-ash.css` | – |
|
||||||
| **Gruvbox** | `theme-gitea-gruvbox.css` | – |
|
| **Gruvbox** | `theme-gitea-gruvbox.css` | – |
|
||||||
| **Harbor** | `theme-gitea-harbor.css` | `theme-gitea-harbor-light.css` |
|
| **Harbor** | `theme-gitea-harbor.css` | `theme-gitea-harbor-light.css` |
|
||||||
| **Coffee** | `theme-gitea-coffee.css` | `theme-gitea-coffee-latte.css` |
|
| **Coffee** | `theme-gitea-coffee.css` | `theme-gitea-coffee-latte.css` |
|
||||||
@@ -73,6 +74,24 @@ Installation (Gitea 1.27+):
|
|||||||
|
|
||||||
3. Restart Gitea, then pick the theme from **Explore → Preferences → UI theme**.
|
3. Restart Gitea, then pick the theme from **Explore → Preferences → UI theme**.
|
||||||
|
|
||||||
|
## Blog share themes (same palettes)
|
||||||
|
|
||||||
|
The public blog (`richard.familie-zink.org`) runs on Trilium's share feature with a custom EJS
|
||||||
|
template; its frontend styling lives in two note-based stylesheets, mirrored here:
|
||||||
|
|
||||||
|
| File | Role |
|
||||||
|
|---|---|
|
||||||
|
| `blog-share/blog_share_base.css` | Layout/shared widgets (posts, search, pagination, BMC box, code blocks, scrollbars) – theme-independent, driven by the `--*` variables below |
|
||||||
|
| `blog-share/blog_share_theme_ash.css` | Ash palette for both `html.theme-light` / `html.theme-dark`, incl. all Mermaid chart-type rules |
|
||||||
|
|
||||||
|
Notes:
|
||||||
|
|
||||||
|
- **Source of truth** is the matching Trilium code notes (`.blog` folder) which the share links via
|
||||||
|
`shareCss`; this repo copy is the backup/mirror. Copy changes back and forth deliberately.
|
||||||
|
- The `@font-face` for the "Cookie" handwriting font (Buy-Me-a-Coffee button) resolves against a
|
||||||
|
live Trilium **file note id** (`/api/notes/<id>/download`) – it only works when served from the
|
||||||
|
same Trilium instance; the mirrored file contains the real id of this instance.
|
||||||
|
|
||||||
## Customising
|
## Customising
|
||||||
|
|
||||||
The themes are variable-driven. Edit the `--*` values inside the `#trilium-app { ... }` block and the
|
The themes are variable-driven. Edit the `--*` values inside the `#trilium-app { ... }` block and the
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user