-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Would you mind add a light(white) code background? #1401
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
Comments
You can import theme stylesheet in @import "prismjs/themes/prism-tomorrow.css"
// currently used, but you can specify another Also, we have planned to enhance code snippet in the next two months. |
Like #736, currently, when we import another Prism theme, the default theme (Tomorrow) hard-coded in layout.vue will override the one imported. |
@kidonng thank you for your working, is there some docs to be written in the future? |
About what? If you are looking for a minimal workaround, check out Theme Inheritance feature introduced in 1.x. |
@kidonng |
It is better to fix the problem instead 😁 I have created a pull request. |
As v1.0.3 has released, you should be able to customize the code theme now. |
Feature request
What problem does this feature solve?
Like this picture, when I change the codeBgColor into white, some words become invisible.
What does the proposed API look like?
How should this be implemented in your opinion?
I have used
Prism.js
but failed.Are you willing to work on this yourself?**
Yes, would you mind give me some suggestions?
The text was updated successfully, but these errors were encountered: