summaryrefslogtreecommitdiff
path: root/colors
diff options
context:
space:
mode:
authorFrank LENORMAND <lenormf@gmail.com>2019-10-30 10:35:27 +0100
committerFrank LENORMAND <lenormf@gmail.com>2019-11-05 22:44:45 +0100
commit0c965c0bbd1debd581366789d0974a4a5906668c (patch)
tree6120de00d82beb1de5d968712c03a864959c95a9 /colors
parent294a5b72e6387cfa1e5bd314648939b1be9e7756 (diff)
colors: Implement a colorblind-friendly dark colorscheme
Diffstat (limited to 'colors')
-rw-r--r--colors/kaleidoscope-dark.kak131
1 files changed, 131 insertions, 0 deletions
diff --git a/colors/kaleidoscope-dark.kak b/colors/kaleidoscope-dark.kak
new file mode 100644
index 00000000..f59bf70d
--- /dev/null
+++ b/colors/kaleidoscope-dark.kak
@@ -0,0 +1,131 @@
+# Kaleidoscope: colorblind-friendly light colorscheme
+# https://personal.sron.nl/~pault/
+
+evaluate-commands %sh{
+ # NOTE: tone down black and white for aesthetics,
+ # ideally those should be pure #000 and #FFF
+ black="rgb:303030"
+ white="rgb:FDFDFD"
+
+ # Regular text
+ bright_blue="rgb:4477AA"
+ bright_cyan="rgb:66CCEE"
+ bright_green="rgb:228833"
+ bright_yellow="rgb:CCBB44"
+ bright_red="rgb:EE6677"
+ bright_purple="rgb:AA3377"
+ bright_grey="rgb:BBBBBB"
+
+ # Emphasis
+ high_contrast_blue="rgb:004488"
+ high_contrast_yellow="rgb:DDAA33"
+ high_contrast_red="rgb:BB5566"
+
+ # High contrast alternative text
+ vibrant_orange="rgb:EE7733"
+ vibrant_blue="rgb:0077BB"
+ vibrant_cyan="rgb:33BBEE"
+ vibrant_magenta="rgb:EE3377"
+ vibrant_red="rgb:CC3311"
+ vibrant_teal="rgb:009988"
+ vibrant_grey="rgb:BBBBBB"
+
+ # Darker text with no red
+ muted_rose="rgb:CC6677"
+ muted_indigo="rgb:332288"
+ muted_sand="rgb:DDCC77"
+ muted_green="rgb:117733"
+ muted_cyan="rgb:88CCEE"
+ muted_wine="rgb:882255"
+ muted_teal="rgb:44AA99"
+ muted_olive="rgb:999933"
+ muted_purple="rgb:AA4499"
+ muted_pale_grey="rgb:DDDDDD"
+
+ # Low contrast background colors
+ light_blue="rgb:77AADD"
+ light_orange="rgb:EE8866"
+ light_yellow="rgb:EEDD88"
+ light_pink="rgb:FFAABB"
+ light_cyan="rgb:99DDFF"
+ light_mint="rgb:44BB99"
+ light_pear="rgb:BBCC33"
+ light_olive="rgb:AAAA00"
+ light_grey="rgb:DDDDDD"
+
+ # Pale background colors, black foreground
+ pale_blue="rgb:BBCCEE"
+ pale_cyan="rgb:CCEEFF"
+ pale_green="rgb:CCDDAA"
+ pale_yellow="rgb:EEEEBB"
+ pale_red="rgb:FFCCCC"
+ pale_grey="rgb:DDDDDD"
+
+ # Dark background colors, white foreground
+ dark_blue="rgb:222255"
+ dark_cyan="rgb:225555"
+ dark_green="rgb:225522"
+ dark_yellow="rgb:666633"
+ dark_red="rgb:663333"
+ dark_grey="rgb:555555"
+
+ # NOTE: Do not use any color that hasn't been defined above (no hardcoding)
+ cat <<- EOF
+
+ # For Code
+ set-face global keyword ${vibrant_blue}
+ set-face global attribute ${muted_purple}
+ set-face global type ${vibrant_blue}
+ set-face global string ${muted_rose}
+ set-face global value ${light_pink}
+ set-face global meta ${light_olive}
+ set-face global builtin ${vibrant_blue}+b
+ set-face global module ${vibrant_orange}
+ set-face global comment ${bright_green}+i
+ set-face global function Default
+ set-face global operator Default
+ set-face global variable Default
+
+ # For markup
+ set-face global title ${vibrant_blue}+b
+ set-face global header ${muted_cyan}
+ set-face global block ${vibrant_magenta}
+ set-face global mono ${vibrant_magenta}
+ set-face global link ${bright_cyan}+u
+ set-face global list Default
+ set-face global bullet +b
+ set-face global bold +b
+ set-face global italic +i
+
+ # Built-in faces
+ set-face global Default ${white},${black}
+ set-face global PrimarySelection ${black},${pale_blue}+fg
+ set-face global SecondarySelection ${black},${pale_cyan}+fg
+ set-face global PrimaryCursor ${white},${high_contrast_blue}+fg
+ set-face global SecondaryCursor ${white},${dark_cyan}+fg
+ set-face global PrimaryCursorEol ${black},${vibrant_grey}+fg
+ set-face global SecondaryCursorEol ${black},${pale_grey}+fg
+
+ set-face global StatusLine ${black},${vibrant_grey}
+ set-face global StatusLineMode ${black},${light_blue}
+ set-face global StatusLineInfo ${black},${light_yellow}
+ set-face global StatusLineValue ${high_contrast_red},${light_yellow}+b
+ set-face global StatusCursor ${black},${light_orange}
+ set-face global Prompt ${black},${light_yellow}
+ set-face global MenuForeground ${black},${light_yellow}
+ set-face global MenuBackground ${black},${pale_grey}
+ set-face global MenuInfo ${vibrant_blue}+i
+
+ set-face global LineNumbers ${white},${dark_grey}
+ set-face global LineNumbersWrapped ${black},${vibrant_grey}+i
+ set-face global LineNumberCursor ${black},${pale_grey}+b
+ set-face global MatchingChar ${black},${vibrant_grey}
+ set-face global Whitespace ${dark_grey}+f
+ set-face global WrapMarker ${dark_grey}+f
+
+ set-face global Information ${black},${light_yellow}
+ set-face global Error ${white},${vibrant_red}
+ set-face global BufferPadding ${dark_grey}
+
+EOF
+}