Skip to content

Instantly share code, notes, and snippets.

@op-ct
Last active September 17, 2019 19:40
Show Gist options
  • Select an option

  • Save op-ct/b9dbd280e5091c9f476d44131e0014cd to your computer and use it in GitHub Desktop.

Select an option

Save op-ct/b9dbd280e5091c9f476d44131e0014cd to your computer and use it in GitHub Desktop.
xterm.js base-16 template
# Tested https://github.com/obahareth/base16-builder-ruby and WeTTY
default:
extension: .json
output: xtermjs
{
"fontSize": 24,
"fontFamily": "'Ubuntu Mono', monospace",
"theme": {
"foreground" : "#{{base05-hex-r}}{{base05-hex-g}}{{base05-hex-b}}",
"background" : "#{{base00-hex-r}}{{base00-hex-g}}{{base00-hex-b}}",
"cursor": "#{{base05-hex-r}}{{base05-hex-g}}{{base05-hex-b}}",
"cursorAccent": "#{{base05-hex-r}}{{base05-hex-g}}{{base05-hex-b}}",
"black": "#{{base00-hex-r}}{{base00-hex-g}}{{base00-hex-b}}",
"brightBlack": "#{{base03-hex-r}}{{base03-hex-g}}{{base03-hex-b}}",
"red": "#{{base08-hex-r}}{{base08-hex-g}}{{base08-hex-b}}",
"brightRed": "#{{base09-hex-r}}{{base09-hex-g}}{{base09-hex-b}}",
"green": "#{{base0B-hex-r}}{{base0B-hex-g}}{{base0B-hex-b}}",
"brightGreen": "#{{base01-hex-r}}{{base01-hex-g}}{{base01-hex-b}}",
"yellow": "#{{base0A-hex-r}}{{base0A-hex-g}}{{base0A-hex-b}}",
"brightYellow": "#{{base02-hex-r}}{{base02-hex-g}}{{base02-hex-b}}",
"blue": "#{{base0D-hex-r}}{{base0D-hex-g}}{{base0D-hex-b}}",
"brightBlue": "#{{base04-hex-r}}{{base04-hex-g}}{{base04-hex-b}}",
"magenta": "#{{base0E-hex-r}}{{base0E-hex-g}}{{base0E-hex-b}}",
"brightMagenta": "#{{base06-hex-r}}{{base06-hex-g}}{{base06-hex-b}}",
"cyan": "#{{base0C-hex-r}}{{base0C-hex-g}}{{base0C-hex-b}}",
"brightCyan": "#{{base0F-hex-r}}{{base0F-hex-g}}{{base0F-hex-b}}",
"white": "#{{base05-hex-r}}{{base05-hex-g}}{{base05-hex-b}}",
"brightWhite": "#{{base07-hex-r}}{{base07-hex-g}}{{base07-hex-b}}"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment