" Grayscale colorscheme to "turn off" highlighting gracefully. " Last Changed: 2022-03-05 " Author: Federico Igne " License: This file is placed in the public domain. "highlight clear if exists('syntax on') syntax reset endif let g:colors_name='off' " fill it with absolute colors let s:gb_dark0_hard = { "gui": '#1d2021', "cterm": "234" } " 29-32-33 let s:gb_dark0 = { "gui": '#282828', "cterm": "235" } " 40-40-40 let s:gb_dark0_soft = { "gui": '#32302f', "cterm": "236" } " 50-48-47 let s:gb_dark1 = { "gui": '#3c3836', "cterm": "237" } " 60-56-54 let s:gb_dark2 = { "gui": '#504945', "cterm": "239" } " 80-73-69 let s:gb_dark3 = { "gui": '#665c54', "cterm": "241" } " 102-92-84 let s:gb_dark4 = { "gui": '#7c6f64', "cterm": "243" } " 124-111-100 let s:gb_dark4_256 = { "gui": '#7c6f64', "cterm": "243" } " 124-111-100 let s:gb_gray_245 = { "gui": '#928374', "cterm": "245" } " 146-131-116 let s:gb_gray_244 = { "gui": '#928374', "cterm": "244" } " 146-131-116 let s:gb_light0_hard = { "gui": '#f9f5d7', "cterm": "230" } " 249-245-215 let s:gb_light0 = { "gui": '#fbf1c7', "cterm": "229" } " 253-244-193 let s:gb_light0_soft = { "gui": '#f2e5bc', "cterm": "228" } " 242-229-188 let s:gb_light1 = { "gui": '#ebdbb2', "cterm": "223" } " 235-219-178 let s:gb_light2 = { "gui": '#d5c4a1', "cterm": "250" } " 213-196-161 let s:gb_light3 = { "gui": '#bdae93', "cterm": "248" } " 189-174-147 let s:gb_light4 = { "gui": '#a89984', "cterm": "246" } " 168-153-132 let s:gb_light4_256 = { "gui": '#a89984', "cterm": "246" } " 168-153-132 let s:gb_bright_red = { "gui": '#fb4934', "cterm": "167" } " 251-73-52 let s:gb_bright_green = { "gui": '#b8bb26', "cterm": "142" } " 184-187-38 let s:gb_bright_yellow = { "gui": '#fabd2f', "cterm": "214" } " 250-189-47 let s:gb_bright_blue = { "gui": '#83a598', "cterm": "109" } " 131-165-152 let s:gb_bright_purple = { "gui": '#d3869b', "cterm": "175" } " 211-134-155 let s:gb_bright_aqua = { "gui": '#8ec07c', "cterm": "108" } " 142-192-124 let s:gb_bright_orange = { "gui": '#fe8019', "cterm": "208" } " 254-128-25 let s:gb_neutral_red = { "gui": '#cc241d', "cterm": "124" } " 204-36-29 let s:gb_neutral_green = { "gui": '#98971a', "cterm": "106" } " 152-151-26 let s:gb_neutral_yellow = { "gui": '#d79921', "cterm": "172" } " 215-153-33 let s:gb_neutral_blue = { "gui": '#458588', "cterm": "66" } " 69-133-136 let s:gb_neutral_purple = { "gui": '#b16286', "cterm": "132" } " 177-98-134 let s:gb_neutral_aqua = { "gui": '#689d6a', "cterm": "72" } " 104-157-106 let s:gb_neutral_orange = { "gui": '#d65d0e', "cterm": "166" } " 214-93-14 let s:gb_faded_red = { "gui": '#9d0006', "cterm": "88" } " 157-0-6 let s:gb_faded_green = { "gui": '#79740e', "cterm": "100" } " 121-116-14 let s:gb_faded_yellow = { "gui": '#b57614', "cterm": "136" } " 181-118-20 let s:gb_faded_blue = { "gui": '#076678', "cterm": "24" } " 7-102-120 let s:gb_faded_purple = { "gui": '#8f3f71', "cterm": "96" } " 143-63-113 let s:gb_faded_aqua = { "gui": '#427b58', "cterm": "66" } " 66-123-88 let s:gb_faded_orange = { "gui": '#af3a03', "cterm": "130" } " 175-58-3 if &background == "dark" let s:bg = s:gb_dark0 let s:fg = s:gb_light1 let s:fg_dimmed = s:gb_gray_244 let s:extra = s:gb_dark1 else let s:bg = s:gb_light0 let s:fg = s:gb_dark1 let s:fg_dimmed = s:gb_gray_245 let s:extra = s:gb_light1 endif " https://github.com/noahfrederick/vim-hemisu/ function! s:h(group, style) execute "highlight" a:group \ "guifg=" (has_key(a:style, "fg") ? a:style.fg.gui : "NONE") \ "guibg=" (has_key(a:style, "bg") ? a:style.bg.gui : "NONE") \ "guisp=" (has_key(a:style, "sp") ? a:style.sp.gui : "NONE") \ "gui=" (has_key(a:style, "gui") ? a:style.gui : "NONE") \ "ctermfg=" (has_key(a:style, "fg") ? a:style.fg.cterm : "NONE") \ "ctermbg=" (has_key(a:style, "bg") ? a:style.bg.cterm : "NONE") \ "cterm=" (has_key(a:style, "cterm") ? a:style.cterm : "NONE") endfunction call s:h("Normal", {"bg": s:bg, "fg": s:fg_dimmed}) call s:h("Cursor", {"bg": s:fg, "fg": s:bg }) call s:h("MsgArea", {"bg": s:bg, "fg": s:fg }) hi! link Comment Normal hi! link Constant Normal hi! link Character Constant hi! link Number Constant hi! link Boolean Constant hi! link Float Constant hi! link String Constant hi! link Identifier Normal hi! link Function Identifier hi! link Statement Normal hi! link Conditonal Statement hi! link Repeat Statement hi! link Label Statement hi! link Operator Statement hi! link Keyword Statement hi! link Exception Statement hi! link PreProc Normal hi! link Include PreProc hi! link Define PreProc hi! link Macro PreProc hi! link PreCondit PreProc hi! link Type Normal hi! link StorageClass Type hi! link Structure Type hi! link Typedef Type hi! link Special Normal hi! link SpecialChar Special hi! link Tag Special hi! link Delimiter Special hi! link SpecialComment Special hi! link Debug Special hi! link Underlined Normal hi! link Ignore Normal hi! link Error Normal hi! link Todo Normal hi! link SpecialKey Normal hi! link NonText Normal hi! link Directory Normal "call s:h("MoreMsg", {"fg": s:medium_gray, "cterm": "bold", "gui": "bold"}) "hi! link ModeMsg MoreMsg "call s:h("LineNr", {"fg": s:bg_subtle}) "call s:h("CursorLineNr", {"fg": s:blue, "bg": s:bg_very_subtle}) "call s:h("Question", {"fg": s:red}) "call s:h("VertSplit", {"bg": s:bg_very_subtle, "fg": s:bg_very_subtle}) "call s:h("Title", {"fg": s:dark_blue}) "call s:h("VisualNOS", {"bg": s:bg_subtle}) "call s:h("WarningMsg", {"fg": s:red}) "call s:h("WildMenu", {"fg": s:bg, "bg": s:norm}) "call s:h("Folded", {"fg": s:medium_gray}) "call s:h("FoldColumn", {"fg": s:bg_subtle}) "call s:h("DiffAdd", {"fg": s:green}) "call s:h("DiffDelete", {"fg": s:red}) "call s:h("DiffChange", {"fg": s:dark_yellow}) "call s:h("DiffText", {"fg": s:dark_blue}) "call s:h("SignColumn", {"fg": s:light_green}) "call s:h("Pmenu", {"fg": s:norm, "bg": s:bg_subtle}) "call s:h("PmenuSel", {"fg": s:norm, "bg": s:blue}) "call s:h("PmenuSbar", {"fg": s:norm, "bg": s:bg_subtle}) "call s:h("PmenuThumb", {"fg": s:norm, "bg": s:bg_subtle}) "call s:h("TabLine", {"fg": s:norm, "bg": s:bg_very_subtle}) "call s:h("TabLineSel", {"fg": s:blue, "bg": s:bg_subtle, "gui": "bold", "cterm": "bold"}) "call s:h("TabLineFill", {"fg": s:norm, "bg": s:bg_very_subtle}) "call s:h("MatchParen", {"bg": s:bg_subtle, "fg": s:norm}) "call s:h("qfLineNr", {"fg": s:medium_gray}) "hi link diffRemoved DiffDelete "hi link diffAdded DiffAdd