gruvbox-community / gruvbox

Retro groove color scheme for Vim - community maintained edition
MIT License
797 stars 62 forks source link

different css colors #135

Open Groude opened 4 years ago

Groude commented 4 years ago

Hello!

I've started using in Vim gruvbox colorscheme, and found out that in css files colors like a rainbow: Screenshot from 2020-05-29 15-18-34@2x

Everything is different: property colors can be orange, white, green, property values colors different too...

Is there a way to fix it?

SimonEggert commented 4 years ago

When I last used gruvbox something like this in my .vimrc worked for me:

highlight link cssPositioningProp GruvboxAqua
highlight link cssBorderProp GruvboxAqua
highlight link cssUIProp GruvboxAqua 
highlight link cssPageProp GruvboxAqua 
highlight link cssMediaProp GruvboxAqua
highlight link cssDimensionProp GruvboxAqua 

highlight link sassClassChar GruvboxGreen 
highlight link sassClass GruvboxGreen 
highlight link sassIdChar GruvboxGreen 
highlight link sassId GruvboxGreen 

highlight link scssSelectorChar GruvboxGreen
highlight link scssSelectorName GruvboxGreen

I found the groups for css, sass and scss here as mentioned in https://github.com/morhetz/gruvbox/issues/227#issuecomment-395678412: https://github.com/neovim/neovim/tree/master/runtime/syntax (nvim) https://github.com/vim/vim/tree/master/runtime/syntax (vim)

rbong commented 3 years ago

Don't like the CSS colors either myself. Would accept a PR for this issue.