vitepress
vitepress copied to clipboard
Allow use theme colors in code blocks
Is your feature request related to a problem? Please describe.
Currently VitePress has only code blocks to be dark, and so it is "hard/too repetitive" for ppl to use light colors in ligth theme.
Describe the solution you'd like
Include code blocks variables and variants to allow use theme in the code blocks.
Describe alternatives you've considered
Add styles manually to each repo, for example:
- https://github.com/vitest-dev/vitest/pull/1666
- https://github.com/antfu/vite-plugin-pwa/pull/341
Additional context
No response
Validations
- [X] Follow our Code of Conduct
- [X] Read the docs.
- [X] Read the Contributing Guidelines.
- [X] Check that there isn't already an issue that asks for the same feature to avoid creating a duplicate.
必须是英文的吗?
closing, fixed with #2319