chubin / cheat.sh

the only cheat sheet you need
https://cheat.sh/
MIT License
38.4k stars 1.79k forks source link

Please don’t color the text by default… #5

Open MetroWind opened 7 years ago

MetroWind commented 7 years ago
kelunik commented 6 years ago

I think colors should be used by default, but it should use the "standard" colors, not the extended color codes. The "standard" colors are adjustable, so they're readable on light themes, but the current colors lack contrast there.

image

chubin commented 6 years ago

@MetroWind @kelunik

What do you think about this idea: what if we use some special domain name where the text only version: something like "t.cheat.sh" or "t.cht.sh"? In this case we could just access plain text cheat sheets without appending anything to the URL?

kelunik commented 6 years ago

@chubin Sounds good to me, but doesn't help users of light themes who want colors but not the current ones (like me).

chubin commented 6 years ago

@kelunik I use pygmentize that just generates this output. Probably we need some form of colors normalization

By the way, do you know that we have various color schemes? Have you tried:

curl cht.sh/:styles-demo

?

kelunik commented 6 years ago

@chubin No, I didn't know that, yet. Maybe it just needs a default theme that works on light and dark?

MetroWind commented 6 years ago

what if we use some special domain name where the text only version

@chubin That would work for me.

As to @kelunik’s point, I think it would be better if the “main text” part can be uncolored by default, so the terminal would just use the normal text color for those. The “special text” can use the standard colors, and they should look good on all cases (as long as the users takes care of their terminal settings…). Although it could be hard to judge what counts as “main text”.

chubin commented 6 years ago

@MetroWind As a temporary workaround I would suggest you using the cht.sh client (cht.sh), which has its configuration file, where you can specify query options, so that you always will get answers without ANSI-sequences. It has many other advantages, and can be used in scripts or wherever you want so gad as curl (the only disadvantage is that you have to install it first, though it is not a big problem because it is a simple bash script).

athajaerel commented 2 years ago

Is there a way to get a light background on the website? I find it very hard to read with the dark background.

cameronj86 commented 1 year ago

Depending on the background, the default style is not ideal for colorblind users but I finally figured out how to change the style after all these months and hundreds of commands lol.

oir commented 1 month ago

+1 for using only the standard 16 color ANSI codes and maybe attributes such as "bright" or "dim" in the default case, so that the display naturally adapts to the color theme being used by the terminal, be it light or dark.