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

feat(theme): support light shiki themes #2319

Merged
merged 4 commits into from Apr 30, 2023
Merged

feat(theme): support light shiki themes #2319

merged 4 commits into from Apr 30, 2023

Conversation

brc-dd
Copy link
Member

@brc-dd brc-dd commented Apr 29, 2023

closes #2200

@brc-dd
Copy link
Member Author

brc-dd commented Apr 29, 2023

Preview: https://644d75ce825b0e00088eff5b--vitepress-docs.netlify.app

Currently it checks if the user has specified light/dark mode theme for shiki and adds a class to wrapper. We can use this class to override styles in light mode. CSS vars and code needs slight cleanup. Ignore the failing tests, they will be fixed on removing adaptive themes from default.

/cc @userquin

@brc-dd brc-dd marked this pull request as ready for review April 29, 2023 20:03
@brc-dd brc-dd merged commit d0f0012 into main Apr 30, 2023
8 checks passed
@brc-dd brc-dd deleted the adaptive-code-blocks branch April 30, 2023 07:39
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant