## base16-kakoune (https://github.com/leira/base16-kakoune)
## by Leira Hua
## {{scheme-name}} scheme by {{scheme-author}}

evaluate-commands %sh{
    base00='rgb:{{base00-hex}}'
    base01='rgb:{{base01-hex}}'
    base02='rgb:{{base02-hex}}'
    base03='rgb:{{base03-hex}}'
    base04='rgb:{{base04-hex}}'
    base05='rgb:{{base05-hex}}'
    base06='rgb:{{base06-hex}}'
    base07='rgb:{{base07-hex}}'
    base08='rgb:{{base08-hex}}'
    base09='rgb:{{base09-hex}}'
    base0A='rgb:{{base0A-hex}}'
    base0B='rgb:{{base0B-hex}}'
    base0C='rgb:{{base0C-hex}}'
    base0D='rgb:{{base0D-hex}}'
    base0E='rgb:{{base0E-hex}}'
    base0F='rgb:{{base0F-hex}}'

    ## code
    echo "
        face global value ${base09}
        face global type ${base0A}+b
        face global identifier ${base08}
        face global string ${base0B}
        face global keyword ${base0E}+b
        face global operator ${base05}
        face global attribute ${base0C}
        face global comment ${base03}
        face global meta ${base0D}
        face global builtin ${base0D}+b
    "

    ## markup
    echo "
        face global title ${base0D}+b
        face global header ${base0D}+b
        face global bold ${base0A}+b
        face global italic ${base0E}
        face global mono ${base0B}
        face global block ${base0C}
        face global link ${base09}
        face global bullet ${base08}
        face global list ${base08}
    "

    ## builtin
    echo "
        face global Default ${base05},${base00}
        face global PrimarySelection ${base06},${base0D}
        face global SecondarySelection ${base06},${base0F}
        face global PrimaryCursor ${base00},${base05}
        face global SecondaryCursor ${base06},${base0C}
        face global LineNumbers ${base02},${base00}
        face global LineNumberCursor ${base0A},${base00}
        face global MenuForeground ${base00},${base0D}
        face global MenuBackground ${base00},${base0C}
        face global MenuInfo ${base02}
        face global Information ${base00},${base0A}
        face global Error ${base00},${base08}
        face global StatusLine ${base04},${base01}
        face global StatusLineMode ${base0B}
        face global StatusLineInfo ${base0D}
        face global StatusLineValue ${base0C}
        face global StatusCursor ${base00},${base05}
        face global Prompt ${base0D},${base01}
        face global MatchingChar ${base06},${base02}+b
        face global BufferPadding ${base03},${base00}
    "
}
