Replies: 2 comments
-
This is definitely a pain point for me as well! Would be awesome if we could do this. 👍🏼 |
Beta Was this translation helpful? Give feedback.
0 replies
-
You can use tailwind to style your code blocks in For example: .token.constant,
.token.function,
.token.builtin,
.token.char {
@apply text-gray-400 dark:text-white;
} This should result to: Screen.Recording.2022-07-20.at.12.48.55.AM.movHope this helps! |
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
-
Hi, I'm aware of we can customize the look of code block via
prism.css
. But, I'm wondering if I can change the code block style based on the light/dark mode of the website.Thank you.
Beta Was this translation helpful? Give feedback.
All reactions