cheat.sh icon indicating copy to clipboard operation
cheat.sh copied to clipboard

Please don’t color the text by default…

Open MetroWind opened this issue 8 years ago • 10 comments
trafficstars

  • People have their own preference for text color, please don’t force it…
  • I know ?T exists, but to use it I have to quote the URI, which is annoying.
  • The color chosen here could be unfriendly to light theme users.

MetroWind avatar May 26 '17 17:05 MetroWind

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

kelunik avatar Jul 03 '18 08:07 kelunik

@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?

chubin avatar Jul 03 '18 10:07 chubin

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

kelunik avatar Jul 03 '18 14:07 kelunik

@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

?

chubin avatar Jul 03 '18 21:07 chubin

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

kelunik avatar Jul 04 '18 07:07 kelunik

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”.

MetroWind avatar Jul 08 '18 18:07 MetroWind

@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).

chubin avatar Jul 08 '18 19:07 chubin

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

athajaerel avatar Jun 30 '22 13:06 athajaerel

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.

cameronj86 avatar Nov 04 '23 15:11 cameronj86