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
Reduce Syntax highlighter footprint #2037
Conversation
e27605e
to
42397dc
Compare
Is this ready for review? |
yes it is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! Just need to fix the default theme and this looks good
|
||
# The theme to use ("light" or "dark"). | ||
theme: Var[LiteralTheme] | ||
theme: Var[LiteralCodeBlockTheme] = "prism" # type: ignore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we update the comment for this now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could do that, however, I expected this issue https://linear.app/reflex-dev/issue/REF-1078/in-props-section-add-a-section-for-valid-literals to handle displaying the valid prop values from the literals.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to fix the default style
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me!
Running without PR(before):
Running with PR(after):
fixes #1997