Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use var(--color) as base color for code
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 to `var(--color)` instead of `var(--accent)` to avoid breaking several built-in Zola highlight themes. 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.
- Loading branch information