aboutsummaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorJoe Mou <dev@mou.fo>2026-01-28 14:40:22 -0500
committerJoe Mou <dev@mou.fo>2026-01-28 15:23:40 -0500
commit9c0a011974f1392110164052c3481509641d2f58 (patch)
tree704fbbbc85afe7017d4f8063a74e95e3c56022f3 /static
parentdd8d686c9eb9a68eb057aaf86206bc930e22d09a (diff)
Syntax highlighting
Sometimes GitHub returns colorizedLines and sometimes it returns a terser stylingDirectives, which needs to be applied to rawLines.
Diffstat (limited to 'static')
-rw-r--r--static/style.css22
1 files changed, 22 insertions, 0 deletions
diff --git a/static/style.css b/static/style.css
index 1efbb12..2020dc2 100644
--- a/static/style.css
+++ b/static/style.css
@@ -25,6 +25,14 @@
oklch(50% 0.15 250),
oklch(60% 0.15 250)
);
+
+ --pl-c: light-dark(#6e7781, #8b949e);
+ --pl-c1: light-dark(#0550ae, #79c0ff);
+ --pl-e: light-dark(#6639ba, #d2a8ff);
+ --pl-en: light-dark(#0550ae, #d2a8ff);
+ --pl-k: light-dark(#cf222e, #ff7b72);
+ --pl-s: light-dark(#0a3069, #a5d6ff);
+ --pl-v: light-dark(#953800, #ffa657);
}
body {
@@ -174,3 +182,17 @@ pre.box {
svg.octicon-link {
display: none;
}
+
+.pl-c { color: var(--pl-c); }
+.pl-c1 { color: var(--pl-c1); }
+.pl-e { color: var(--pl-e); }
+.pl-en { color: var(--pl-en); }
+.pl-k { color: var(--pl-k); }
+.pl-s { color: var(--pl-s); }
+.pl-v { color: var(--pl-v); }
+.pl-ent { color: var(--pl-k); }
+.pl-mh { font-weight: bold; color: var(--pl-en); }
+.pl-bu { color: var(--pl-k); }
+.pl-ii { color: var(--text-color); background-color: var(--pl-k); }
+.pl-pds { color: var(--pl-s); }
+.pl-smi { color: var(--text-color); }