Penumbra

Dev tools

color theme

SHOW HN2022

Legend

Penumbra

A perceptually optimized color palette based on natural light

github.com

#syntax highlighting#color palette#perceptual color#editor theme#oklab

267points
124comments
#171of 2,570 in 2022
Top 7%of 2022 by points

How HN took it

DebatedReal support and real criticism

11 positive, 13 neutral or asking, 1 mixed, 18 critical, out of 43 comments about the project. Thread score -0.21.

Design: 6 for, 14 againstIdea: 1 for, 2 againstDocs: 0 for, 1 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Looks nice and well justified

    From 1 comment
    • Looks nice. Fancy justification too. Are you claiming it's a significant improvement over Solarised? Either way, good stuff.
      AndrewOMartin on HN

Objections

  • Poor accessibility for color vision deficiency, acknowledged by maker

    From 2 comments
    • I’m actually working on another project where I’m trying to design fully optimized categorical colour palettes for people with colour vision deficiency, so I’m fully aware of…
      solasluaith on HN
    • Yes, I’ve even updated the README to specify that accessibility for colour blindness is sadly impossible with these design goals and that they even make the palette particularly…
      solasluaith on HN
  • Almost a carbon copy of Solarized

    From 1 comment
    • This looks like an almost carbon copy of the research done for Solarized. "Great"
      jasonm23 on HN
  • Monochrome-leaning, colors feel muddy and low contrast

    From 2 comments
    • As I said below, I can totally see how taking the opposite approach of making different keywords more or less salient could be just as valid, if you prefer this over having an…
      solasluaith on HN
    • I feel like you have kind of missed the point here. I am doing everything else extra to make up for the lack of contrast in luminance if you read the documentation, but of course…
      solasluaith on HN
  • Light theme has barely enough contrast

    From 1 comment
    • Good catch, that is an issue with the VSCode extension, apparently it’s using the colour for comments (which is purposefully low contrast) for plain text when it should be using…
      solasluaith on HN

Requests

  • Fix comment-color used for plain text in VSCode extension

    From 2 comments
    • I gave it a try, and in plain text files, it seems way too low contrast: [screenshot](https://i.postimg.cc/65Xcx9Cv/Screenshot-20220804-161004.png).
      powersnail on HN
    • Good catch, that is an issue with the VSCode extension, apparently it’s using the colour for comments (which is purposefully low contrast) for plain text when it should be using…
      solasluaith on HN
  • Better token distribution and language-specific highlighting in the extension

    From 1 comment
  • Vim support

    From 2 comments
    • If anyone is keen on making some vim colorschemes based off of this, you might like romainl's colorscheme template: https://github.com/romainl/vim-rnb > RNB is a template…
      grimgrin on HN
    • I’m not a vim user but I’ll make a note of this in case I get around to implementing it myself. Realistically I would definitely need to work off of a template like this. Thanks!
      solasluaith on HN

Questions

  • Whether uniform luminance is desirable for code readability

    From 2 comments
    • That’s the point though, these colours are great because they have (almost) uniform perceptual differences and that is what I was aiming for. Of course this means that “yellow”…
      solasluaith on HN
    • Very interesting to see this, because a few days ago I started using a theme that takes the complete opposite approach: limited hue range, but wide luminance range.…
      pyjamafish on HN
  • How CVD-friendly categorical palettes can be optimized

    From 2 comments
    • Zenbones allows to define custom color schemes by providing just a few base colours and overrides. You could try creating one based on penumbra to have both lightness contrast…
      edwintorok on HN
    • Just on the last point, I’d be interested to know what scientific ways to construct CVD-friendly colour maps you mean. I’m aware of all the continuous colour maps for…
      solasluaith on HN

Alternatives named

  • Solarized

    From 3 comments
    • Looks nice. Fancy justification too. Are you claiming it's a significant improvement over Solarised? Either way, good stuff.
      AndrewOMartin on HN
    • This looks like an almost carbon copy of the research done for Solarized. "Great"
      jasonm23 on HN
    • I acknowledge at the bottom that Solarised was one of the inspirations for this and some similar design principles apply in terms of the background colours, but really the…
      solasluaith on HN
  • Selenized

    From 1 comment
    • Many differences to my attempt: Luminance is kept different between colours according to some subjective “individuality”, I touched on why I decided against this in another…
      solasluaith on HN
  • Okabe-Ito, Paul Tol, ColorBrewer

    From 1 comment
    • If you care about accessibility and these colours have any sort of function or meaning within the app, I’m afraid I would advise against using these colours as they were created…
      solasluaith on HN
  • Huetone

    From 1 comment
    • The saturation (or to be more accurate in this case, chroma) is actually already as high as possible (unless I’ve made a fundamental mistake) given the constraint that we want it…
      solasluaith on HN

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/32348461)