-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Missing explanation about "themes" from ShikiConfig in syntax highlighting #8152
Comments
I found what is wrong. In the Shiki docs, these are recommended, using the
Because of how Astro is implemented, the correct way of using these would be using So the correct code and implementation should be
|
Hi! I'm closing this issue because, as I mentioned in the linked PR here, we have an open PR to address this! 🙌 Thank you for bringing it to our attention, and sorry we didn't get the PR completed before you needed it! |
📝 Issue Description
When trying to set a dual theme, one for light mode and another one for dark mode, the
themes
config can have two themes.How the themeing is detected? Via
prefers-color-scheme
?📋 On which page(s) it occurs
https://docs.astro.build/en/guides/markdown-content/#shiki-configuration
🤔 Expected Behavior
I expected to use a dual themed syntax highlighting with Shiki using the
themes
object prop that is present in the docs.👀 Current Behavior
The prop
themes
is not properly explained in theshikiConfig
docs.🖥️ Browser
Chrome 124.0.6367.91
📄 Additional Information
No response
The text was updated successfully, but these errors were encountered: