Skip to content

fix(web): readme code blocks invisible in light mode - #45

Merged
maxscharwath merged 1 commit into
mainfrom
fix/markdown-code-block-contrast
Jul 4, 2026
Merged

fix(web): readme code blocks invisible in light mode#45
maxscharwath merged 1 commit into
mainfrom
fix/markdown-code-block-contrast

Conversation

@maxscharwath

Copy link
Copy Markdown
Collaborator

The plugin-page markdown renderer set prose-pre:bg-muted (light bg in light mode) but left code text at the prose default (light), so fenced code blocks were light-on-light and unreadable in light mode (fine in dark). Add prose-pre:text-foreground. One-line CSS fix; visible in both themes.

prose-pre:bg-muted overrode only the code-block background (light in light mode)
while the text kept the prose default (light), so code was light-on-light. Pin
the text to prose-pre:text-foreground so it reads in both themes.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 4, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
brika-registry a2f59d0 Jul 04 2026, 09:15 PM

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 4, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
brika-store a2f59d0 Jul 04 2026, 09:15 PM

@sonarqubecloud

sonarqubecloud Bot commented Jul 4, 2026

Copy link
Copy Markdown

@maxscharwath
maxscharwath merged commit e533ed3 into main Jul 4, 2026
6 checks passed
@maxscharwath
maxscharwath deleted the fix/markdown-code-block-contrast branch July 4, 2026 21:17
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.

1 participant