Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use var(--color) as base color for code tag #64

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ebkalderon
Copy link
Contributor

@ebkalderon ebkalderon commented Nov 15, 2022

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, 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.

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.
@vercel
Copy link

vercel bot commented Nov 15, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
zerm ❌ Failed (Inspect) Nov 15, 2022 at 4:14AM (UTC)

@ebkalderon
Copy link
Contributor Author

Looks like Vercel is failing due to a deprecated Node version:

Error: Node.js Version "12.x" is discontinued and must be upgraded. Please set Node.js Version to 16.x in your Project Settings to use Node.js 16.

Seems to be unrelated to this PR, but I just thought I'd point this out.

@ebkalderon
Copy link
Contributor Author

@ejmg Just wanted to send a gentle ping requesting a review. Sorry to do this directly; I only wanted to let you know this PR has been waiting for a while, just in case it might've fallen through the cracks. Don't mean to be a bother; any feedback would be appreciated. Thanks! ❤️

@ejmg
Copy link
Owner

ejmg commented Mar 11, 2023

@ebkalderon you are totally fine to ping me; tbqh, i have already told other potential contributors that I would get around to their PR's and failed to do so. i am blocking tonight and portions of this weekend to at least update the deployment and zerm's zola version and, hopefully, most of these PRs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants