kakoune

Fork of kakoune, an acceptable text editor
git clone git://git.laack.co/kakoune.git
Log | Files | Refs

kaleidoscope-light.kak (4444B)


      1 # Kaleidoscope: colorblind-friendly light colorscheme
      2 # https://personal.sron.nl/~pault/
      3 
      4 evaluate-commands %sh{
      5     # NOTE: tone down black and white for aesthetics,
      6     # ideally those should be pure #000 and #FFF
      7     black="rgb:1C1C1C"
      8     white="rgb:FDFDFD"
      9 
     10     # Regular text
     11     bright_blue="rgb:4477AA"
     12     bright_cyan="rgb:66CCEE"
     13     bright_green="rgb:228833"
     14     bright_yellow="rgb:CCBB44"
     15     bright_red="rgb:EE6677"
     16     bright_purple="rgb:AA3377"
     17     bright_grey="rgb:BBBBBB"
     18 
     19     # Emphasis
     20     high_contrast_blue="rgb:004488"
     21     high_contrast_yellow="rgb:DDAA33"
     22     high_contrast_red="rgb:BB5566"
     23 
     24     # High contrast alternative text
     25     vibrant_orange="rgb:EE7733"
     26     vibrant_blue="rgb:0077BB"
     27     vibrant_cyan="rgb:33BBEE"
     28     vibrant_magenta="rgb:EE3377"
     29     vibrant_red="rgb:CC3311"
     30     vibrant_teal="rgb:009988"
     31     vibrant_grey="rgb:BBBBBB"
     32 
     33     # Darker text with no red
     34     muted_rose="rgb:CC6677"
     35     muted_indigo="rgb:332288"
     36     muted_sand="rgb:DDCC77"
     37     muted_green="rgb:117733"
     38     muted_cyan="rgb:88CCEE"
     39     muted_wine="rgb:882255"
     40     muted_teal="rgb:44AA99"
     41     muted_olive="rgb:999933"
     42     muted_purple="rgb:AA4499"
     43     muted_pale_grey="rgb:DDDDDD"
     44 
     45     # Low contrast background colors
     46     light_blue="rgb:77AADD"
     47     light_orange="rgb:EE8866"
     48     light_yellow="rgb:EEDD88"
     49     light_pink="rgb:FFAABB"
     50     light_cyan="rgb:99DDFF"
     51     light_mint="rgb:44BB99"
     52     light_pear="rgb:BBCC33"
     53     light_olive="rgb:AAAA00"
     54     light_grey="rgb:DDDDDD"
     55 
     56     # Pale background colors, black foreground
     57     pale_blue="rgb:BBCCEE"
     58     pale_cyan="rgb:CCEEFF"
     59     pale_green="rgb:CCDDAA"
     60     pale_yellow="rgb:EEEEBB"
     61     pale_red="rgb:FFCCCC"
     62     pale_grey="rgb:DDDDDD"
     63 
     64     # Dark background colors, white foreground
     65     dark_blue="rgb:222255"
     66     dark_cyan="rgb:225555"
     67     dark_green="rgb:225522"
     68     dark_yellow="rgb:666633"
     69     dark_red="rgb:663333"
     70     dark_grey="rgb:555555"
     71 
     72     # NOTE: Do not use any color that hasn't been defined above (no hardcoding)
     73     cat <<EOF
     74 
     75     # For Code
     76     set-face global keyword ${muted_indigo}
     77     set-face global attribute ${muted_purple}
     78     set-face global type ${vibrant_blue}
     79     set-face global string ${muted_wine}
     80     set-face global value ${muted_rose}
     81     set-face global meta ${muted_olive}
     82     set-face global builtin ${muted_indigo}+b
     83     set-face global module ${vibrant_orange}
     84     set-face global comment ${muted_green}+i
     85     set-face global documentation comment
     86     set-face global function Default
     87     set-face global operator Default
     88     set-face global variable Default
     89 
     90     # For markup
     91     set-face global title ${muted_indigo}+b
     92     set-face global header ${high_contrast_blue}
     93     set-face global block ${vibrant_magenta}
     94     set-face global mono ${vibrant_red}
     95     set-face global link ${vibrant_blue}+u
     96     set-face global list Default
     97     set-face global bullet +b
     98 
     99     # Built-in faces
    100     set-face global Default ${black},${white}
    101     set-face global PrimarySelection ${black},${pale_blue}+fg
    102     set-face global SecondarySelection ${black},${pale_cyan}+fg
    103     set-face global PrimaryCursor ${white},${dark_blue}+fg
    104     set-face global SecondaryCursor ${white},${dark_cyan}+fg
    105     set-face global PrimaryCursorEol ${white},${dark_grey}+fg
    106     set-face global SecondaryCursorEol ${white},${vibrant_grey}+fg
    107 
    108     set-face global StatusLine ${white},${dark_grey}
    109     set-face global StatusLineMode ${black},${pale_blue}
    110     set-face global StatusLineInfo ${black},${muted_sand}
    111     set-face global StatusLineValue ${vibrant_orange},${muted_sand}+b
    112     set-face global StatusCursor ${black},${high_contrast_yellow}
    113     set-face global Prompt ${black},${muted_sand}
    114     set-face global MenuForeground ${black},${muted_sand}
    115     set-face global MenuBackground ${black},${pale_grey}
    116     set-face global MenuInfo ${high_contrast_blue}+i
    117 
    118     set-face global LineNumbers ${black},${pale_grey}
    119     set-face global LineNumbersWrapped ${black},${vibrant_grey}+i
    120     set-face global LineNumberCursor ${white},${dark_grey}+b
    121     set-face global MatchingChar ${white},${dark_grey}
    122     set-face global Whitespace ${vibrant_grey}+f
    123     set-face global WrapMarker ${vibrant_grey}+f
    124 
    125     set-face global Information ${black},${muted_sand}
    126     set-face global Error ${white},${vibrant_red}
    127     set-face global DiagnosticError ${high_contrast_red}
    128     set-face global DiagnosticWarning ${high_contrast_yellow}
    129     set-face global BufferPadding ${vibrant_grey}
    130 
    131 EOF
    132 }