VSharapov / INDEXmd

An index.html to render your README.md
0 stars 1 forks source link

Better dark theme link formatting #17

Closed VSharapov closed 3 years ago

VSharapov commented 3 years ago

Currently links are inverted, dimmed to 50% and inverted again. Why not just brighten to 200% you ask? #0000FF times 2 is still #0000FF, but if you start with #0000FF -> invert -> #FFFF00 -> ×½ -> #808000 -> invert again -> #8080FF.

Anyway, I noticed this on MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/filter-function/hue-rotate() Might get better results 🤷 currently overlapping lonks and code blocks get their background brightened:

[li`code`nk][1][link][1] `code`
VSharapov commented 3 years ago

Or maybe white shadow?

VSharapov commented 3 years ago

Having a hard time finding a satisfactory option.

Here's the real trouble though: An image that is all transparent except for someColor on a background of the same color is invisible. No color transformation can make arbitrary colors stand out on arbitrary colors, i.e. any CSS you apply to links, I can make an image that will look invisible on the background. Shadows work for outlines but they look bad. I am ready to give up and just go with what looks good on black. The real solution is not to mess with images so that images that are links don't get uglified.

Inverting luminosity on the default link colors doesn't really look good. The blue looks too purple and the purple looks too similar. All of this reminds me of when the RedHat logo got changed, it looked pink! The designers pointed out that a #f00 had on a #fff background looks #f00 but the same thing on a #000 background looks... #e00 - just a little off. Their pink hat felt like #ff0000 on a black background. You can't win.

So, tl;dr, I give up. My gut says:

a:link    {color: #79f;}
a:visited {color: #94f;}

...looks good enough. Similar to the debug console color scheme in FF. If you use a #fff or #000 .png, it's gonna look bad. Sorry.

VSharapov commented 3 years ago

P.S. This helped: https://graphicdesign.stackexchange.com/q/20258/149756 ... ...but not in the solutionist sense of the word.