From f7c5d2c201ed8f707aec017b7c12c0aa72de3f88 Mon Sep 17 00:00:00 2001 From: "Moritz F. Kuntze" Date: Wed, 10 Apr 2019 21:37:06 +0200 Subject: [PATCH 1/2] Added dark and light variants --- autoload/airline/themes/ayu_dark.vim | 34 +++++++++++++++++++++++++++ autoload/airline/themes/ayu_light.vim | 34 +++++++++++++++++++++++++++ 2 files changed, 68 insertions(+) create mode 100644 autoload/airline/themes/ayu_dark.vim create mode 100644 autoload/airline/themes/ayu_light.vim diff --git a/autoload/airline/themes/ayu_dark.vim b/autoload/airline/themes/ayu_dark.vim new file mode 100644 index 0000000..a8d83ab --- /dev/null +++ b/autoload/airline/themes/ayu_dark.vim @@ -0,0 +1,34 @@ +" Normal mode +" (Dark) +let s:N1 = [ '#3D424D' , '#C2D94C' , 59 , 149 ] " guifg guibg ctermfg ctermbg +let s:N2 = [ '#C2D94C' , '#304357' , 149 , 59 ] " guifg guibg ctermfg ctermbg +let s:N3 = [ '#B3B1AD' , '#0A0E14' , 145 , 16 ] " guifg guibg ctermfg ctermbg + +" Insert mode +let s:I1 = [ '#3D424D' , '#39BAE6' , 59 , 74 ] " guifg guibg ctermfg ctermbg +let s:I2 = [ '#39BAE6' , '#304357' , 74 , 59 ] " guifg guibg ctermfg ctermbg +let s:I3 = [ '#B3B1AD' , '#0A0E14' , 145 , 16 ] " guifg guibg ctermfg ctermbg + +" Visual mode +let s:V1 = [ '#3D424D' , '#FF8F40' , 59 , 209 ] " guifg guibg ctermfg ctermbg +let s:V2 = [ '#FF8F40' , '#304357' , 209 , 59 ] " guifg guibg ctermfg ctermbg +let s:V3 = [ '#B3B1AD' , '#0A0E14' , 145 , 16 ] " guifg guibg ctermfg ctermbg + +" Replace mode +let s:RE = [ '#3D424D' , '#FF3333' , 59 , 203 ] " guifg guibg ctermfg ctermbg + +let g:airline#themes#ayu_dark#palette = {} + +let g:airline#themes#ayu_dark#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3) + +let g:airline#themes#ayu_dark#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3) +let g:airline#themes#ayu_dark#palette.insert_replace = { + \ 'airline_a': [ s:RE[0] , s:I1[1] , s:RE[1] , s:I1[3] , '' ] } + +let g:airline#themes#ayu_dark#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3) + +let g:airline#themes#ayu_dark#palette.replace = copy(g:airline#themes#ayu_dark#palette.normal) +let g:airline#themes#ayu_dark#palette.replace.airline_a = [ s:RE[0] , s:RE[1] , s:RE[2] , s:RE[3] , '' ] + +let s:IA = [ s:N1[1] , s:N3[1] , s:N1[3] , s:N3[3] , '' ] +let g:airline#themes#ayu_dark#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA) diff --git a/autoload/airline/themes/ayu_light.vim b/autoload/airline/themes/ayu_light.vim new file mode 100644 index 0000000..bd3b695 --- /dev/null +++ b/autoload/airline/themes/ayu_light.vim @@ -0,0 +1,34 @@ +" Normal mode +" (Dark) +let s:N1 = [ '#6C7680' , '#86B300' , 66 , 106 ] " guifg guibg ctermfg ctermbg +let s:N2 = [ '#86B300' , '#6C7680' , 106 , 66 ] " guifg guibg ctermfg ctermbg +let s:N3 = [ '#6C7680' , '#FAFAFA' , 66 , 231 ] " guifg guibg ctermfg ctermbg + +" Insert mode +let s:I1 = [ '#6C7680' , '#55B4D4' , 66 , 74 ] " guifg guibg ctermfg ctermbg +let s:I2 = [ '#55B4D4' , '#6C7680' , 74 , 66 ] " guifg guibg ctermfg ctermbg +let s:I3 = [ '#6C7680' , '#FAFAFA' , 66 , 231 ] " guifg guibg ctermfg ctermbg + +" Visual mode +let s:V1 = [ '#6C7680' , '#FA8D3E' , 66 , 209 ] " guifg guibg ctermfg ctermbg +let s:V2 = [ '#FA8D3E' , '#6C7680' , 209 , 66 ] " guifg guibg ctermfg ctermbg +let s:V3 = [ '#6C7680' , '#FAFAFA' , 66 , 231 ] " guifg guibg ctermfg ctermbg + +" Replace mode +let s:RE = [ '#6C7680' , '#F51818' , 66 , 196 ] " guifg guibg ctermfg ctermbg + +let g:airline#themes#ayu_light#palette = {} + +let g:airline#themes#ayu_light#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3) + +let g:airline#themes#ayu_light#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3) +let g:airline#themes#ayu_light#palette.insert_replace = { + \ 'airline_a': [ s:RE[0] , s:I1[1] , s:RE[1] , s:I1[3] , '' ] } + +let g:airline#themes#ayu_light#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3) + +let g:airline#themes#ayu_light#palette.replace = copy(g:airline#themes#ayu_light#palette.normal) +let g:airline#themes#ayu_light#palette.replace.airline_a = [ s:RE[0] , s:RE[1] , s:RE[2] , s:RE[3] , '' ] + +let s:IA = [ s:N1[1] , s:N3[1] , s:N1[3] , s:N3[3] , '' ] +let g:airline#themes#ayu_light#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA) From 3685711d89e7d4b7f8e982978f228adb739ef26a Mon Sep 17 00:00:00 2001 From: "Moritz F. Kuntze" Date: Wed, 10 Apr 2019 21:54:29 +0200 Subject: [PATCH 2/2] Added new Ayu variants to documentation --- doc/airline-themes.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/airline-themes.txt b/doc/airline-themes.txt index 864097f..53ea7c1 100644 --- a/doc/airline-themes.txt +++ b/doc/airline-themes.txt @@ -29,7 +29,9 @@ Currently this repository contains the following themes: * angr * atomic * aurora + * ayu_light * ayu_mirage + * ayu_dark * badcat * badwolf * base16 (|airline-theme-base16|)