summaryrefslogtreecommitdiff
path: root/colors/dark-meadow.vim
blob: 2d1108e84ba9899484b08d603f32299227ed188a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
" Name:         dark-meadow 
" Author:       jliu2179
" Maintainer:   jliu2179
" License:      MIT

highlight clear

if exists('syntax_on')
  syntax reset
endif

let g:colors_name = 'dark-meadow'
set background=dark

" Color palette
let s:clear           =  ['NONE', 'NONE'   ]
let s:DeepSkyBlue3    =  ['31'  , '#0087af']
let s:Purple4         =  ['55'  , '#5f00af']
let s:Purple3         =  ['56'  , '#5f00ff']
let s:SteelBlue1      =  ['81'  , '#5fd7ff']
let s:DarkMagenta     =  ['90'  , '#870087']
let s:SkyBlue1        =  ['117' , '#87afff']
let s:DarkViolet      =  ['128' , '#af00d7']
let s:Magenta2        =  ['165' , '#d700ff']
let s:Red1            =  ['196' , '#ff0000']
let s:Magenta1        =  ['201' , '#ff00ff']
let s:HotPink         =  ['206' , '#ff5fd7']
let s:MediumOrchid1   =  ['207' , '#ff5faf']
let s:Yellow1         =  ['226' , '#ffff00']
let s:MistyRose1      =  ['224' , '#ffd7ff']
let s:Grey7           =  ['233' , '#121212']
let s:Grey42          =  ['242' , '#6c6c6c']
let s:Grey54          =  ['245' , '#8a8a8a']
let s:Grey66          =  ['248' , '#a8a8a8']


" Text style 
let s:italic      =   'italic'
let s:bold        =   'bold'
let s:underline   =   'underline'
let s:none        =   'NONE'

" Helper function to set up highlight executions
function! s:highlight(group, fg, bg, style)
  exec  "highlight "  . a:group
    \ . " ctermfg="   . a:fg[0]
    \ . " ctermbg="   . a:bg[0]
    \ . " cterm="     . a:style
    \ . " guifg="     . a:fg[1]
    \ . " guibg="     . a:bg[1]
    \ . " gui="       . a:style
endfunction

" Syntax highlighting groups
"
" For reference on what each group does, please refer to this:
" vimdoc.sourceforge.net/htmldoc/syntax.html
"
call s:highlight('Comment',                   s:DeepSkyBlue3,       s:clear,    s:italic    )
call s:highlight('Constant',                  s:DarkViolet,         s:clear,    s:none      )
call s:highlight('String',                    s:DarkMagenta,        s:clear,    s:none      )
call s:highlight('Character',                 s:MediumOrchid1,      s:clear,    s:none      )
call s:highlight('Number',                    s:SteelBlue1,         s:clear,    s:none      )      
call s:highlight('Boolean',                   s:Yellow1,            s:clear,    s:none      )
call s:highlight('Float',                     s:SteelBlue1,         s:clear,    s:none      )
call s:highlight('Identifier',                s:MistyRose1,         s:clear,    s:none      )
call s:highlight('Function',                  s:Purple4,            s:clear,    s:none      )
call s:highlight('Statement',                 s:MediumOrchid1,      s:clear,    s:bold      )
call s:highlight('Conditional',               s:SkyBlue1,           s:clear,    s:bold      )
call s:highlight('Repeat',                    s:Magenta1,           s:clear,    s:bold      )
call s:highlight('Label',                     s:SkyBlue1,           s:clear,    s:bold      )       
call s:highlight('Operator',                  s:Purple3,            s:clear,    s:none      )
call s:highlight('Keyword',                   s:Purple3,            s:clear,    s:none      )
call s:highlight('Exception',                 s:Magenta1,           s:clear,    s:italic    )
call s:highlight('PreProc',                   s:Grey54,             s:clear,    s:italic    )
call s:highlight('Include',                   s:Purple4,            s:clear,    s:italic    )
call s:highlight('Define',                    s:Magenta2,           s:clear,    s:italic    )
call s:highlight('Macro',                     s:HotPink,            s:clear,    s:italic    )
call s:highlight('PreCondit',                 s:Purple4,            s:clear,    s:italic    )
call s:highlight('Type',                      s:MediumOrchid1,      s:clear,    s:bold      )
call s:highlight('StorageClass',              s:Purple3,            s:clear,    s:bold      )
call s:highlight('Structure',                 s:Purple3,            s:clear,    s:bold      )
call s:highlight('Typedef',                   s:Purple3,            s:clear,    s:bold      )
call s:highlight('Special',                   s:Grey66,             s:clear,    s:none      )
call s:highlight('SpecialChar',               s:MediumOrchid1,      s:clear,    s:none      )
call s:highlight('Delimiter',                 s:DeepSkyBlue3,       s:clear,    s:none      )
call s:highlight('SpecialComment',            s:Grey54,             s:clear,    s:none      )
call s:highlight('Debug',                     s:Red1,               s:clear,    s:none      )
call s:highlight('Underlined',                s:Grey54,             s:clear,    s:underline )
call s:highlight('Error',                     s:Red1,               s:clear,    s:underline )
call s:highlight('Todo',                      s:Yellow1,            s:clear,    s:none      )


" Interface highlighting
call s:highlight('Normal',                    s:clear,              s:Grey7,    s:none      )
call s:highlight('Visual',                    s:clear,              s:Grey42,   s:none      )
call s:highlight('Cursor',                    s:Grey66,             s:clear,    s:none      )
call s:highlight('LineNr',                    s:MistyRose1,         s:clear,    s:none      )
call s:highlight('CursorLineNr',              s:DarkMagenta,        s:clear,    s:italic    )


" Java syntax highlighting
call s:highlight('javaParen',                 s:DarkMagenta,        s:clear,    s:none      )
call s:highlight('javaCommentTitle',          s:DeepSkyBlue3,       s:clear,    s:none      )
call s:highlight('javaDocParam',              s:DeepSkyBlue3,       s:clear,    s:none      )
call s:highlight('javaDocTags',               s:DeepSkyBlue3,       s:clear,    s:none      )
call s:highlight('javaScopeDecl',             s:Grey66,             s:clear,    s:none      )
call s:highlight('javaStorageClass',          s:MediumOrchid1,      s:clear,    s:none      )


" Python syntax highlighting
call s:highlight('pythonFunction',            s:Grey66,             s:clear,    s:none      )
call s:highlight('pythonBuiltin',             s:Grey66,             s:clear,    s:italic    )


" Vimscript syntax highlighting
call s:highlight('vimOption',                 s:DarkViolet,         s:clear,     s:none     )


" *NOTE*
"
" The following groups are plug specific and would require the following plugs
" from github in order for the groups to work.
"

" Elm syntax highlighting
" Requires plug: ElmCast/Magenta2-vim
"
call s:highlight('elmTypeDef',           s:MediumOrchid1,      s:clear,    s:bold      )
call s:highlight('elmAlias',             s:Grey66,             s:clear,    s:none      )
call s:highlight('elmTopLevelDecl',      s:SkyBlue1,           s:clear,    s:bold      )
call s:highlight('elmBraces',            s:DarkMagenta,        s:clear,    s:none      )


" Elixir syntax highlighting
" Requires plug: elixir-editors/vim-elixir
"
call s:highlight('elixirAlias',               s:Magenta2,           s:clear,    s:italic    )
call s:highlight('elixirDefine',              s:MediumOrchid1,      s:clear,    s:none      )
call s:highlight('elixirBlockDefinition',     s:MediumOrchid1,      s:clear,    s:none      )
call s:highlight('elixirFunctionDeclaration', s:Grey66,             s:clear,    s:none      )


" GOLang syntax highlighting
" Requires plug: fatih/vim-go
"
call s:highlight('goPackage',                 s:Magenta2,           s:clear,    s:italic    )
call s:highlight('goImport',                  s:Purple4,            s:clear,    s:italic    )


" Rust syntax highlighting
" Requires plug: rust-lang/rust.vim
"
call s:highlight('rustMacro',                 s:MediumOrchid1,      s:clear,    s:none      )