You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently our code syntax highlighting is intended only for usage in light theme, and is not legible on dark theme.
We should introduce theme support to the syntax highlighting mixin to use the existing Prism theme on light theme, and the "Tomorrow Night" Prism theme on dark theme.
Context
The code below hard-codes colors from Prism's default theme into Vanilla. It should be updated to vary based in color theme, so that the "Tomorrow Night" theme is applied when an element is a descendant of an is-dark element.
Currently our code syntax highlighting is intended only for usage in light theme, and is not legible on dark theme.
We should introduce theme support to the syntax highlighting mixin to use the existing Prism theme on light theme, and the "Tomorrow Night" Prism theme on dark theme.
Context
The code below hard-codes colors from Prism's default theme into Vanilla. It should be updated to vary based in color theme, so that the "Tomorrow Night" theme is applied when an element is a descendant of an
is-dark
element.vanilla-framework/scss/_base_syntax-highlighting.scss
Lines 27 to 69 in 80fddaa
Resources
The text was updated successfully, but these errors were encountered: