system: "base16"
name: "PaperColor Light"
author: Jon Leopard (http://github.com/jonleopard), based on PaperColor Theme (https://github.com/NLKNguyen/papercolor-theme)
variant: "light"
palette:
base00: "eeeeee" # Default Background
base01: "af0000" # Lighter Background (Used for status bars, line number and folding marks)
base02: "008700" # Selection Background
base03: "5f8700" # Comments, Invisibles, Line Highlighting
base04: "0087af" # Dark Foreground (Used for status bars)
base05: "444444" # Default Foreground, Caret, Delimiters, Operators
base06: "005f87" # Light Foreground (Not often used)
base07: "878787" # Light Background (Not often used)
base08: "bcbcbc" # Variables, XML Tags, Markup Link Text, Markup Lists, Diff Deleted
base09: "d70000" # Integers, Boolean, Constants, XML Attributes, Markup Link Url
base0A: "d70087" # Classes, Markup Bold, Search Text Background
base0B: "8700af" # Strings, Inherited Class, Markup Code, Diff Inserted
base0C: "d75f00" # Support, Regular Expressions, Escape Characters, Markup Quotes
base0D: "d75f00" # Functions, Methods, Attribute IDs, Headings
base0E: "005faf" # Keywords, Storage, Selector, Markup Italic, Diff Changed
base0F: "005f87" # Deprecated, Opening/Closing Embedded Language Tags, e.g.
set -eu pipefail
rm -rf out
mkdir out
rm -rf base16-vim
git clone --depth=1 https://github.com/tinted-theming/base16-vim
rm -rf schemes
git clone --depth=1 https://github.com/tinted-theming/schemes
export COLORSCHEMES=($(ls schemes/base16/ | grep yaml | sed 's/\..*$//'))
for COLORSCHEME in ${COLORSCHEMES[@]}; do
echo $COLORSCHEME
vim -es -u NORC -N \
-c 'set termguicolors' \
-c 'set runtimepath+=base16-vim' \
-c 'syntax on' \
-c "colorscheme base16-$COLORSCHEME" \
-c 'TOhtml' \
-c 'wqall' \
$0 > /dev/null 2>&1
grep -Pzo '(?s)<style>.*</style>' $0.html \
| sed "3,14!d;s/body/pre/;s/^/#base16-$COLORSCHEME /" \
> out/$COLORSCHEME.css
awk "/<pre id='vimCodeElement'>/,/<\/pre>/" $0.html \
> out/$COLORSCHEME.html
rm -f $0.html
done
erb template.erb > out/index.html