From f703015dc0137d79379492ae61e78efbb7ecf512 Mon Sep 17 00:00:00 2001 From: José Luis Lafuente Date: Sat, 4 Nov 2017 14:31:00 +0100 Subject: Make local customization easier --- templates/default.mustache | 121 ++++++++++++++++++++++++++++++--------------- 1 file changed, 82 insertions(+), 39 deletions(-) (limited to 'templates') diff --git a/templates/default.mustache b/templates/default.mustache index 71b9f93..bdf3646 100644 --- a/templates/default.mustache +++ b/templates/default.mustache @@ -15,48 +15,86 @@ if !has('gui_running') endif " GUI color definitions -let s:gui00 = "{{base00-hex}}" -let s:gui01 = "{{base01-hex}}" -let s:gui02 = "{{base02-hex}}" -let s:gui03 = "{{base03-hex}}" -let s:gui04 = "{{base04-hex}}" -let s:gui05 = "{{base05-hex}}" -let s:gui06 = "{{base06-hex}}" -let s:gui07 = "{{base07-hex}}" -let s:gui08 = "{{base08-hex}}" -let s:gui09 = "{{base09-hex}}" -let s:gui0A = "{{base0A-hex}}" -let s:gui0B = "{{base0B-hex}}" -let s:gui0C = "{{base0C-hex}}" -let s:gui0D = "{{base0D-hex}}" -let s:gui0E = "{{base0E-hex}}" -let s:gui0F = "{{base0F-hex}}" +let s:gui00 = "{{base00-hex}}" +let g:base16_gui00 = "{{base00-hex}}" +let s:gui01 = "{{base01-hex}}" +let g:base16_gui01 = "{{base01-hex}}" +let s:gui02 = "{{base02-hex}}" +let g:base16_gui02 = "{{base02-hex}}" +let s:gui03 = "{{base03-hex}}" +let g:base16_gui03 = "{{base03-hex}}" +let s:gui04 = "{{base04-hex}}" +let g:base16_gui04 = "{{base04-hex}}" +let s:gui05 = "{{base05-hex}}" +let g:base16_gui05 = "{{base05-hex}}" +let s:gui06 = "{{base06-hex}}" +let g:base16_gui06 = "{{base06-hex}}" +let s:gui07 = "{{base07-hex}}" +let g:base16_gui07 = "{{base07-hex}}" +let s:gui08 = "{{base08-hex}}" +let g:base16_gui08 = "{{base08-hex}}" +let s:gui09 = "{{base09-hex}}" +let g:base16_gui09 = "{{base09-hex}}" +let s:gui0A = "{{base0A-hex}}" +let g:base16_gui0A = "{{base0A-hex}}" +let s:gui0B = "{{base0B-hex}}" +let g:base16_gui0B = "{{base0B-hex}}" +let s:gui0C = "{{base0C-hex}}" +let g:base16_gui0C = "{{base0C-hex}}" +let s:gui0D = "{{base0D-hex}}" +let g:base16_gui0D = "{{base0D-hex}}" +let s:gui0E = "{{base0E-hex}}" +let g:base16_gui0E = "{{base0E-hex}}" +let s:gui0F = "{{base0F-hex}}" +let g:base16_gui0F = "{{base0F-hex}}" " Terminal color definitions -let s:cterm00 = "00" -let s:cterm03 = "08" -let s:cterm05 = "07" -let s:cterm07 = "15" -let s:cterm08 = "01" -let s:cterm0A = "03" -let s:cterm0B = "02" -let s:cterm0C = "06" -let s:cterm0D = "04" -let s:cterm0E = "05" +let s:cterm00 = "00" +let g:base16_cterm00 = "00" +let s:cterm03 = "08" +let g:base16_cterm03 = "08" +let s:cterm05 = "07" +let g:base16_cterm05 = "07" +let s:cterm07 = "15" +let g:base16_cterm07 = "15" +let s:cterm08 = "01" +let g:base16_cterm08 = "01" +let s:cterm0A = "03" +let g:base16_cterm0A = "03" +let s:cterm0B = "02" +let g:base16_cterm0B = "02" +let s:cterm0C = "06" +let g:base16_cterm0C = "06" +let s:cterm0D = "04" +let g:base16_cterm0D = "04" +let s:cterm0E = "05" +let g:base16_cterm0E = "05" if exists('base16colorspace') && base16colorspace == "256" - let s:cterm01 = "18" - let s:cterm02 = "19" - let s:cterm04 = "20" - let s:cterm06 = "21" - let s:cterm09 = "16" - let s:cterm0F = "17" + let s:cterm01 = "18" + let g:base16_cterm01 = "18" + let s:cterm02 = "19" + let g:base16_cterm02 = "19" + let s:cterm04 = "20" + let g:base16_cterm04 = "20" + let s:cterm06 = "21" + let g:base16_cterm06 = "21" + let s:cterm09 = "16" + let g:base16_cterm09 = "16" + let s:cterm0F = "17" + let g:base16_cterm0F = "17" else - let s:cterm01 = "10" - let s:cterm02 = "11" - let s:cterm04 = "12" - let s:cterm06 = "13" - let s:cterm09 = "09" - let s:cterm0F = "14" + let s:cterm01 = "10" + let g:base16_cterm01 = "10" + let s:cterm02 = "11" + let g:base16_cterm02 = "11" + let s:cterm04 = "12" + let g:base16_cterm04 = "12" + let s:cterm06 = "13" + let g:base16_cterm06 = "13" + let s:cterm09 = "09" + let g:base16_cterm09 = "09" + let s:cterm0F = "14" + let g:base16_cterm0F = "14" endif " Neovim terminal colours @@ -91,7 +129,7 @@ syntax reset let g:colors_name = "base16-{{scheme-slug}}" " Highlighting function -fun hi(group, guifg, guibg, ctermfg, ctermbg, attr, guisp) +function! g:Base16hi(group, guifg, guibg, ctermfg, ctermbg, attr, guisp) if a:guifg != "" exec "hi " . a:group . " guifg=#" . a:guifg endif @@ -110,6 +148,11 @@ fun hi(group, guifg, guibg, ctermfg, ctermbg, attr, guisp) if a:guisp != "" exec "hi " . a:group . " guisp=#" . a:guisp endif +endfunction + + +fun hi(group, guifg, guibg, ctermfg, ctermbg, attr, guisp) + call Base16hi(a:group, a:guifg, a:guibg, a:ctermfg, a:ctermbg, a:attr, a:guisp) endfun " Vim editor colors -- cgit v1.2.3 555 } /* Generic.Prompt */ .highlight .gs { font-weight: bold } /* Generic.Strong */ .highlight .gu { color: #666666 } /* Generic.Subheading */ .highlight .gt { color: #aa0000 } /* Generic.Traceback */ .highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ .highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ .highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ .highlight .kp { color: #008800 } /* Keyword.Pseudo */ .highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ .highlight .kt { color: #888888; font-weight: bold } /* Keyword.Type */ .highlight .m { color: #0000DD; font-weight: bold } /* Literal.Number */ .highlight .s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */ .highlight .na { color: #336699 } /* Name.Attribute */ .highlight .nb { color: #003388 } /* Name.Builtin */ .highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */ .highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ .highlight .nd { color: #555555 } /* Name.Decorator */ .highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */ .highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */ .highlight .nl { color: #336699; font-style: italic } /* Name.Label */ .highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ .highlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
# Base16 foot template by Michaël Ball (https://git.michaelball.name)
# Heetch Light by Geoffrey Teale (tealeg@gmail.com)
#
# Copy this into the [colors] section of your foot.ini config
foreground=5a496e
background=feffff
regular0=feffff
regular1=27d9d5
regular2=f80059
regular3=5ba2b6
regular4=47f9f5
regular5=bd0152
regular6=c33678
regular7=5a496e
bright0=9c92a8
bright1=bdb6c5
bright2=392551
bright3=7b6d8b
bright4=ddd6e5
bright5=470546
bright6=dedae2
bright7=190134
selection-foreground=5a496e
selection-background=7b6d8b