1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
" Foreground colors
let s:black = { "gui": "#303030", "cterm": "236" }
let s:light_black = { "gui": "#585858", "cterm": "240" }
let s:blue_fg = { "gui": "#00005f", "cterm": "17" }
let s:green_fg = { "gui": "#005f00", "cterm": "22" }
let s:cyan_fg = { "gui": "#005f5f", "cterm": "23" }
let s:red_fg = { "gui": "#5f0000", "cterm": "52" }
let s:purple_fg = { "gui": "#5f005f", "cterm": "53" }
let s:yellow_fg = { "gui": "#5f5f00", "cterm": "58" }
" Background colors
let s:white = { "gui": "#ffffff", "cterm": "231" }
let s:light_gray = { "gui": "#eeeeee", "cterm": "255" }
let s:md_gray = { "gui": "#dadada", "cterm": "253" }
let s:blue_bg = { 'gui': '#d7d7ff', 'cterm': '189' }
let s:green_bg = { 'gui': '#d7ffd7', 'cterm': '194' }
let s:cyan_bg = { 'gui': '#d7ffff', 'cterm': '195' }
let s:red_bg = { 'gui': '#ffd7d7', 'cterm': '224' }
let s:purple_bg = { 'gui': '#ffd7ff', 'cterm': '225' }
let s:yellow_bg = { 'gui': '#ffffd7', 'cterm': '230' }
" Color sets
let s:dark = [ s:black.gui , s:md_gray.gui , s:black.cterm , s:md_gray.cterm ]
let s:light = [ s:black.gui , s:light_gray.gui , s:black.cterm , s:light_gray.cterm ]
let s:blue = [ s:black.gui , s:blue_bg.gui , s:black.cterm , s:blue_bg.cterm ]
let s:yellow = [ s:black.gui , s:yellow_bg.gui , s:black.cterm , s:yellow_bg.cterm ]
let s:red = [ s:black.gui , s:red_bg.gui , s:black.cterm , s:red_bg.cterm ]
let s:green = [ s:black.gui , s:green_bg.gui , s:black.cterm , s:green_bg.cterm ]
let g:airline#themes#mono#palette = {}
let g:airline#themes#mono#palette.accents = {
\ 'red': [ s:red_fg.gui , '' , s:red_fg.cterm , '' ],
\ }
" Normal Mode
let g:airline#themes#mono#palette.normal = airline#themes#generate_color_map(s:blue, s:dark, s:light)
" Insert Mode
let g:airline#themes#mono#palette.insert = copy(g:airline#themes#mono#palette.normal)
let g:airline#themes#mono#palette.insert.airline_a = s:yellow
let g:airline#themes#mono#palette.insert.airline_z = s:yellow
" Replace Mode
let g:airline#themes#mono#palette.replace = copy(g:airline#themes#mono#palette.normal)
let g:airline#themes#mono#palette.replace.airline_a = s:red
let g:airline#themes#mono#palette.replace.airline_z = s:red
" Visual Mode
let g:airline#themes#mono#palette.visual = copy(g:airline#themes#mono#palette.normal)
let g:airline#themes#mono#palette.visual.airline_a = s:green
let g:airline#themes#mono#palette.visual.airline_z = s:green
" Inactive
let g:airline#themes#mono#palette.inactive = airline#themes#generate_color_map(s:light, s:light, s:light)
|