TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: OKSolar: Improving Solarized using the OKLab perceptual colorspace

90 pointsby zacharyvoaseover 2 years ago

13 comments

hnbadover 2 years ago
It&#x27;s funny how the last section with the screenshots mentions &quot;preserving accessibility&quot;. &quot;Fixing the lightness and only modifying hue and chroma&quot; is not a recipe for good accessibility and the screenshots demonstrate it.<p>I&#x27;m severely green-blind and in the earlier screenshots of the Solarized palette I already hat issues telling red and orange, and blue and violet apart. But with the new palette I now struggle with red, orange AND green, and magenta and cyan also have become less distinct from each other.<p>Solarized wasn&#x27;t very accessible to begin with (few syntax highlighting color palettes are) but this is just worse. If you learn about color theory as a hobby, please also take the time to learn about color vision and before making claims about accessibility also learn about how color vision deficiencies affect perception.<p>It&#x27;s nice that the author admits they had to learn about color theory in order to approach this, i.e. they didn&#x27;t know much about color before, but please don&#x27;t claim this is an &quot;improvement&quot; if you really only tried to increase the light-dark contrast of the text against the background. Solarized is a fairly low-contrast theme to begin with and increasing its contrast while maintaining its general aesthetic would have been an interest goal but this article doesn&#x27;t seem to actually be interested in doing that.
评论 #33707944 未加载
评论 #33705939 未加载
throwaway104739over 2 years ago
Selenized[0] is an another attempt at improving on solarized.<p>[0]: <a href="https:&#x2F;&#x2F;github.com&#x2F;jan-warchol&#x2F;selenized&#x2F;" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;jan-warchol&#x2F;selenized&#x2F;</a>
评论 #33704841 未加载
评论 #33705761 未加载
评论 #33703884 未加载
easytigerover 2 years ago
&gt; For me, the contrast between text and the background is just a little too low<p>I have always thought this with Solarized, on many monitors over many years. Perhaps my eyes aren&#x27;t as good as others, but i found it instantly fatiguing
评论 #33705504 未加载
bloopernovaover 2 years ago
I don&#x27;t mean for this to sound negative but I&#x27;m confused by the effort to make the different shades the same perceived brightness.<p>Isn&#x27;t a significant part of a colour scheme the ability to more easily distinguish between elements? In my terminal and text editor I want to pick out the relevant information quickly.<p>I hate asking stuff like this because it sounds like I&#x27;m dismissive of the really cool article&#x2F;experiment I just read.
评论 #33705788 未加载
评论 #33705753 未加载
jnsaff2over 2 years ago
To me the problem with solarized dark has always been that my brain keeps telling me that my monitor is broken as it &quot;bleeds backlight&quot;. I like the rest of it but whenever I use it I just turn the background to more or almost completely black. So much better.<p>I guess the same very low contrast is a problem for the light one too. This here did not improve it.<p>Nowadays I mostly use something else.
评论 #33705479 未加载
bscphilover 2 years ago
&gt; For me, the contrast between text and the background is just a little too low (especially if I’m working in a bright space), and you can see that it also varies between different token types.<p>Strange. For the dark scheme, it fixes the saturation and lightness difference between colors, but it doesn&#x27;t seem to improve the contrast ... at all? Are my eyes lying to me? You decide: <a href="https:&#x2F;&#x2F;i.imgur.com&#x2F;vFa06CE.png" rel="nofollow">https:&#x2F;&#x2F;i.imgur.com&#x2F;vFa06CE.png</a><p>I think this is an interesting approach, maybe I&#x27;ll try using it with a significantly darker background color.
评论 #33704032 未加载
zokierover 2 years ago
One thing I&#x27;m bit confused about is the relationship between oklab(&#x2F;oklch) and different colorspaces; are srgb-oklab and p3-oklab different things? Or is oklab something that exists independent of srgb&#x2F;p3&#x2F;whatever? In web they seem bit intermixed in a confusing way. And does HDR add yet another dimension here is needed for &quot;full&quot; color specification.
评论 #33704978 未加载
评论 #33704811 未加载
floatrockover 2 years ago
Anyone assemble this into a jetbrains theme file?<p>Author links to a json file <a href="https:&#x2F;&#x2F;meat.io&#x2F;oksolar.json" rel="nofollow">https:&#x2F;&#x2F;meat.io&#x2F;oksolar.json</a> but haven&#x27;t done manual jetbrains theming so hoping more experienced eyes have taken a stab at it.
ibottyover 2 years ago
Great to see that getting more traction than my submission. I hope to find time to incorporate it into my terminal. Are there already some projects generating the various color schemes?
antmanover 2 years ago
Removing contrast towards more washed out colors does not look like an improvement. Examples at the end look less legible both in too much light and in less light.
评论 #33703818 未加载
Gordonjcpover 2 years ago
Why is this supposed to be good? What&#x27;s with the fashion for very-pale-grey-on-slightly-paler-grey text?
评论 #33705518 未加载
jeffreygoestoover 2 years ago
Paying attention to details can really make a difference. Looks as if it reduces latent stress when using it.
Terrettaover 2 years ago
So familiar, but improved.