6 ms·
Guilty [1]. But it's really hard to handle both light and dark color themes! On a dark terminal you're probably more likely to use the "Bright" variants when us
by CodeIsTheEnd 5y ago
Guilty [1]. But it's really hard to handle both light and dark color themes! On a dark terminal you're probably more likely to use the "Bright" variants when using the default 16 color palette, but then you'll have less contrast in a light theme. Some color schemes intentionally invert the "bright" colors and makes them darker for a light colored scheme. This is what Gruvbox [2] does, but most other palettes don't. I also have an issue with Solarized which makes some of the Bright colors almost exactly the same as the foreground or background, which can make text printed in certain colors seem invisible.
I've used ANSI codes to invert colors (which works pretty well for highlighting), and dim colors, but those can't solve everything.
[1]: https://github.com/PaulJuliusMartinez/jless/issues/4 https://github.com/PaulJuliusMartinez/jless/issues/4
[2]: https://github.com/morhetz/gruvbox https://github.com/morhetz/gruvbox
- manwe150 5y agoThe design intent for Solarized is to minimize contrast, so this may lie somewhere between “you’re holding it wrong” territory, and aggressive cargo-culting advertising making this theme show up everywhere as an implied default good option. It is a nice set of color choices, but is not really appropriate for many situations where it gets used.
- dheera 5y agoEspecially when no environment variable tells you whether to use light or dark.
- bmn__ 5y agoThe terminal itself can be queried. https://www.talisman.org/~erlkonig/documents/xterm-color-queries/ https://www.talisman.org/~erlkonig/documents/xterm-color-que...
- account42 5y ago> On a dark terminal you're probably more likely to use the "Bright" variants when using the default 16 color palette, but then you'll have less contrast in a light theme. The bright theme should invert the "dark" and "light" colors.