Describe the bug
Using an "empty" theme, the code foreground does not defer to var(--shiki-code-normal) but is instead hardcoded to #BBBBBB. This occurs even when Prefer theme colors is deactivated.
To Reproduce
Steps to reproduce the behavior:
- Add and use an "empty" or "blank" custom theme:
{
"name": "Blank",
"type": "both",
"semanticHighlighting": true,
"tokenColors": []
}
- Turn off Prefer Theme Colors
- Reload the highlighter
Expected:
All text in codeblocks have a foreground color matching var(--shiki-code-normal)
Actual:
All text in codeblocks have a foreground color hardcoded to #BBBBBB
Screenshots
Using light mode here to show that this can make it far less legible in some circumstances.
Occurs on
Plugin version
0.7.1
Additional context
Add any other context about the problem here.
Describe the bug
Using an "empty" theme, the code foreground does not defer to
var(--shiki-code-normal)but is instead hardcoded to#BBBBBB. This occurs even when Prefer theme colors is deactivated.To Reproduce
Steps to reproduce the behavior:
{ "name": "Blank", "type": "both", "semanticHighlighting": true, "tokenColors": [] }Expected:
All text in codeblocks have a foreground color matching
var(--shiki-code-normal)Actual:
All text in codeblocks have a foreground color hardcoded to
#BBBBBBScreenshots
Using light mode here to show that this can make it far less legible in some circumstances.
Occurs on
Plugin version
0.7.1
Additional context
Add any other context about the problem here.