Outputs contrast values between colors in a Xresources color scheme against it's background and foreground colors.
Information on contrast tests: http://accessibility.psu.edu/color/contrasthtml/
All dependencies are provided, you only need Node.js to run the script.
# Input files: https://github.com/nevesnunes/env/tree/master/linux/.local/share/Xresources
node index.js file
- Only supports themes with 16 colors
- Colors must be formatted as
#rrggbb
orrgb:rr/gg/bb
Xterm:
Notice how the blue color fails the contrast test against the black background. This matches with the general difficulty in reading blue text with this theme.
Tango:
Solarized Light: