From 2cfee938ddc975beb95b17a9a676e9575045f7c5 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Tue, 3 Nov 2026 19:44:07 -1000 Subject: List a theme after cgit.css Any css or js line replaces the default rather than adding to it, so a theme set with a single css line, as the README implied, left every page unstyled. --- README.txt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'README.txt') diff --git a/README.txt b/README.txt index 29dabda..bcddbf4 100644 --- a/README.txt +++ b/README.txt @@ -175,6 +175,14 @@ A theme that only wants a colour change is a few lines. background: var(--surface); } +Keep a theme in a file of its own, since make install overwrites cgit.css. The +first css line replaces the default rather than adding to it, as a js line does +cgit.js, so list cgit.css first. The server configs in custom/servers/ serve +only the shipped files off disk, so add the theme to them too. + + css=/cgit.css + css=/theme.css + tests/t0005-markup.sh checks that every hook named here is still emitted. -- cgit 2.12.1