Collection of duotone colorschemes for Neovim written in lua.
More from Base2Tone-nvim
12
vim.cmd [[ set background=dark ]]vim.cmd [[ colorscheme base2tone_forest_dark ]]
NORMALinit.luaunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
vim.cmd [[ set background=dark ]]vim.cmd [[ colorscheme base2tone_desert_dark ]]
NORMALinit.luaunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
vim.cmd [[ set background=dark ]]vim.cmd [[ colorscheme base2tone_pool_dark ]]
NORMALinit.luaunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
vim.cmd [[ set background=dark ]]vim.cmd [[ colorscheme base2tone_morning_dark ]]
NORMALinit.luaunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
vim.cmd [[ set background=dark ]]vim.cmd [[ colorscheme base2tone_garden_dark ]]
NORMALinit.luaunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
vim.cmd [[ set background=dark ]]vim.cmd [[ colorscheme base2tone_evening_dark ]]
NORMALinit.luaunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
vim.cmd [[ set background=dark ]]vim.cmd [[ colorscheme base2tone_cave_dark ]]
NORMALinit.luaunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
vim.cmd [[ set background=dark ]]vim.cmd [[ colorscheme base2tone_sea_dark ]]
NORMALinit.luaunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
vim.cmd [[ set background=dark ]]vim.cmd [[ colorscheme base2tone_motel_dark ]]
NORMALinit.luaunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
vim.cmd [[ set background=dark ]]vim.cmd [[ colorscheme base2tone_space_dark ]]
NORMALinit.luaunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
vim.cmd [[ set background=dark ]]vim.cmd [[ colorscheme base2tone_field_dark ]]
NORMALinit.luaunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
vim.cmd [[ set background=dark ]]vim.cmd [[ colorscheme base2tone_mall_dark ]]
NORMALinit.luaunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
vim.cmd [[ set background=dark ]]vim.cmd [[ colorscheme base2tone_heath_dark ]]
NORMALinit.luaunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
vim.cmd [[ set background=dark ]]vim.cmd [[ colorscheme base2tone_suburb_dark ]]
NORMALinit.luaunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
vim.cmd [[ set background=dark ]]vim.cmd [[ colorscheme base2tone_meadow_dark ]]
NORMALinit.luaunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
vim.cmd [[ set background=dark ]]vim.cmd [[ colorscheme base2tone_porch_dark ]]
NORMALinit.luaunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
vim.cmd [[ set background=dark ]]vim.cmd [[ colorscheme base2tone_earth_dark ]]
NORMALinit.luaunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
vim.cmd [[ set background=dark ]]vim.cmd [[ colorscheme base2tone_drawbridge_dark ]]
NORMALinit.luaunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
vim.cmd [[ set background=dark ]]vim.cmd [[ colorscheme base2tone_lake_dark ]]
NORMALinit.luaunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
vim.cmd [[ set background=light ]]vim.cmd [[ colorscheme base2tone_evening_light ]]
NORMALinit.luaunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
vim.cmd [[ set background=light ]]vim.cmd [[ colorscheme base2tone_meadow_light ]]
NORMALinit.luaunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
vim.cmd [[ set background=light ]]vim.cmd [[ colorscheme base2tone_suburb_light ]]
NORMALinit.luaunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
vim.cmd [[ set background=light ]]vim.cmd [[ colorscheme base2tone_earth_light ]]
NORMALinit.luaunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
vim.cmd [[ set background=light ]]vim.cmd [[ colorscheme base2tone_garden_light ]]
NORMALinit.luaunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
vim.cmd [[ set background=light ]]vim.cmd [[ colorscheme base2tone_motel_light ]]
NORMALinit.luaunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
vim.cmd [[ set background=light ]]vim.cmd [[ colorscheme base2tone_heath_light ]]
NORMALinit.luaunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
vim.cmd [[ set background=light ]]vim.cmd [[ colorscheme base2tone_lake_light ]]
NORMALinit.luaunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
vim.cmd [[ set background=light ]]vim.cmd [[ colorscheme base2tone_lavender_light ]]
NORMALinit.luaunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
vim.cmd [[ set background=light ]]vim.cmd [[ colorscheme base2tone_pool_light ]]
NORMALinit.luaunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
vim.cmd [[ set background=light ]]vim.cmd [[ colorscheme base2tone_space_light ]]
NORMALinit.luaunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
vim.cmd [[ set background=light ]]vim.cmd [[ colorscheme base2tone_desert_light ]]
NORMALinit.luaunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
vim.cmd [[ set background=light ]]vim.cmd [[ colorscheme base2tone_field_light ]]
NORMALinit.luaunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
vim.cmd [[ set background=light ]]vim.cmd [[ colorscheme base2tone_forest_light ]]
NORMALinit.luaunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
vim.cmd [[ set background=light ]]vim.cmd [[ colorscheme base2tone_sea_light ]]
NORMALinit.luaunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
vim.cmd [[ set background=light ]]vim.cmd [[ colorscheme base2tone_porch_light ]]
NORMALinit.luaunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
vim.cmd [[ set background=light ]]vim.cmd [[ colorscheme base2tone_morning_light ]]
NORMALinit.luaunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
vim.cmd [[ set background=light ]]vim.cmd [[ colorscheme base2tone_cave_light ]]
NORMALinit.luaunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
vim.cmd [[ set background=light ]]vim.cmd [[ colorscheme base2tone_drawbridge_light ]]
NORMALinit.luaunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12
12
vim.cmd [[ set background=light ]]vim.cmd [[ colorscheme base2tone_mall_light ]]
NORMALinit.luaunixutf-8☰ 0% 0:2
123456789101112
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')
let l:red = str2nr(substitute(l:raw_color, '(.{2}).{4}', '1', 'g'), 16)
let l:green = str2nr(substitute(l:raw_color, '.{2}(.{2}).{2}', '1', 'g'), 16)
let l:blue = str2nr(substitute(l:raw_color, '.{4}(.{2})', '1', 'g'), 16)
let l:brightness = ((l:red * 299) + (l:green * 587) + (l:blue * 114)) / 1000
return l:brightness > 155
endfunction
NORMALcode.vimunixutf-8☰50%6:12