vimcolorschemes
view mustardfrog/pinkish_day on Github

mustardfrog
pinkish_day

2

Another pink theme to make your day better

pinkish_day
neovim
1
2
vim.o.background = ""
vim.cmd.colorscheme ""
NORMALinit.luaunixutf-80%0:2
1
2
3
4
5
6
7
8
9
10
11
12
" Returns true if the color hex value is light
function! IsHexColorLight(color) abort
let l:raw_color = trim(a:color, '#')

let l:red = str2nr(substitute(l:raw_color, '.{0}(.{2})', '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-850%6:12