-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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
Incorrect theme for code blocks in light mode #4812
Comments
Looks like a similar issue: #4788
How can we document this better? Where did you expect to find such information? |
That worked, but it didn't fix the whole problem. The highlighted lines are still being shown with the wrong colors.
Perhaps in Docs > Guides> Styling and Layout? |
I believe this is documented: https://docusaurus.io/docs/markdown-features/code-blocks#line-highlighting You have to use custom CSS and define your own highlighting color. |
Thank you! And sorry for not seen that ... |
That happens :) Please submit a doc PR if you feel we could make it more obvious |
@slorber Should we document it in the documentation or should we rather just modify the init template? Most users will be satisfied with a default code block style resembling the Docusaurus website. |
We could do both, do you want to open a PR? That seems reasonable to improve the discoverability of the code block theming |
I followed the steps:
Then I realized that the code blocks had a dark theme, unlike the rest of the project. If I switch to dark mode everything will change, except for the code blocks that remain the same.
I would like the theme to be the same as that shown on the official website in which the code blocks respect the light theme.
The text was updated successfully, but these errors were encountered: