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

Fix Markdown rendering when dark mode is on #85

Merged
merged 1 commit into from
Feb 23, 2024
Merged

Fix Markdown rendering when dark mode is on #85

merged 1 commit into from
Feb 23, 2024

Conversation

dguo
Copy link
Owner

@dguo dguo commented Feb 23, 2024

A Firefox update set my website appearance setting to automatic:
image

Which led me to notice that the rendered Markdown has text that is hard to read when dark mode is on:
image

Because the default styling from github-markdown-css reads prefers-color-scheme. So the fix is to use the light-only styling for now. If we ever implement dark mode, we can change this back. After the fix:
image

@dguo dguo merged commit 5e449a8 into main Feb 23, 2024
5 checks passed
@dguo dguo deleted the dark-mode-fix branch February 23, 2024 14:50
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