# 3024 scheme for the Base16 Builder (https://github.com/chriskempson/base16-builder)
scheme: "3024"
author: "Jan T. Sott (http://github.com/idleberg)"
base00: "090300" # ----
base01: "3a3432" # ---
base02: "4a4543" # --
base03: "5c5855" # -
base04: "807d7c" # +
base05: "a5a2a2" # ++
base06: "d6d5d4" # +++
base07: "f7f7f7" # ++++
base08: "db2d20" # red
base09: "e8bbd0" # orange
base0A: "fded02" # yellow
base0B: "01a252" # green
base0C: "b5e4f4" # aqua
base0D: "01a0e4" # blue
base0E: "a16a94" # purple
base0F: "cdab53" # brown
#!/bin/bash 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 base16-schemes git clone --depth=1 https://github.com/tinted-theming/base16-schemes export COLORSCHEMES=($(ls base16-schemes/ | 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 grep -Pzo "(?s)<pre id='vimCodeElement'>.*</pre>" $0.html \ > out/$COLORSCHEME.html rm -f $0.html done erb template.erb > out/index.html