" Language:     Colorful CSS Color Preview
" Author:       Aristotle Pagaltzis <pagaltzis@gmx.de>
" Commit:       $Format:%H$
" Licence:      The MIT License (MIT)

" W3C basic colors

hi BG000000 guibg=#000000 guifg=#FFFFFF ctermbg=16  ctermfg=15
hi BGc0c0c0 guibg=#C0C0C0 guifg=#000000 ctermbg=250 ctermfg=0
hi BG808080 guibg=#808080 guifg=#000000 ctermbg=244 ctermfg=0
hi BGffffff guibg=#FFFFFF guifg=#000000 ctermbg=231 ctermfg=0
hi BG800000 guibg=#800000 guifg=#FFFFFF ctermbg=88  ctermfg=15
hi BGff0000 guibg=#FF0000 guifg=#FFFFFF ctermbg=196 ctermfg=15
hi BG800080 guibg=#800080 guifg=#FFFFFF ctermbg=90  ctermfg=15
hi BGff00ff guibg=#FF00FF guifg=#FFFFFF ctermbg=201 ctermfg=15
hi BG008000 guibg=#008000 guifg=#FFFFFF ctermbg=28  ctermfg=15
hi BG00ff00 guibg=#00FF00 guifg=#000000 ctermbg=46  ctermfg=0
hi BG808000 guibg=#808000 guifg=#FFFFFF ctermbg=100 ctermfg=15
hi BGffff00 guibg=#FFFF00 guifg=#000000 ctermbg=226 ctermfg=0
hi BG000080 guibg=#000080 guifg=#FFFFFF ctermbg=18  ctermfg=15
hi BG0000ff guibg=#0000FF guifg=#FFFFFF ctermbg=21  ctermfg=15
hi BG008080 guibg=#008080 guifg=#FFFFFF ctermbg=30  ctermfg=15
hi BG00ffff guibg=#00FFFF guifg=#000000 ctermbg=51  ctermfg=0

call extend( b:css_color_hi,
	\{'000000':0,'c0c0c0':1,'808080':1,'ffffff':1,'800000':0,'ff0000':0
	\,'800080':0,'ff00ff':0,'008000':0,'00ff00':1,'808000':0,'ffff00':1
	\,'000080':0,'0000ff':0,'008080':0,'00ffff':1} )

syn case ignore

syn keyword BG000000 black   contained containedin=@colorableGroup
syn keyword BGc0c0c0 silver  contained containedin=@colorableGroup
syn keyword BG808080 gray    contained containedin=@colorableGroup
syn match   BGffffff "\c\<white\(-\)\@!\>" contained containedin=@colorableGroup
syn keyword BG800000 maroon  contained containedin=@colorableGroup
syn keyword BGff0000 red     contained containedin=@colorableGroup
syn keyword BG800080 purple  contained containedin=@colorableGroup
syn keyword BGff00ff fuchsia contained containedin=@colorableGroup
syn keyword BG008000 green   contained containedin=@colorableGroup
syn keyword BG00ff00 lime    contained containedin=@colorableGroup
syn keyword BG808000 olive   contained containedin=@colorableGroup
syn keyword BGffff00 yellow  contained containedin=@colorableGroup
syn keyword BG000080 navy    contained containedin=@colorableGroup
syn keyword BG0000ff blue    contained containedin=@colorableGroup
syn keyword BG008080 teal    contained containedin=@colorableGroup
syn keyword BG00ffff aqua    contained containedin=@colorableGroup
