Diff options
-rw-r--r--assets/cgit.css19
1 file changed, 13 insertions, 6 deletions
diff --git a/assets/cgit.css b/assets/cgit.css
index 7b2d986..d6526a6 100644
--- a/assets/cgit.css
+++ b/assets/cgit.css
@@ -64,6 +64,13 @@ div#cgit {
--col5: light-dark(#aa00aa, #d06cd0);
--col6: light-dark(#00aaaa, #6cd0d0);
+ --hl-comment: light-dark(#6a737d, #8b949e);
+ --hl-keyword: light-dark(#cf222e, #ff7b72);
+ --hl-string: light-dark(#0a7d24, #7ee787);
+ --hl-number: light-dark(#0550ae, #79c0ff);
+ --hl-type: light-dark(#953800, #ffa657);
+ --hl-func: light-dark(#6639ba, #d2a8ff);
+
--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
--font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas,
@@ -863,28 +870,28 @@ div#cgit div.line-hl {
}
div#cgit .hl-comment {
- color: light-dark(#6a737d, #8b949e);
+ color: var(--hl-comment);
font-style: italic;
}
div#cgit .hl-keyword {
- color: light-dark(#cf222e, #ff7b72);
+ color: var(--hl-keyword);
}
div#cgit .hl-string {
- color: light-dark(#0a7d24, #7ee787);
+ color: var(--hl-string);
}
div#cgit .hl-number {
- color: light-dark(#0550ae, #79c0ff);
+ color: var(--hl-number);
}
div#cgit .hl-type {
- color: light-dark(#953800, #ffa657);
+ color: var(--hl-type);
}
div#cgit .hl-func {
- color: light-dark(#6639ba, #d2a8ff);
+ color: var(--hl-func);
}
div#cgit table.blame {