Code blocks get incorrect initial colors in dark mode #8983
Unanswered
weareoutman
asked this question in
General
Replies: 1 comment
-
Yes this is a known issue due to the highlighter not using css vars but requiring React hydration. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Even though the colors will get back to correct ones quickly, but in poor network, people will notice that.
You can reproduce it by opening this page while cache disabled and throttling sets to Fast 3G.
The code blocks will first show as white background, then after a while, get back to black background.
Here is a screenshot:
I consider this as not a bug, but it will be great if we can improve this. So I opened a discussion instead of an issue, thank you.
Beta Was this translation helpful? Give feedback.
All reactions