Use var(--color) as base color for code tag #64
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There are some Zola highlight themes and syntax definitions that don't work very well, and as such, they sometimes fall back to the base text color provided by the Zola theme. If the base text color is not neutral, e.g. white or black, the code highlighting can look quite terrible, as shown in getzola/zola#1423.
It would be nice if the
code
tag defaulted tovar(--color)
instead ofvar(--accent)
to avoid breaking several built-in Zola highlight themes, e.g.charcoal
on Zola 0.16.1. With that said, if there's enough opposition to this change, it's okay; I'm willing to just override the CSS in my own project to fix the highlight themes.