3 changed files with 1710 additions and 0 deletions
@ -0,0 +1,195 @@
@@ -0,0 +1,195 @@
|
||||
" ============================================================================== |
||||
" Name: One Half Dark |
||||
" Author: Son A. Pham <sp@sonpham.me> |
||||
" Url: https://github.com/sonph/onehalf |
||||
" License: The MIT License (MIT) |
||||
" |
||||
" A dark vim color scheme based on Atom's One. See github.com/sonph/onehalf |
||||
" for installation instructions, a light color scheme, versions for other |
||||
" editors/terminals, and a matching theme for vim-airline. |
||||
" ============================================================================== |
||||
|
||||
set background=dark |
||||
highlight clear |
||||
syntax reset |
||||
|
||||
let g:colors_name="onehalfdark" |
||||
let colors_name="onehalfdark" |
||||
|
||||
|
||||
let s:red = { "gui": "#e06c75", "cterm": "168" } |
||||
let s:green = { "gui": "#98c379", "cterm": "114" } |
||||
let s:yellow = { "gui": "#e5c07b", "cterm": "180" } |
||||
let s:blue = { "gui": "#61afef", "cterm": "75" } |
||||
let s:purple = { "gui": "#c678dd", "cterm": "176" } |
||||
let s:cyan = { "gui": "#56b6c2", "cterm": "73" } |
||||
|
||||
let s:fg = { "gui": "#dcdfe4", "cterm": "188" } |
||||
let s:bg = { "gui": "#282c34", "cterm": "236" } |
||||
|
||||
let s:comment_fg = { "gui": "#5c6370", "cterm": "241" } |
||||
let s:gutter_bg = { "gui": "#282c34", "cterm": "236" } |
||||
let s:gutter_fg = { "gui": "#919baa", "cterm": "247" } |
||||
|
||||
let s:cursor_line = { "gui": "#313640", "cterm": "237" } |
||||
let s:color_col = { "gui": "#313640", "cterm": "237" } |
||||
|
||||
let s:selection = { "gui": "#474e5d", "cterm": "239" } |
||||
let s:vertsplit = { "gui": "#313640", "cterm": "237" } |
||||
|
||||
|
||||
function! s:h(group, fg, bg, attr) |
||||
if type(a:fg) == type({}) |
||||
exec "hi " . a:group . " guifg=" . a:fg.gui . " ctermfg=" . a:fg.cterm |
||||
else |
||||
exec "hi " . a:group . " guifg=NONE cterm=NONE" |
||||
endif |
||||
if type(a:bg) == type({}) |
||||
exec "hi " . a:group . " guibg=" . a:bg.gui . " ctermbg=" . a:bg.cterm |
||||
else |
||||
exec "hi " . a:group . " guibg=NONE ctermbg=NONE" |
||||
endif |
||||
if a:attr != "" |
||||
exec "hi " . a:group . " gui=" . a:attr . " cterm=" . a:attr |
||||
else |
||||
exec "hi " . a:group . " gui=NONE cterm=NONE" |
||||
endif |
||||
endfun |
||||
|
||||
|
||||
" User interface colors { |
||||
call s:h("Normal", s:fg, s:bg, "") |
||||
call s:h("NonText", s:fg, "", "") |
||||
|
||||
call s:h("Cursor", s:bg, s:blue, "") |
||||
call s:h("CursorColumn", "", s:cursor_line, "") |
||||
call s:h("CursorLine", "", s:cursor_line, "") |
||||
|
||||
call s:h("LineNr", s:gutter_fg, s:gutter_bg, "") |
||||
call s:h("CursorLineNr", s:fg, "", "") |
||||
|
||||
call s:h("DiffAdd", s:green, "", "") |
||||
call s:h("DiffChange", s:yellow, "", "") |
||||
call s:h("DiffDelete", s:red, "", "") |
||||
call s:h("DiffText", s:blue, "", "") |
||||
|
||||
call s:h("IncSearch", s:bg, s:yellow, "") |
||||
call s:h("Search", s:bg, s:yellow, "") |
||||
|
||||
call s:h("ErrorMsg", s:fg, "", "") |
||||
call s:h("ModeMsg", s:fg, "", "") |
||||
call s:h("MoreMsg", s:fg, "", "") |
||||
call s:h("WarningMsg", s:red, "", "") |
||||
call s:h("Question", s:purple, "", "") |
||||
|
||||
call s:h("Pmenu", s:bg, s:fg, "") |
||||
call s:h("PmenuSel", s:fg, s:blue, "") |
||||
call s:h("PmenuSbar", "", s:selection, "") |
||||
call s:h("PmenuThumb", "", s:fg, "") |
||||
|
||||
call s:h("SpellBad", s:red, "", "") |
||||
call s:h("SpellCap", s:yellow, "", "") |
||||
call s:h("SpellLocal", s:yellow, "", "") |
||||
call s:h("SpellRare", s:yellow, "", "") |
||||
|
||||
call s:h("StatusLine", s:blue, s:cursor_line, "") |
||||
call s:h("StatusLineNC", s:comment_fg, s:cursor_line, "") |
||||
call s:h("TabLine", s:comment_fg, s:cursor_line, "") |
||||
call s:h("TabLineFill", s:comment_fg, s:cursor_line, "") |
||||
call s:h("TabLineSel", s:fg, s:bg, "") |
||||
|
||||
call s:h("Visual", "", s:selection, "") |
||||
call s:h("VisualNOS", "", s:selection, "") |
||||
|
||||
call s:h("ColorColumn", "", s:color_col, "") |
||||
call s:h("Conceal", s:fg, "", "") |
||||
call s:h("Directory", s:blue, "", "") |
||||
call s:h("VertSplit", s:vertsplit, s:vertsplit, "") |
||||
call s:h("Folded", s:fg, "", "") |
||||
call s:h("FoldColumn", s:fg, "", "") |
||||
call s:h("SignColumn", s:fg, "", "") |
||||
|
||||
call s:h("MatchParen", s:blue, "", "underline") |
||||
call s:h("SpecialKey", s:fg, "", "") |
||||
call s:h("Title", s:green, "", "") |
||||
call s:h("WildMenu", s:fg, "", "") |
||||
" } |
||||
|
||||
|
||||
" Syntax colors { |
||||
call s:h("Comment", s:comment_fg, "", "") |
||||
call s:h("Constant", s:cyan, "", "") |
||||
call s:h("String", s:green, "", "") |
||||
call s:h("Character", s:green, "", "") |
||||
call s:h("Number", s:yellow, "", "") |
||||
call s:h("Boolean", s:yellow, "", "") |
||||
call s:h("Float", s:yellow, "", "") |
||||
|
||||
call s:h("Identifier", s:red, "", "") |
||||
call s:h("Function", s:blue, "", "") |
||||
call s:h("Statement", s:purple, "", "") |
||||
|
||||
call s:h("Conditional", s:purple, "", "") |
||||
call s:h("Repeat", s:purple, "", "") |
||||
call s:h("Label", s:purple, "", "") |
||||
call s:h("Operator", s:fg, "", "") |
||||
call s:h("Keyword", s:red, "", "") |
||||
call s:h("Exception", s:purple, "", "") |
||||
|
||||
call s:h("PreProc", s:yellow, "", "") |
||||
call s:h("Include", s:blue, "", "") |
||||
call s:h("Define", s:purple, "", "") |
||||
call s:h("Macro", s:purple, "", "") |
||||
call s:h("PreCondit", s:yellow, "", "") |
||||
|
||||
call s:h("Type", s:yellow, "", "") |
||||
call s:h("StorageClass", s:yellow, "", "") |
||||
call s:h("Structure", s:yellow, "", "") |
||||
call s:h("Typedef", s:yellow, "", "") |
||||
|
||||
call s:h("Special", s:blue, "", "") |
||||
call s:h("SpecialChar", s:fg, "", "") |
||||
call s:h("Tag", s:fg, "", "") |
||||
call s:h("Delimiter", s:fg, "", "") |
||||
call s:h("SpecialComment", s:fg, "", "") |
||||
call s:h("Debug", s:fg, "", "") |
||||
call s:h("Underlined", s:fg, "", "") |
||||
call s:h("Ignore", s:fg, "", "") |
||||
call s:h("Error", s:red, s:gutter_bg, "") |
||||
call s:h("Todo", s:purple, "", "") |
||||
" } |
||||
|
||||
|
||||
" Plugins { |
||||
" GitGutter |
||||
call s:h("GitGutterAdd", s:green, s:gutter_bg, "") |
||||
call s:h("GitGutterDelete", s:red, s:gutter_bg, "") |
||||
call s:h("GitGutterChange", s:yellow, s:gutter_bg, "") |
||||
call s:h("GitGutterChangeDelete", s:red, s:gutter_bg, "") |
||||
" Fugitive |
||||
call s:h("diffAdded", s:green, "", "") |
||||
call s:h("diffRemoved", s:red, "", "") |
||||
" } |
||||
|
||||
|
||||
" Git { |
||||
call s:h("gitcommitComment", s:comment_fg, "", "") |
||||
call s:h("gitcommitUnmerged", s:red, "", "") |
||||
call s:h("gitcommitOnBranch", s:fg, "", "") |
||||
call s:h("gitcommitBranch", s:purple, "", "") |
||||
call s:h("gitcommitDiscardedType", s:red, "", "") |
||||
call s:h("gitcommitSelectedType", s:green, "", "") |
||||
call s:h("gitcommitHeader", s:fg, "", "") |
||||
call s:h("gitcommitUntrackedFile", s:cyan, "", "") |
||||
call s:h("gitcommitDiscardedFile", s:red, "", "") |
||||
call s:h("gitcommitSelectedFile", s:green, "", "") |
||||
call s:h("gitcommitUnmergedFile", s:yellow, "", "") |
||||
call s:h("gitcommitFile", s:fg, "", "") |
||||
hi link gitcommitNoBranch gitcommitBranch |
||||
hi link gitcommitUntracked gitcommitComment |
||||
hi link gitcommitDiscarded gitcommitComment |
||||
hi link gitcommitSelected gitcommitComment |
||||
hi link gitcommitDiscardedArrow gitcommitDiscardedFile |
||||
hi link gitcommitSelectedArrow gitcommitSelectedFile |
||||
hi link gitcommitUnmergedArrow gitcommitUnmergedFile |
||||
" } |
@ -0,0 +1,195 @@
@@ -0,0 +1,195 @@
|
||||
" ============================================================================== |
||||
" Name: One Half Light |
||||
" Author: Son A. Pham <sp@sonpham.me> |
||||
" Url: https://github.com/sonph/onehalf |
||||
" License: The MIT License (MIT) |
||||
" |
||||
" A light vim color scheme based on Atom's One. See github.com/sonph/onehalf |
||||
" for installation instructions, a dark color scheme, versions for other |
||||
" editors/terminals, and a matching theme for vim-airline. |
||||
" ============================================================================== |
||||
|
||||
set background=light |
||||
highlight clear |
||||
syntax reset |
||||
|
||||
let g:colors_name="onehalflight" |
||||
let colors_name="onehalflight" |
||||
|
||||
|
||||
let s:red = { "gui": "#e45649", "cterm": "167" } |
||||
let s:green = { "gui": "#50a14f", "cterm": "71" } |
||||
let s:yellow = { "gui": "#c18401", "cterm": "136" } |
||||
let s:blue = { "gui": "#0184bc", "cterm": "31" } |
||||
let s:purple = { "gui": "#a626a4", "cterm": "127" } |
||||
let s:cyan = { "gui": "#0997b3", "cterm": "31" } |
||||
|
||||
let s:fg = { "gui": "#383a42", "cterm": "237" } |
||||
let s:bg = { "gui": "#fafafa", "cterm": "231" } |
||||
|
||||
let s:comment_fg = { "gui": "#a0a1a7", "cterm": "247" } |
||||
let s:gutter_bg = { "gui": "#fafafa", "cterm": "231" } |
||||
let s:gutter_fg = { "gui": "#d4d4d4", "cterm": "252" } |
||||
|
||||
let s:cursor_line = { "gui": "#f0f0f0", "cterm": "255" } |
||||
let s:color_col = { "gui": "#f0f0f0", "cterm": "255" } |
||||
|
||||
let s:selection = { "gui": "#bfceff", "cterm": "153" } |
||||
let s:vertsplit = { "gui": "#f0f0f0", "cterm": "255" } |
||||
|
||||
|
||||
function! s:h(group, fg, bg, attr) |
||||
if type(a:fg) == type({}) |
||||
exec "hi " . a:group . " guifg=" . a:fg.gui . " ctermfg=" . a:fg.cterm |
||||
else |
||||
exec "hi " . a:group . " guifg=NONE cterm=NONE" |
||||
endif |
||||
if type(a:bg) == type({}) |
||||
exec "hi " . a:group . " guibg=" . a:bg.gui . " ctermbg=" . a:bg.cterm |
||||
else |
||||
exec "hi " . a:group . " guibg=NONE ctermbg=NONE" |
||||
endif |
||||
if a:attr != "" |
||||
exec "hi " . a:group . " gui=" . a:attr . " cterm=" . a:attr |
||||
else |
||||
exec "hi " . a:group . " gui=NONE cterm=NONE" |
||||
endif |
||||
endfun |
||||
|
||||
|
||||
" User interface colors { |
||||
call s:h("Normal", s:fg, s:bg, "") |
||||
call s:h("NonText", s:fg, "", "") |
||||
|
||||
call s:h("Cursor", s:bg, s:blue, "") |
||||
call s:h("CursorColumn", "", s:cursor_line, "") |
||||
call s:h("CursorLine", "", s:cursor_line, "") |
||||
|
||||
call s:h("LineNr", s:gutter_fg, s:gutter_bg, "") |
||||
call s:h("CursorLineNr", s:fg, "", "") |
||||
|
||||
call s:h("DiffAdd", s:green, "", "") |
||||
call s:h("DiffChange", s:yellow, "", "") |
||||
call s:h("DiffDelete", s:red, "", "") |
||||
call s:h("DiffText", s:blue, "", "") |
||||
|
||||
call s:h("IncSearch", s:bg, s:yellow, "") |
||||
call s:h("Search", s:bg, s:yellow, "") |
||||
|
||||
call s:h("ErrorMsg", s:fg, "", "") |
||||
call s:h("ModeMsg", s:fg, "", "") |
||||
call s:h("MoreMsg", s:fg, "", "") |
||||
call s:h("WarningMsg", s:red, "", "") |
||||
call s:h("Question", s:purple, "", "") |
||||
|
||||
call s:h("Pmenu", s:fg, s:cursor_line, "") |
||||
call s:h("PmenuSel", s:bg, s:blue, "") |
||||
call s:h("PmenuSbar", "", s:cursor_line, "") |
||||
call s:h("PmenuThumb", "", s:comment_fg, "") |
||||
|
||||
call s:h("SpellBad", s:red, "", "") |
||||
call s:h("SpellCap", s:yellow, "", "") |
||||
call s:h("SpellLocal", s:yellow, "", "") |
||||
call s:h("SpellRare", s:yellow, "", "") |
||||
|
||||
call s:h("StatusLine", s:blue, s:cursor_line, "") |
||||
call s:h("StatusLineNC", s:comment_fg, s:cursor_line, "") |
||||
call s:h("TabLine", s:comment_fg, s:cursor_line, "") |
||||
call s:h("TabLineFill", s:comment_fg, s:cursor_line, "") |
||||
call s:h("TabLineSel", s:fg, s:bg, "") |
||||
|
||||
call s:h("Visual", "", s:selection, "") |
||||
call s:h("VisualNOS", "", s:selection, "") |
||||
|
||||
call s:h("ColorColumn", "", s:color_col, "") |
||||
call s:h("Conceal", s:fg, "", "") |
||||
call s:h("Directory", s:blue, "", "") |
||||
call s:h("VertSplit", s:vertsplit, s:vertsplit, "") |
||||
call s:h("Folded", s:fg, "", "") |
||||
call s:h("FoldColumn", s:fg, "", "") |
||||
call s:h("SignColumn", s:fg, "", "") |
||||
|
||||
call s:h("MatchParen", s:blue, "", "underline") |
||||
call s:h("SpecialKey", s:fg, "", "") |
||||
call s:h("Title", s:green, "", "") |
||||
call s:h("WildMenu", s:fg, "", "") |
||||
" } |
||||
|
||||
|
||||
" Syntax colors { |
||||
call s:h("Comment", s:comment_fg, "", "") |
||||
call s:h("Constant", s:cyan, "", "") |
||||
call s:h("String", s:green, "", "") |
||||
call s:h("Character", s:green, "", "") |
||||
call s:h("Number", s:yellow, "", "") |
||||
call s:h("Boolean", s:yellow, "", "") |
||||
call s:h("Float", s:yellow, "", "") |
||||
|
||||
call s:h("Identifier", s:red, "", "") |
||||
call s:h("Function", s:blue, "", "") |
||||
call s:h("Statement", s:purple, "", "") |
||||
|
||||
call s:h("Conditional", s:purple, "", "") |
||||
call s:h("Repeat", s:purple, "", "") |
||||
call s:h("Label", s:purple, "", "") |
||||
call s:h("Operator", s:fg, "", "") |
||||
call s:h("Keyword", s:red, "", "") |
||||
call s:h("Exception", s:purple, "", "") |
||||
|
||||
call s:h("PreProc", s:yellow, "", "") |
||||
call s:h("Include", s:purple, "", "") |
||||
call s:h("Define", s:purple, "", "") |
||||
call s:h("Macro", s:purple, "", "") |
||||
call s:h("PreCondit", s:yellow, "", "") |
||||
|
||||
call s:h("Type", s:yellow, "", "") |
||||
call s:h("StorageClass", s:yellow, "", "") |
||||
call s:h("Structure", s:yellow, "", "") |
||||
call s:h("Typedef", s:yellow, "", "") |
||||
|
||||
call s:h("Special", s:blue, "", "") |
||||
call s:h("SpecialChar", s:fg, "", "") |
||||
call s:h("Tag", s:fg, "", "") |
||||
call s:h("Delimiter", s:fg, "", "") |
||||
call s:h("SpecialComment", s:fg, "", "") |
||||
call s:h("Debug", s:fg, "", "") |
||||
call s:h("Underlined", s:fg, "", "") |
||||
call s:h("Ignore", s:fg, "", "") |
||||
call s:h("Error", s:red, s:gutter_bg, "") |
||||
call s:h("Todo", s:purple, "", "") |
||||
" } |
||||
|
||||
|
||||
" Plugins { |
||||
" GitGutter |
||||
call s:h("GitGutterAdd", s:green, s:gutter_bg, "") |
||||
call s:h("GitGutterDelete", s:red, s:gutter_bg, "") |
||||
call s:h("GitGutterChange", s:yellow, s:gutter_bg, "") |
||||
call s:h("GitGutterChangeDelete", s:red, s:gutter_bg, "") |
||||
" Fugitive |
||||
call s:h("diffAdded", s:green, "", "") |
||||
call s:h("diffRemoved", s:red, "", "") |
||||
" } |
||||
|
||||
|
||||
" Git { |
||||
call s:h("gitcommitComment", s:comment_fg, "", "") |
||||
call s:h("gitcommitUnmerged", s:red, "", "") |
||||
call s:h("gitcommitOnBranch", s:fg, "", "") |
||||
call s:h("gitcommitBranch", s:purple, "", "") |
||||
call s:h("gitcommitDiscardedType", s:red, "", "") |
||||
call s:h("gitcommitSelectedType", s:green, "", "") |
||||
call s:h("gitcommitHeader", s:fg, "", "") |
||||
call s:h("gitcommitUntrackedFile", s:cyan, "", "") |
||||
call s:h("gitcommitDiscardedFile", s:red, "", "") |
||||
call s:h("gitcommitSelectedFile", s:green, "", "") |
||||
call s:h("gitcommitUnmergedFile", s:yellow, "", "") |
||||
call s:h("gitcommitFile", s:fg, "", "") |
||||
hi link gitcommitNoBranch gitcommitBranch |
||||
hi link gitcommitUntracked gitcommitComment |
||||
hi link gitcommitDiscarded gitcommitComment |
||||
hi link gitcommitSelected gitcommitComment |
||||
hi link gitcommitDiscardedArrow gitcommitDiscardedFile |
||||
hi link gitcommitSelectedArrow gitcommitSelectedFile |
||||
hi link gitcommitUnmergedArrow gitcommitUnmergedFile |
||||
" } |
Loading…
Reference in new issue