kakoune/colors/solarized-dark.kak
Maxime Coste ec16969609 Do not reparse %sh{...} strings
Automatic reparsing of %sh{...}, while convenient in many cases,
can be surprising as well, and can lead to security problems:

'echo %sh{ printf "foo\necho bar" }' runs 'echo foo', then 'echo bar'.
we make this danger explicit, and we fix the 'nop %sh{...}' pattern.

To reparse %sh{...} strings, they can be passed to evaluate-commands,
which has been fixed to work in every cases where %sh{...} reparsing
was used..
2018-07-05 07:54:28 +10:00

73 lines
2.7 KiB
Plaintext

# Solarized Dark
evaluate-commands %sh{
base03='rgb:002b36'
base02='rgb:073642'
base01='rgb:586e75'
base00='rgb:657b83'
base0='rgb:839496'
base1='rgb:93a1a1'
base2='rgb:eee8d5'
base3='rgb:fdf6e3'
yellow='rgb:b58900'
orange='rgb:cb4b16'
red='rgb:dc322f'
magenta='rgb:d33682'
violet='rgb:6c71c4'
blue='rgb:268bd2'
cyan='rgb:2aa198'
green='rgb:859900'
echo "
# code
face global value ${cyan}
face global type ${red}
face global variable ${blue}
face global module ${cyan}
face global function ${blue}
face global string ${cyan}
face global keyword ${green}
face global operator ${yellow}
face global attribute ${violet}
face global comment ${base01}
face global meta ${orange}
face global builtin default+b
# markup
face global title ${blue}+b
face global header ${blue}
face global bold ${base0}+b
face global italic ${base0}+i
face global mono ${base1}
face global block ${cyan}
face global link ${base1}
face global bullet ${yellow}
face global list ${green}
# builtin
face global Default ${base0},${base03}
face global PrimarySelection ${base03},${blue}
face global SecondarySelection ${base01},${base1}
face global PrimaryCursor ${base03},${base0}
face global SecondaryCursor ${base03},${base01}
face global PrimaryCursorEol ${base03},${base2}
face global SecondaryCursorEol ${base03},${base3}
face global LineNumbers ${base01},${base02}
face global LineNumberCursor ${base1},${base02}
face global LineNumbersWrapped ${base02},${base02}
face global MenuForeground ${base03},${yellow}
face global MenuBackground ${base1},${base02}
face global MenuInfo ${base01}
face global Information ${base02},${base1}
face global Error ${red},default+b
face global StatusLine ${base1},${base02}+b
face global StatusLineMode ${orange}
face global StatusLineInfo ${cyan}
face global StatusLineValue ${green}
face global StatusCursor ${base00},${base3}
face global Prompt ${yellow}+b
face global MatchingChar ${red},${base01}+b
face global BufferPadding ${base01},${base03}
"
}