The quick.Highlight function only supports the chroma style name, so it can't be used with customized styles, but the function itself is only about 28 lines of code (less if we hardcode lexer and formatter), so it's feasible to copy it and allow it to take a chroma.Style directly (the change is also just removing 3 lines).
I personally like the
vulcan
theme, except that theKeywordConstant
token uses a grey background.The ability to override specific parts of a theme in the config file would be nice.
There is a map of
TokenType
tostring
in chroma, which can be used in combination with achroma.StyleBuilder
to override specific parts.For the configuration, I propose a subkey to the
theme:
, likeoverrides:
. For example:The
quick.Highlight
function only supports the chroma style name, so it can't be used with customized styles, but the function itself is only about 28 lines of code (less if we hardcodelexer
andformatter
), so it's feasible to copy it and allow it to take achroma.Style
directly (the change is also just removing 3 lines).