Skip to content

Instantly share code, notes, and snippets.

@zfarbp
Last active March 15, 2020 21:33
Show Gist options
  • Save zfarbp/cb26437c0c4fdab924e0374dd29f0ce9 to your computer and use it in GitHub Desktop.
Save zfarbp/cb26437c0c4fdab924e0374dd29f0ce9 to your computer and use it in GitHub Desktop.
zfarbp_lightline_theme
" =============================================================================
" Filename: autoload/lightline/colorscheme/zfarbp_lightline_theme.vim
" Author: zfarbp
" License: MIT License
" Last Change: 2020/03/15
" =============================================================================
" color definitions
" [ "gui", cterm ]
let s:base03 = [ '#242424', 235 ]
let s:base023 = [ '#353535 ', 236 ]
let s:base02 = [ '#444444 ', 238 ]
let s:base01 = [ '#585858', 240 ]
let s:base00 = [ '#666666', 242 ]
let s:base0 = [ '#808080', 244 ]
let s:base1 = [ '#969696', 247 ]
let s:base2 = [ '#a8a8a8', 248 ]
let s:base3 = [ '#d0d0d0', 252 ]
let s:gray = [ '#bcbcbc', 250 ]
let s:yellow = [ '#cae682', 180 ]
let s:orange = [ '#e5786d', 173 ]
let s:red = [ '#e5786d', 203 ]
let s:purple = [ '#9B5CF2', 135 ]
let s:blue = [ '#8ac6f2', 117 ]
let s:cyan = s:blue
let s:green = [ '#87FEAF', 121 ]
" templating "
let s:p = {'normal': {}, 'inactive': {}, 'insert': {}, 'replace': {}, 'visual': {}, 'tabline': {}}
let s:p.normal.left = [ [ s:base02, s:green ], [ s:green, s:base01 ] ]
let s:p.normal.right = [ [ s:green, s:base0 ], [ s:green, s:base01 ] ]
let s:p.inactive.right = [ [ s:base023, s:base01 ], [ s:base00, s:base02 ] ]
let s:p.inactive.left = [ [ s:base1, s:base02 ], [ s:base00, s:base023 ] ]
let s:p.insert.left = [ [ s:gray, s:purple ], [ s:green, s:base01 ] ]
let s:p.replace.left = [ [ s:base023, s:red ], [ s:base3, s:base01 ] ]
let s:p.visual.left = [ [ s:gray, s:purple ], [ s:base3, s:base01 ] ]
let s:p.normal.middle = [ [ s:base2, s:base02 ] ]
let s:p.inactive.middle = [ [ s:base1, s:base023 ] ]
let s:p.tabline.left = [ [ s:green, s:base00 ] ]
let s:p.tabline.tabsel = [ [ s:green, s:base03 ] ]
let s:p.tabline.middle = [ [ s:purple, s:base02 ] ]
let s:p.tabline.right = [ [ s:purple, s:base00 ] ]
let s:p.normal.error = [ [ s:base03, s:red ] ]
let s:p.normal.warning = [ [ s:base023, s:yellow ] ]
let g:lightline#colorscheme#zfarbp_lightline_theme#palette = lightline#colorscheme#flatten(s:p)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment