-" Color similarity table (light background)
-" black: GUI=#000000/rgb( 0, 0, 0) Term= 16 #000000/rgb( 0, 0, 0) [delta=0.000000]
-" bg4: GUI=#a8a8a8/rgb(168,168,168) Term=248 #a8a8a8/rgb(168,168,168) [delta=0.000000]
-" brightwhite: GUI=#ffffff/rgb(255,255,255) Term=231 #ffffff/rgb(255,255,255) [delta=0.000000]
-" bg3: GUI=#bdbdbd/rgb(189,189,189) Term=250 #bcbcbc/rgb(188,188,188) [delta=0.262501]
-" white: GUI=#dcdcdc/rgb(220,220,220) Term=253 #dadada/rgb(218,218,218) [delta=0.455975]
-" fg0: GUI=#141414/rgb( 20, 20, 20) Term=233 #121212/rgb( 18, 18, 18) [delta=0.515624]
-" bg1: GUI=#ebebeb/rgb(235,235,235) Term=255 #eeeeee/rgb(238,238,238) [delta=0.636113]
-" fg2: GUI=#505050/rgb( 80, 80, 80) Term=239 #4e4e4e/rgb( 78, 78, 78) [delta=0.689525]
-" bg2: GUI=#d3d3d3/rgb(211,211,211) Term=252 #d0d0d0/rgb(208,208,208) [delta=0.713123]
-" bg0: GUI=#fbfbfb/rgb(251,251,251) Term=231 #ffffff/rgb(255,255,255) [delta=0.795722]
-" fg1: GUI=#333333/rgb( 51, 51, 51) Term=236 #303030/rgb( 48, 48, 48) [delta=0.961402]
-" brightblack: GUI=#696969/rgb(105,105,105) Term=242 #6c6c6c/rgb(108,108,108) [delta=1.151169]
-" fg4: GUI=#707070/rgb(112,112,112) Term=242 #6c6c6c/rgb(108,108,108) [delta=1.558945]
-" darkred: GUI=#a30000/rgb(163, 0, 0) Term=124 #af0000/rgb(175, 0, 0) [delta=2.390642]
-" brightcyan: GUI=#b2dfdb/rgb(178,223,219) Term=152 #afd7d7/rgb(175,215,215) [delta=2.696709]
-" brightgreen: GUI=#b3ffcc/rgb(179,255,204) Term=158 #afffd7/rgb(175,255,215) [delta=3.041362]
-" green: GUI=#47b36b/rgb( 71,179,107) Term= 35 #00af5f/rgb( 0,175, 95) [delta=3.445808]
-" darkblue: GUI=#266280/rgb( 38, 98,128) Term= 24 #005f87/rgb( 0, 95,135) [delta=3.714150]
-" brightyellow: GUI=#ffd699/rgb(255,214,153) Term=222 #ffd787/rgb(255,215,135) [delta=4.020486]
-" brightred: GUI=#ff9999/rgb(255,153,153) Term=210 #ff8787/rgb(255,135,135) [delta=4.179329]
-" darkyellow: GUI=#cc7a00/rgb(204,122, 0) Term=172 #d78700/rgb(215,135, 0) [delta=4.383031]
-" darkmagenta: GUI=#4527a0/rgb( 69, 39,160) Term= 55 #5f00af/rgb( 95, 0,175) [delta=5.173706]
-" brightmagenta: GUI=#d1c4e9/rgb(209,196,233) Term=189 #d7d7ff/rgb(215,215,255) [delta=5.536146]
-" yellow: GUI=#ff9900/rgb(255,153, 0) Term=208 #ff8700/rgb(255,135, 0) [delta=6.094939]
-" darkcyan: GUI=#00695c/rgb( 0,105, 92) Term= 23 #005f5f/rgb( 0, 95, 95) [delta=6.224963]
-" darkgreen: GUI=#268044/rgb( 38,128, 68) Term= 29 #00875f/rgb( 0,135, 95) [delta=6.622343]
-" magenta: GUI=#ab47bc/rgb(171, 71,188) Term=133 #af5faf/rgb(175, 95,175) [delta=6.806495]
-" cyan: GUI=#009688/rgb( 0,150,136) Term= 30 #008787/rgb( 0,135,135) [delta=7.127207]
-" blue: GUI=#5995b3/rgb( 89,149,179) Term= 31 #0087af/rgb( 0,135,175) [delta=7.422120]
-" red: GUI=#b72e2e/rgb(183, 46, 46) Term=124 #af0000/rgb(175, 0, 0) [delta=8.068751]
-" brightblue: GUI=#cceeff/rgb(204,238,255) Term=195 #d7ffff/rgb(215,255,255) [delta=9.196998]
-if !has('gui_running') && get(g:, 'artesanal_transp_bg', 0)
- hi Normal ctermfg=236 ctermbg=NONE guifg=#333333 guibg=NONE guisp=NONE cterm=NONE gui=NONE
- hi CursorLineNr ctermfg=208 ctermbg=NONE guifg=#ff9900 guibg=NONE guisp=NONE cterm=NONE gui=NONE
- hi FoldColumn ctermfg=242 ctermbg=NONE guifg=#696969 guibg=NONE guisp=NONE cterm=NONE gui=NONE
- hi SignColumn ctermfg=239 ctermbg=NONE guifg=#505050 guibg=NONE guisp=NONE cterm=NONE gui=NONE
- hi VertSplit ctermfg=250 ctermbg=NONE guifg=#bdbdbd guibg=NONE guisp=NONE cterm=NONE gui=NONE
-else
- hi Normal ctermfg=236 ctermbg=231 guifg=#333333 guibg=#fbfbfb guisp=NONE cterm=NONE gui=NONE
- hi CursorLineNr ctermfg=208 ctermbg=255 guifg=#ff9900 guibg=#ebebeb guisp=NONE cterm=NONE gui=NONE
- hi FoldColumn ctermfg=242 ctermbg=255 guifg=#696969 guibg=#ebebeb guisp=NONE cterm=NONE gui=NONE
- hi SignColumn ctermfg=239 ctermbg=255 guifg=#505050 guibg=#ebebeb guisp=NONE cterm=NONE gui=NONE
- hi VertSplit ctermfg=250 ctermbg=231 guifg=#bdbdbd guibg=#fbfbfb guisp=NONE cterm=NONE gui=NONE
-endif
-hi ColorColumn ctermfg=NONE ctermbg=255 guifg=NONE guibg=#ebebeb guisp=NONE cterm=NONE gui=NONE
-hi Conceal ctermfg=31 ctermbg=NONE guifg=#5995b3 guibg=NONE guisp=NONE cterm=NONE gui=NONE
-hi Cursor ctermfg=NONE ctermbg=NONE guifg=NONE guibg=NONE guisp=NONE cterm=NONE,reverse gui=NONE,reverse
-hi! link CursorColumn CursorLine
-hi CursorLine ctermfg=NONE ctermbg=255 guifg=NONE guibg=#ebebeb guisp=NONE cterm=NONE,bold,italic gui=NONE,bold,italic
-hi DiffAdd ctermfg=242 ctermbg=158 guifg=#707070 guibg=#b3ffcc guisp=NONE cterm=NONE gui=NONE
-hi DiffChange ctermfg=242 ctermbg=195 guifg=#707070 guibg=#cceeff guisp=NONE cterm=NONE gui=NONE
-hi DiffDelete ctermfg=242 ctermbg=210 guifg=#707070 guibg=#ff9999 guisp=NONE cterm=NONE gui=NONE
-hi DiffText ctermfg=242 ctermbg=158 guifg=#707070 guibg=#b3ffcc guisp=NONE cterm=NONE gui=NONE
-hi Directory ctermfg=31 ctermbg=NONE guifg=#5995b3 guibg=NONE guisp=NONE cterm=NONE,bold gui=NONE,bold
-hi EndOfBuffer ctermfg=231 ctermbg=NONE guifg=#fbfbfb guibg=NONE guisp=NONE cterm=NONE gui=NONE
-hi Error ctermfg=231 ctermbg=124 guifg=#fbfbfb guibg=#b72e2e guisp=NONE cterm=NONE gui=NONE
-hi! link ErrorMsg Error
-hi Folded ctermfg=242 ctermbg=255 guifg=#696969 guibg=#ebebeb guisp=NONE cterm=NONE gui=NONE,italic
-hi IncSearch ctermfg=222 ctermbg=16 guifg=#ffd699 guibg=#000000 guisp=NONE cterm=NONE,reverse gui=NONE,reverse
-hi LineNr ctermfg=250 ctermbg=255 guifg=#bdbdbd guibg=#ebebeb guisp=NONE cterm=NONE gui=NONE
-hi MatchParen ctermfg=NONE ctermbg=252 guifg=NONE guibg=#d3d3d3 guisp=NONE cterm=NONE,bold gui=NONE,bold
-hi ModeMsg ctermfg=31 ctermbg=NONE guifg=#5995b3 guibg=NONE guisp=NONE cterm=NONE gui=NONE
-hi MoreMsg ctermfg=35 ctermbg=NONE guifg=#47b36b guibg=NONE guisp=NONE cterm=NONE gui=NONE
-hi NonText ctermfg=248 ctermbg=NONE guifg=#a8a8a8 guibg=NONE guisp=NONE cterm=NONE gui=NONE
-hi Pmenu ctermfg=236 ctermbg=252 guifg=#333333 guibg=#d3d3d3 guisp=NONE cterm=NONE gui=NONE
-hi PmenuSbar ctermfg=NONE ctermbg=252 guifg=NONE guibg=#d3d3d3 guisp=NONE cterm=NONE gui=NONE
-hi PmenuSel ctermfg=255 ctermbg=31 guifg=#ebebeb guibg=#5995b3 guisp=NONE cterm=NONE,bold gui=NONE,bold
-hi PmenuThumb ctermfg=NONE ctermbg=248 guifg=NONE guibg=#a8a8a8 guisp=NONE cterm=NONE gui=NONE
-hi Question ctermfg=172 ctermbg=NONE guifg=#cc7a00 guibg=NONE guisp=NONE cterm=NONE gui=NONE
-hi! link QuickFixLine Search
-hi Search ctermfg=222 ctermbg=16 guifg=#ffd699 guibg=#000000 guisp=NONE cterm=NONE,reverse gui=NONE,reverse
-hi SpecialKey ctermfg=248 ctermbg=NONE guifg=#a8a8a8 guibg=NONE guisp=NONE cterm=NONE gui=NONE
-hi SpellBad ctermfg=124 ctermbg=NONE guifg=#b72e2e guibg=NONE guisp=#b72e2e cterm=NONE,underline gui=NONE,italic,undercurl
-hi SpellCap ctermfg=31 ctermbg=NONE guifg=#5995b3 guibg=NONE guisp=#5995b3 cterm=NONE,underline gui=NONE,italic,undercurl
-hi SpellLocal ctermfg=30 ctermbg=NONE guifg=#009688 guibg=NONE guisp=#009688 cterm=NONE,underline gui=NONE,italic,undercurl
-hi SpellRare ctermfg=133 ctermbg=NONE guifg=#ab47bc guibg=NONE guisp=#ab47bc cterm=NONE,underline gui=NONE,italic,undercurl
-hi StatusLine ctermfg=252 ctermbg=236 guifg=#d3d3d3 guibg=#333333 guisp=NONE cterm=NONE,reverse gui=NONE,reverse
-hi StatusLineNC ctermfg=255 ctermbg=239 guifg=#ebebeb guibg=#505050 guisp=NONE cterm=NONE,reverse gui=NONE,reverse
-hi! link StatusLineTerm StatusLine
-hi! link StatusLineTermNC StatusLineNC
-hi! link TabLine TabLineFill
-hi TabLineFill ctermfg=239 ctermbg=250 guifg=#505050 guibg=#bdbdbd guisp=NONE cterm=NONE gui=NONE
-hi TabLineSel ctermfg=236 ctermbg=255 guifg=#333333 guibg=#ebebeb guisp=NONE cterm=NONE gui=NONE
-hi Title ctermfg=233 ctermbg=NONE guifg=#141414 guibg=NONE guisp=NONE cterm=NONE,bold gui=NONE,bold
-hi Visual ctermfg=NONE ctermbg=255 guifg=NONE guibg=#ebebeb guisp=NONE cterm=NONE gui=NONE
-hi! link VisualNOS Visual
-hi WarningMsg ctermfg=124 ctermbg=NONE guifg=#b72e2e guibg=NONE guisp=NONE cterm=NONE gui=NONE
-hi WildMenu ctermfg=31 ctermbg=252 guifg=#5995b3 guibg=#d3d3d3 guisp=NONE cterm=NONE,bold gui=NONE,bold
-hi Boolean ctermfg=133 ctermbg=NONE guifg=#ab47bc guibg=NONE guisp=NONE cterm=NONE gui=NONE
-hi Character ctermfg=133 ctermbg=NONE guifg=#ab47bc guibg=NONE guisp=NONE cterm=NONE gui=NONE
-hi Comment ctermfg=242 ctermbg=NONE guifg=#696969 guibg=NONE guisp=NONE cterm=NONE gui=NONE,italic
-hi Conditional ctermfg=124 ctermbg=NONE guifg=#b72e2e guibg=NONE guisp=NONE cterm=NONE gui=NONE
-hi Constant ctermfg=133 ctermbg=NONE guifg=#ab47bc guibg=NONE guisp=NONE cterm=NONE gui=NONE
-hi Define ctermfg=30 ctermbg=NONE guifg=#009688 guibg=NONE guisp=NONE cterm=NONE gui=NONE
-hi Debug ctermfg=124 ctermbg=NONE guifg=#b72e2e guibg=NONE guisp=NONE cterm=NONE gui=NONE
-hi! link Delimiter Statement
-hi Exception ctermfg=124 ctermbg=NONE guifg=#b72e2e guibg=NONE guisp=NONE cterm=NONE gui=NONE
-hi Float ctermfg=133 ctermbg=NONE guifg=#ab47bc guibg=NONE guisp=NONE cterm=NONE gui=NONE
-hi Function ctermfg=31 ctermbg=NONE guifg=#5995b3 guibg=NONE guisp=NONE cterm=NONE,bold gui=NONE,bold
-hi Identifier ctermfg=30 ctermbg=NONE guifg=#009688 guibg=NONE guisp=NONE cterm=NONE gui=NONE
-hi Ignore ctermfg=fg ctermbg=NONE guifg=fg guibg=NONE guisp=NONE cterm=NONE gui=NONE
-hi Include ctermfg=30 ctermbg=NONE guifg=#009688 guibg=NONE guisp=NONE cterm=NONE gui=NONE
-hi Keyword ctermfg=124 ctermbg=NONE guifg=#b72e2e guibg=NONE guisp=NONE cterm=NONE gui=NONE
-hi! link Label Statement
-hi Macro ctermfg=30 ctermbg=NONE guifg=#009688 guibg=NONE guisp=NONE cterm=NONE gui=NONE
-hi Number ctermfg=133 ctermbg=NONE guifg=#ab47bc guibg=NONE guisp=NONE cterm=NONE gui=NONE
-hi! link Operator Normal
-hi PreCondit ctermfg=30 ctermbg=NONE guifg=#009688 guibg=NONE guisp=NONE cterm=NONE gui=NONE
-hi PreProc ctermfg=30 ctermbg=NONE guifg=#009688 guibg=NONE guisp=NONE cterm=NONE gui=NONE
-hi Repeat ctermfg=124 ctermbg=NONE guifg=#b72e2e guibg=NONE guisp=NONE cterm=NONE gui=NONE
-hi SpecialChar ctermfg=124 ctermbg=NONE guifg=#b72e2e guibg=NONE guisp=NONE cterm=NONE gui=NONE
-hi SpecialComment ctermfg=124 ctermbg=NONE guifg=#b72e2e guibg=NONE guisp=NONE cterm=NONE gui=NONE
-hi Statement ctermfg=124 ctermbg=NONE guifg=#b72e2e guibg=NONE guisp=NONE cterm=NONE gui=NONE
-hi StorageClass ctermfg=35 ctermbg=NONE guifg=#47b36b guibg=NONE guisp=NONE cterm=NONE gui=NONE
-hi Special ctermfg=208 ctermbg=NONE guifg=#ff9900 guibg=NONE guisp=NONE cterm=NONE gui=NONE
-hi String ctermfg=35 ctermbg=NONE guifg=#47b36b guibg=NONE guisp=NONE cterm=NONE gui=NONE
-hi Structure ctermfg=30 ctermbg=NONE guifg=#009688 guibg=NONE guisp=NONE cterm=NONE gui=NONE
-hi! link Tag Special
-hi Todo ctermfg=fg ctermbg=231 guifg=fg guibg=#fbfbfb guisp=NONE cterm=NONE,bold gui=NONE,bold,italic
-hi Type ctermfg=30 ctermbg=NONE guifg=#009688 guibg=NONE guisp=NONE cterm=NONE gui=NONE
-hi Typedef ctermfg=30 ctermbg=NONE guifg=#009688 guibg=NONE guisp=NONE cterm=NONE gui=NONE
-hi Underlined ctermfg=31 ctermbg=NONE guifg=#5995b3 guibg=NONE guisp=NONE cterm=NONE,underline gui=NONE,underline
-hi! link lCursor Cursor
-hi CursorIM ctermfg=NONE ctermbg=NONE guifg=NONE guibg=NONE guisp=NONE cterm=NONE,reverse gui=NONE,reverse
-hi ToolbarLine ctermfg=NONE ctermbg=250 guifg=NONE guibg=#bdbdbd guisp=NONE cterm=NONE gui=NONE
-hi ToolbarButton ctermfg=233 ctermbg=250 guifg=#141414 guibg=#bdbdbd guisp=NONE cterm=NONE,bold gui=NONE,bold
-if get(g:, "artesanal_italic", 0)
- hi Comment cterm=italic
- hi Folded cterm=italic
- hi SpellBad cterm=italic,underline
- hi SpellCap cterm=italic,underline
- hi SpellLocal cterm=italic,underline
- hi SpellRare cterm=italic,underline
- hi Todo cterm=italic
+if s:t_Co >= 256
+ if &background ==# 'dark'
+ if !has('gui_running') && get(g:, 'artesanal_transp_bg', 0)
+ hi Normal ctermfg=254 ctermbg=NONE cterm=NONE
+ hi CursorLineNr ctermfg=228 ctermbg=NONE cterm=NONE
+ hi FoldColumn ctermfg=59 ctermbg=NONE cterm=NONE
+ hi SignColumn ctermfg=252 ctermbg=NONE cterm=NONE
+ hi VertSplit ctermfg=242 ctermbg=NONE cterm=NONE
+ else
+ hi Normal ctermfg=254 ctermbg=236 cterm=NONE
+ if !has('patch-8.0.0616') && !has('nvim') " Fix for Vim bug
+ set background=dark
+ endif
+ hi CursorLineNr ctermfg=228 ctermbg=238 cterm=NONE
+ hi FoldColumn ctermfg=59 ctermbg=238 cterm=NONE
+ hi SignColumn ctermfg=252 ctermbg=238 cterm=NONE
+ hi VertSplit ctermfg=242 ctermbg=236 cterm=NONE
+ endif
+ hi ColorColumn ctermfg=NONE ctermbg=238 cterm=NONE
+ hi Conceal ctermfg=67 ctermbg=NONE cterm=NONE
+ hi Cursor ctermfg=NONE ctermbg=NONE cterm=reverse
+ hi! link CursorColumn ColorColumn
+ hi! link CursorLine ColorColumn
+ hi DiffAdd ctermfg=152 ctermbg=233 cterm=reverse
+ hi DiffAdded ctermfg=152 ctermbg=233 cterm=reverse
+ hi DiffChange ctermfg=153 ctermbg=233 cterm=reverse
+ hi DiffDelete ctermfg=181 ctermbg=233 cterm=reverse
+ hi DiffRemoved ctermfg=181 ctermbg=233 cterm=reverse
+ hi DiffText ctermfg=152 ctermbg=233 cterm=reverse
+ hi Directory ctermfg=67 ctermbg=NONE cterm=bold
+ hi EndOfBuffer ctermfg=236 ctermbg=NONE cterm=NONE
+ hi Error ctermfg=167 ctermbg=NONE cterm=bold,reverse
+ hi! link ErrorMsg Error
+ hi Folded ctermfg=242 ctermbg=238 cterm=NONE
+ hi! link IncSearch Search
+ hi LineNr ctermfg=242 ctermbg=238 cterm=NONE
+ hi MatchParen ctermfg=NONE ctermbg=240 cterm=bold
+ hi ModeMsg ctermfg=67 ctermbg=NONE cterm=NONE
+ hi MoreMsg ctermfg=36 ctermbg=NONE cterm=NONE
+ hi NonText ctermfg=247 ctermbg=NONE cterm=NONE
+ hi Pmenu ctermfg=254 ctermbg=240 cterm=NONE
+ hi PmenuSbar ctermfg=NONE ctermbg=240 cterm=NONE
+ hi PmenuSel ctermfg=238 ctermbg=252 cterm=bold
+ hi PmenuThumb ctermfg=NONE ctermbg=247 cterm=NONE
+ hi Question ctermfg=185 ctermbg=NONE cterm=NONE
+ hi! link QuickFixLine Search
+ hi Search ctermfg=229 ctermbg=233 cterm=reverse
+ hi SpecialKey ctermfg=247 ctermbg=NONE cterm=NONE
+ hi SpellBad ctermfg=167 ctermbg=NONE cterm=underline
+ hi SpellCap ctermfg=67 ctermbg=NONE cterm=underline
+ hi SpellLocal ctermfg=37 ctermbg=NONE cterm=underline
+ hi SpellRare ctermfg=206 ctermbg=NONE cterm=underline
+ hi StatusLine ctermfg=240 ctermbg=254 cterm=reverse
+ hi StatusLineNC ctermfg=238 ctermbg=252 cterm=reverse
+ hi! link StatusLineTerm StatusLine
+ hi! link StatusLineTermNC StatusLineNC
+ hi! link TabLine TabLineFill
+ hi TabLineFill ctermfg=252 ctermbg=242 cterm=NONE
+ hi TabLineSel ctermfg=254 ctermbg=238 cterm=NONE
+ hi Title ctermfg=255 ctermbg=NONE cterm=bold
+ hi Visual ctermfg=NONE ctermbg=238 cterm=NONE
+ hi! link VisualNOS Visual
+ hi WarningMsg ctermfg=167 ctermbg=NONE cterm=NONE
+ hi WildMenu ctermfg=67 ctermbg=240 cterm=bold
+ hi! link Boolean Constant
+ hi! link Character Constant
+ hi Comment ctermfg=250 ctermbg=NONE cterm=NONE
+ hi! link Conditional Statement
+ hi Constant ctermfg=36 ctermbg=NONE cterm=NONE
+ hi! link Define PreProc
+ hi! link Debug Special
+ hi! link Delimiter Special
+ hi! link Exception Statement
+ hi! link Float Constant
+ hi Function ctermfg=37 ctermbg=NONE cterm=NONE
+ hi Identifier ctermfg=67 ctermbg=NONE cterm=NONE
+ hi Ignore ctermfg=fg ctermbg=NONE cterm=NONE
+ hi! link Include PreProc
+ hi! link Keyword Statement
+ hi! link Label Statement
+ hi! link Macro PreProc
+ hi! link Number Constant
+ hi! link Operator Statement
+ hi! link PreCondit PreProc
+ hi PreProc ctermfg=37 ctermbg=NONE cterm=NONE
+ hi! link Repeat Statement
+ hi! link SpecialChar Special
+ hi! link SpecialComment Special
+ hi Statement ctermfg=167 ctermbg=NONE cterm=NONE
+ hi! link StorageClass Type
+ hi Special ctermfg=228 ctermbg=NONE cterm=NONE
+ hi! link String Constant
+ hi! link Structure Type
+ hi! link Tag Special
+ hi Todo ctermfg=37 ctermbg=NONE cterm=reverse
+ hi Type ctermfg=30 ctermbg=NONE cterm=NONE
+ hi! link Typedef Type
+ hi Underlined ctermfg=NONE ctermbg=NONE cterm=underline
+ hi! link lCursor Cursor
+ hi CursorIM ctermfg=NONE ctermbg=NONE cterm=reverse
+ hi ToolbarLine ctermfg=NONE ctermbg=242 cterm=NONE
+ hi ToolbarButton ctermfg=255 ctermbg=242 cterm=bold
+ hi! link iCursor Cursor
+ hi! link vCursor Cursor
+ hi NormalMode ctermfg=252 ctermbg=236 cterm=reverse
+ hi InsertMode ctermfg=67 ctermbg=236 cterm=reverse
+ hi ReplaceMode ctermfg=37 ctermbg=236 cterm=reverse
+ hi VisualMode ctermfg=228 ctermbg=236 cterm=reverse
+ hi CommandMode ctermfg=206 ctermbg=236 cterm=reverse
+ hi Warnings ctermfg=228 ctermbg=236 cterm=reverse
+ if has('nvim')
+ hi! link TermCursor Cursor
+ hi TermCursorNC ctermfg=238 ctermbg=254 cterm=NONE
+ endif
+ unlet s:t_Co s:italics
+ finish
+ endif
+ " Light background
+ if !has('gui_running') && get(g:, 'artesanal_transp_bg', 0)
+ hi Normal ctermfg=238 ctermbg=NONE cterm=NONE
+ hi CursorLineNr ctermfg=208 ctermbg=NONE cterm=NONE
+ hi FoldColumn ctermfg=59 ctermbg=NONE cterm=NONE
+ hi SignColumn ctermfg=240 ctermbg=NONE cterm=NONE
+ hi VertSplit ctermfg=250 ctermbg=NONE cterm=NONE
+ else
+ hi Normal ctermfg=238 ctermbg=255 cterm=NONE
+ hi CursorLineNr ctermfg=208 ctermbg=254 cterm=NONE
+ hi FoldColumn ctermfg=59 ctermbg=254 cterm=NONE
+ hi SignColumn ctermfg=240 ctermbg=254 cterm=NONE
+ hi VertSplit ctermfg=250 ctermbg=255 cterm=NONE
+ endif
+ hi ColorColumn ctermfg=NONE ctermbg=254 cterm=NONE
+ hi Conceal ctermfg=26 ctermbg=NONE cterm=NONE
+ hi Cursor ctermfg=NONE ctermbg=NONE cterm=reverse
+ hi! link CursorColumn ColorColumn
+ hi! link CursorLine ColorColumn
+ hi DiffAdd ctermfg=152 ctermbg=233 cterm=reverse
+ hi DiffAdded ctermfg=152 ctermbg=233 cterm=reverse
+ hi DiffChange ctermfg=153 ctermbg=233 cterm=reverse
+ hi DiffDelete ctermfg=181 ctermbg=233 cterm=reverse
+ hi DiffRemoved ctermfg=181 ctermbg=233 cterm=reverse
+ hi DiffText ctermfg=152 ctermbg=233 cterm=reverse
+ hi Directory ctermfg=26 ctermbg=NONE cterm=bold
+ hi EndOfBuffer ctermfg=255 ctermbg=NONE cterm=NONE
+ hi Error ctermfg=124 ctermbg=NONE cterm=bold,reverse
+ hi! link ErrorMsg Error
+ hi Folded ctermfg=250 ctermbg=254 cterm=NONE
+ hi! link IncSearch Search
+ hi LineNr ctermfg=250 ctermbg=254 cterm=NONE
+ hi MatchParen ctermfg=NONE ctermbg=252 cterm=bold
+ hi ModeMsg ctermfg=26 ctermbg=NONE cterm=NONE
+ hi MoreMsg ctermfg=35 ctermbg=NONE cterm=NONE
+ hi NonText ctermfg=248 ctermbg=NONE cterm=NONE
+ hi Pmenu ctermfg=238 ctermbg=252 cterm=NONE
+ hi PmenuSbar ctermfg=NONE ctermbg=252 cterm=NONE
+ hi PmenuSel ctermfg=254 ctermbg=240 cterm=bold
+ hi PmenuThumb ctermfg=NONE ctermbg=248 cterm=NONE
+ hi Question ctermfg=166 ctermbg=NONE cterm=NONE
+ hi! link QuickFixLine Search
+ hi Search ctermfg=215 ctermbg=233 cterm=reverse
+ hi SpecialKey ctermfg=248 ctermbg=NONE cterm=NONE
+ hi SpellBad ctermfg=124 ctermbg=NONE cterm=underline
+ hi SpellCap ctermfg=26 ctermbg=NONE cterm=underline
+ hi SpellLocal ctermfg=30 ctermbg=NONE cterm=underline
+ hi SpellRare ctermfg=127 ctermbg=NONE cterm=underline
+ hi StatusLine ctermfg=252 ctermbg=238 cterm=reverse
+ hi StatusLineNC ctermfg=254 ctermbg=240 cterm=reverse
+ hi! link StatusLineTerm StatusLine
+ hi! link StatusLineTermNC StatusLineNC
+ hi! link TabLine TabLineFill
+ hi TabLineFill ctermfg=240 ctermbg=250 cterm=NONE
+ hi TabLineSel ctermfg=238 ctermbg=254 cterm=NONE
+ hi Title ctermfg=236 ctermbg=NONE cterm=bold
+ hi Visual ctermfg=NONE ctermbg=254 cterm=NONE
+ hi! link VisualNOS Visual
+ hi WarningMsg ctermfg=124 ctermbg=NONE cterm=NONE
+ hi WildMenu ctermfg=26 ctermbg=252 cterm=bold
+ hi! link Boolean Constant
+ hi! link Character Constant
+ hi Comment ctermfg=242 ctermbg=NONE cterm=NONE
+ hi! link Conditional Statement
+ hi Constant ctermfg=35 ctermbg=NONE cterm=NONE
+ hi! link Define PreProc
+ hi! link Debug Special
+ hi! link Delimiter Special
+ hi! link Exception Statement
+ hi! link Float Constant
+ hi Function ctermfg=30 ctermbg=NONE cterm=NONE
+ hi Identifier ctermfg=26 ctermbg=NONE cterm=NONE
+ hi Ignore ctermfg=fg ctermbg=NONE cterm=NONE
+ hi! link Include PreProc
+ hi! link Keyword Statement
+ hi! link Label Statement
+ hi! link Macro PreProc
+ hi! link Number Constant
+ hi! link Operator Statement
+ hi! link PreCondit PreProc
+ hi PreProc ctermfg=30 ctermbg=NONE cterm=NONE
+ hi! link Repeat Statement
+ hi! link SpecialChar Special
+ hi! link SpecialComment Special
+ hi Statement ctermfg=124 ctermbg=NONE cterm=NONE
+ hi! link StorageClass Type
+ hi Special ctermfg=208 ctermbg=NONE cterm=NONE
+ hi! link String Constant
+ hi! link Structure Type
+ hi! link Tag Special
+ hi Todo ctermfg=30 ctermbg=NONE cterm=reverse
+ hi Type ctermfg=30 ctermbg=NONE cterm=NONE
+ hi! link Typedef Type
+ hi Underlined ctermfg=NONE ctermbg=NONE cterm=underline
+ hi! link lCursor Cursor
+ hi CursorIM ctermfg=NONE ctermbg=NONE cterm=reverse
+ hi ToolbarLine ctermfg=NONE ctermbg=250 cterm=NONE
+ hi ToolbarButton ctermfg=236 ctermbg=250 cterm=bold
+ hi! link iCursor Cursor
+ hi! link vCursor Cursor
+ hi NormalMode ctermfg=240 ctermbg=255 cterm=reverse
+ hi InsertMode ctermfg=26 ctermbg=255 cterm=reverse
+ hi ReplaceMode ctermfg=30 ctermbg=255 cterm=reverse
+ hi VisualMode ctermfg=208 ctermbg=255 cterm=reverse
+ hi CommandMode ctermfg=127 ctermbg=255 cterm=reverse
+ hi Warnings ctermfg=208 ctermbg=255 cterm=reverse
+ if has('nvim')
+ hi! link TermCursor Cursor
+ hi TermCursorNC ctermfg=254 ctermbg=238 cterm=NONE
+ endif
+ unlet s:t_Co s:italics
+ finish