Commit e7f9a09

HPCesia <me@hpcesia.com>
2026-07-04 15:35:39
Let chroma theme control blob code block background
Remove background/color overrides from blob template so the chroma theme's actual background shows through instead of layout CSS variables. Stop stripping .chroma base colors in renderChromaCSS.
1 parent ad03cef
Changed files (2)
pkg/templates/blob.gohtml
@@ -27,8 +27,6 @@
           word-wrap: normal;
           tab-size: 4;
           font-family: var(--font-family-mono), monospace;
-          background: var(--code-block-bg);
-          color: var(--code-block-color);
         }
 
         pre > code {
@@ -40,11 +38,6 @@
           font-size: var(--code-font-size);
         }
 
-        .chroma {
-          background: var(--code-block-bg);
-          color: var(--code-block-color);
-        }
-
         .border {
           border: 1px solid var(--c-border);
           border-top: none;
styles_gen.go
@@ -83,7 +83,7 @@ func renderChromaCSS(theme string) (string, error) {
 	if err := formatter.WriteCSS(&buf, style); err != nil {
 		return "", err
 	}
-	return stripChromaBase(buf.String()), nil
+	return buf.String(), nil
 }
 
 // stripChromaBase removes background-color and color declarations from