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
{{ message }}
Repository navigation
Live preview renders quoted code white on light backgrounds in three themes #4
In GitHub, Sepia, and Minimal themes, unhighlighted code inside a blockquote inherits white text on a light code background. The block and its text exist, but they are barely readable in live preview and edit mode.
Validated on main at d50e1fd1ad080fadf416098a582fe0a277d1ad43 (package version 0.2.1), 2026-09-16 UTC. Environment: macOS 26.5.2, arm64.
Reproduction
Select the GitHub theme and open:
> ```> const count = 1;> ```
Inspect the block in preview, click the code to enter edit mode, and then leave the block. Repeat with Sepia and Minimal.
Expected: code text has a readable foreground color in both display and edit modes, including when no language is supplied.
Observed computed styles and foreground/background contrast:
Theme
Code foreground
Code background
Contrast ratio
GitHub
#ffffff
#f6f8fa
1.06:1
Sepia
#ffffff
#f3efe4
1.15:1
Minimal
#ffffff
#f0f0f0
1.14:1
The foreground remains white through display → edit → display. Things and Perplexity have explicit code colors and remain readable in these checks; Night and Dark have dark backgrounds and remain readable. Column-one code outside a quote also remains readable.
Cause and suggested scope
The theme blockquote foreground is white. The general pre/code rule sets no foreground, so code inherits that color. The existing --code-text variables are candidates for an explicit code foreground. Keep syntax-token colors intact and verify all themes and both editor modes. Ordinary blockquote prose shares the white-foreground issue and should be considered explicitly when deciding the CSS scope.
This is a styling issue separate from quoted-code serialization and indented-fence parsing. Do not infer missing source text from its visual appearance.
Validation boundary
Measured computed production CSS in Chromium and exercised entry/exit through the code block's real event handlers across all seven themes. VS Code messaging was mocked; this was not an installed-extension run. All document content is synthetic.
Activity