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

Implement dark mode for syntax highlighted code blocks #8680

Merged
merged 1 commit into from
May 19, 2024

Conversation

Turbo87
Copy link
Member

@Turbo87 Turbo87 commented May 19, 2024

Instead of unconditionally importing the github.css theme, we use a custom theme that uses the light-dark() fn. This custom theme is a merging the github.css and github-dark.css files into one.

Resolves #8673

Bildschirmfoto 2024-05-19 um 14 27 08 Bildschirmfoto 2024-05-19 um 14 27 14

@Turbo87 Turbo87 added C-bug 🐞 Category: unintended, undesired behavior A-frontend 🐹 labels May 19, 2024
Instead of unconditionally importing the `github.css` theme, we use a custom theme that uses the `light-dark()` fn. This custom theme is a merging the `github.css` and `github-dark.css` files into one.
@Turbo87 Turbo87 merged commit 297badc into rust-lang:main May 19, 2024
7 checks passed
@Turbo87 Turbo87 deleted the dark-syntax branch May 19, 2024 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-frontend 🐹 C-bug 🐞 Category: unintended, undesired behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dark mode code syntax color scheme is too dark to read
1 participant