There are many themes, but this one is yours

14 points by mitsuhiko


mitsuhiko

Disclaimer here: this is from our company blog and it abstractly relates to a coding agent but it really doesn’t have anything to do with AI.

Interestingly what I learned from this is that there is no good contrast algorithm available today so we are trying to get people to do the survey so that we can get some good real world data points to get an open source algorithm for the contrast that is freely usable by anyone.

Survey is here if you are willing to take it: https://contrastsurvey.earendil.com/

neeasade

This is great stuff. I saw some notes on contrast differences in existing light+dark themes, but one thing to consider is that (IMO) contrast matters more in dark themes - that is, you need higher contrast bump for same readability compared to a light theme (visual).

I have support for oklch in my emacs color library, but haven't given it a go, I got sniped by the more recent hct colorspace (google material thing?).

I recall issues when working in hsluv (the gamut was smooshed enough that everything came out looking muted from the S), maybe okhsl fixes some of that.

Anyway this kind of dynamic contrast nudging is sick, long have programmers been plagued by tweaking one color and then realizing you might have to change /all/ your colors while down the rabbithole.