Skip to content

Conversation

@jonathanslenders
Copy link
Member

For many users, code that was printed red was difficult to read, depending on the background color.

The reason is that our themes, which are coming from Pygments all use RGB colors instead of ANSI colors, and we render using 256 colors by default.

This patch adopts the default Pygments theme, but using the closest ANSI color as the default theme, so that we take the ANSI colors that are configured in the terminal, which should normally provide sufficient contrast with the background.

@jonathanslenders jonathanslenders force-pushed the ansi-colors-for-default-theme branch from e36c4c5 to 1c77626 Compare November 8, 2025 22:19
@jonathanslenders jonathanslenders force-pushed the ansi-colors-for-default-theme branch from 1c77626 to bd118e9 Compare November 10, 2025 21:36
@jonathanslenders jonathanslenders merged commit 86c6d11 into main Nov 10, 2025
6 checks passed
@jonathanslenders jonathanslenders deleted the ansi-colors-for-default-theme branch November 10, 2025 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants