home/colors/solarized-light.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 Light
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 ${base1}
face global meta ${orange}
face global builtin default+b
# markup
face global title ${blue}+b
face global header ${blue}
face global bold ${base01}+b
face global italic ${base01}+i
face global mono ${base1}
face global block ${cyan}
face global link ${base01}
face global bullet ${yellow}
face global list ${green}
# builtin
face global Default ${base00},${base3}
face global PrimarySelection ${base3},${blue}
face global SecondarySelection ${base1},${base01}
face global PrimaryCursor ${base3},${base00}
face global SecondaryCursor ${base3},${base1}
face global PrimaryCursorEol ${base3},${yellow}
face global SecondaryCursorEol ${base3},${orange}
face global LineNumbers ${base1},${base2}
face global LineNumberCursor ${base01},${base2}
face global LineNumbersWrapped ${base2},${base2}
face global MenuForeground ${base3},${yellow}
face global MenuBackground ${base01},${base2}
face global MenuInfo ${base1}
face global Information ${base2},${base1}
face global Error ${red},default+b
face global StatusLine ${base01},${base2}+b
face global StatusLineMode ${orange}
face global StatusLineInfo ${cyan}
face global StatusLineValue ${green}
face global StatusCursor ${base0},${base03}
face global Prompt ${yellow}+b
face global MatchingChar ${red},${base2}+b
face global BufferPadding ${base1},${base3}
"
}