Skip to content
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

Allow use theme colors in code blocks #1245

Closed
4 tasks done
userquin opened this issue Aug 27, 2022 · 2 comments
Closed
4 tasks done

Allow use theme colors in code blocks #1245

userquin opened this issue Aug 27, 2022 · 2 comments
Labels
enhancement New feature or request theme Related to the theme

Comments

@userquin
Copy link
Collaborator

userquin commented Aug 27, 2022

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:

Additional context

No response

Validations

@brc-dd brc-dd added enhancement New feature or request theme Related to the theme labels Aug 27, 2022
@didoee
Copy link

didoee commented Sep 9, 2022

必须是英文的吗?

@userquin
Copy link
Collaborator Author

userquin commented May 5, 2023

closing, fixed with #2319

@userquin userquin closed this as completed May 5, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request theme Related to the theme
Projects
None yet
Development

No branches or pull requests

3 participants