-
Notifications
You must be signed in to change notification settings - Fork 152
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 colors #255
Comments
Could you let me know which themes so I can update them? |
I think that only one theme include boolean and regular expressions, so you need to check them all. I suggest go into every theme and check if they include all the tokens. I can check this for you, but I will need to include most of the files, and you will need to update most of the files anyway. |
The themes we have are just community contributions converted from existing themes. For example, For each theme file, you can see the original sources at the top of the file
In this PR, I added some documentation on how to use a CSS based Prism theme, which might be helpful. |
This is what I've ended up with my TypeScript project: import {themes as prismThemes} from 'prism-react-renderer';
prismThemes.dracula.styles.push({
types: ['regex', 'important'],
style: {
color: '#fd971f'
}
}, {
types: ['number', 'boolean'],
style: {
color: '#ae81ff'
}
}); I don't remember where I get the colors. |
Is there an existing issue for this?
Code of Conduct
Code Sandbox link
No response
Bug report
The text was updated successfully, but these errors were encountered: