Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Is anybody willing to explain how to switch between light and dark? I can't seem to understand the scss snippet that he gives. Apparently, you only have to switch 4 colors, It would be nice to know what those colors were.


I'll be expanding the webpage to detail that, but essentially:

base03 = background base02 = background highlight base01 = background data (comments, etc.) base0 = normal text

The scheme was designed to allow for: base1 = optional bold/emphasis

Just swap the zeros (initially I was using minus/plus, e.g. base-1 and base+1 but this isn't usable across all apps) to swap dark and light modes. There is a good example of this in the vim script as well as the sass snippet (and the mutt compile script if you are a glutton for ugly bash scripts).

base3 = light background base2 = dark background etc.

You shouldn't need to do any of this manually, however. The vim script has a light/dark mode built in and where there isn't a way to toggle modes I am distributing light and dark versions (the terminal color schemes).


Thanks! I coulden't find a light version of the Xresources script though, that's why I was wondering about switching.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: