fix: use mode-aware colors for code block line numbers

This commit is contained in:
2026-06-01 23:32:46 -05:00
parent a12b13f7d1
commit 9767ff950b

View File

@@ -185,11 +185,11 @@
counter-increment: line;
content: counter(line);
@apply mr-5 inline-block w-4 text-right select-none;
color: var(--color-code-gutter);
color: oklch(0.30 0 0);
@apply text-[11px] font-mono;
}
.dark [data-rehype-pretty-code-figure] code[data-line-numbers] > [data-line]::before {
color: var(--color-code-gutter);
color: oklch(0.60 0 0);
}
[data-rehype-pretty-code-figure] [data-line] {