PaperColor terminal color scheme
hterm, the official terminal emulator for ChromeOS, has foiled my usual preference for dark color schemes because its font rendering is optimized for light backgrounds that are common on the Web, but not for traditional terminals.
Thus, I have ported Vim’s light PaperColor theme to the terminal as follows:
To use this color scheme in hterm, open the nassh extension’s settings page, open Chrome Developer Tools, and then run the following snippet in the console:
term_.prefs_.set("background-color", "#eeeeee");
term_.prefs_.set("foreground-color", "#444444");
term_.prefs_.set("cursor-color", "rgba(0,95,135, 0.5)"); /* #005f87 */
term_.prefs_.set("color-palette-overrides", ["#1c1c1c", "#af0000", "#008700",
"#d75f00", "#005faf", "#d70087", "#0087af", "#e4e4e4", "#1c1c1c", "#af0000",
"#008700", "#d75f00", "#005faf", "#d70087", "#0087af", "#e4e4e4"]);
To use this color scheme in Rxvt or XTerm, save the following snippet to a file
such as ~/.Xdefaults
and then run xrdb -merge
on that file to apply it. Any
terminals launched thereafter will use this color scheme, but not existing ones.
! Colors from "PaperColor" colorscheme for Vim
! https://github.com/NLKNguyen/papercolor-theme
#define Ansi_0_Color #1c1c1c
#define Ansi_8_Color #1c1c1c
#define Ansi_1_Color #af0000
#define Ansi_9_Color #af0000
#define Ansi_2_Color #008700
#define Ansi_10_Color #008700
#define Ansi_3_Color #d75f00
#define Ansi_11_Color #d75f00
#define Ansi_4_Color #005faf
#define Ansi_12_Color #005faf
#define Ansi_5_Color #d70087
#define Ansi_13_Color #d70087
#define Ansi_6_Color #0087af
#define Ansi_14_Color #0087af
#define Ansi_7_Color #e4e4e4
#define Ansi_15_Color #e4e4e4
#define Foreground_Color #444444
#define Background_Color #eeeeee
#define Cursor_Color #005f87
Rxvt*color0 : Ansi_0_Color/* normal black */
Rxvt*color1 : Ansi_1_Color/* normal red */
Rxvt*color2 : Ansi_2_Color/* normal green */
Rxvt*color3 : Ansi_3_Color/* normal yellow */
Rxvt*color4 : Ansi_4_Color/* normal blue */
Rxvt*color5 : Ansi_5_Color/* normal magenta */
Rxvt*color6 : Ansi_6_Color/* normal cyan */
Rxvt*color7 : Ansi_7_Color/* normal white */
Rxvt*color8 : Ansi_8_Color/* bright black */
Rxvt*color9 : Ansi_9_Color/* bright red */
Rxvt*color10 : Ansi_10_Color/* bright green */
Rxvt*color11 : Ansi_11_Color/* bright yellow */
Rxvt*color12 : Ansi_12_Color/* bright blue */
Rxvt*color13 : Ansi_13_Color/* bright magenta */
Rxvt*color14 : Ansi_14_Color/* bright cyan */
Rxvt*color15 : Ansi_15_Color/* bright white */
Rxvt*foreground : Foreground_Color
Rxvt*background : Background_Color
Rxvt*cursorColor : Cursor_Color
XTerm*color0 : Ansi_0_Color/* normal black */
XTerm*color1 : Ansi_1_Color/* normal red */
XTerm*color2 : Ansi_2_Color/* normal green */
XTerm*color3 : Ansi_3_Color/* normal yellow */
XTerm*color4 : Ansi_4_Color/* normal blue */
XTerm*color5 : Ansi_5_Color/* normal magenta */
XTerm*color6 : Ansi_6_Color/* normal cyan */
XTerm*color7 : Ansi_7_Color/* normal white */
XTerm*color8 : Ansi_8_Color/* bright black */
XTerm*color9 : Ansi_9_Color/* bright red */
XTerm*color10 : Ansi_10_Color/* bright green */
XTerm*color11 : Ansi_11_Color/* bright yellow */
XTerm*color12 : Ansi_12_Color/* bright blue */
XTerm*color13 : Ansi_13_Color/* bright magenta */
XTerm*color14 : Ansi_14_Color/* bright cyan */
XTerm*color15 : Ansi_15_Color/* bright white */
XTerm*colorUL : Underline_Color
XTerm*colorRV : Reverse_Color
XTerm*foreground : Foreground_Color
XTerm*background : Background_Color
XTerm*cursorColor : Cursor_Color