-
Notifications
You must be signed in to change notification settings - Fork 672
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
Apply dark theme to prisms #436
Comments
The only prism preset/theme that currently supports color modes is the |
Oh, this is cool! Sorry I didn't notice :) Thanks a lot! |
The link is broken... Any other way to switch prisms presets without using |
@ahmedelq Here's a link! https://dev.theme-ui.com/guides/syntax-highlighting/ You can't change the CSS of a component in dark mode from your theme. However, you can set colors to use for syntax highlighting inside each color mode, then refer to that color name in your syntax highlighting code, & they will update with your color modes. |
Thank you for your help. |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Hi there 👋 is there a way to change the theme for prism based on the color mode?
This is what I tried, but didn't work:
The text was updated successfully, but these errors were encountered: