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
|
" Foreground colors
let b:black = { "gui": "#303030", "cterm": "236" }
let b:red_fg = { "gui": "#5f0000", "cterm": "52" }
" Background colors
let b:light_gray = { "gui": "#eeeeee", "cterm": "255" }
let b:md_gray = { "gui": "#dadada", "cterm": "253" }
let b:dk_gray = { "gui": "#c6c6c6", "cterm": "251" }
let b:cyan_bg = { 'gui': '#afd7d7', 'cterm': '152' }
let b:red_bg = { 'gui': '#ff8787', 'cterm': '210' }
let b:gold_bg = { 'gui': '#ffd787', 'cterm': '222' }
" Color sets
let b:darker = [ b:black.gui , b:dk_gray.gui , b:black.cterm , b:dk_gray.cterm ]
let b:dark = [ b:black.gui , b:md_gray.gui , b:black.cterm , b:md_gray.cterm ]
let b:light = [ b:black.gui , b:light_gray.gui , b:black.cterm , b:light_gray.cterm ]
let b:red = [ b:black.gui , b:red_bg.gui , b:black.cterm , b:red_bg.cterm ]
let b:gold = [ b:black.gui , b:gold_bg.gui , b:black.cterm , b:gold_bg.cterm ]
let b:cyan = [ b:black.gui , b:cyan_bg.gui , b:black.cterm , b:cyan_bg.cterm ]
let g:airline#themes#mono#palette = {}
let g:airline#themes#mono#palette.accents = {
\ 'red': [ b:red_fg.gui , '' , b:red_fg.cterm , '' ],
\ }
" Normal Mode
let g:airline#themes#mono#palette.normal = airline#themes#generate_color_map(b:darker, b:dark, b: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 = b:gold
" 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 = b: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 = b:cyan
" Inactive
let g:airline#themes#mono#palette.inactive = airline#themes#generate_color_map(b:light, b:light, b:light)
|