Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

different css colors #135

Open
Groude opened this issue May 29, 2020 · 2 comments
Open

different css colors #135

Groude opened this issue May 29, 2020 · 2 comments

Comments

@Groude
Copy link

Groude commented May 29, 2020

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
Copy link

SimonEggert commented Jul 7, 2020

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 morhetz#227 (comment):
https://github.com/neovim/neovim/tree/master/runtime/syntax (nvim)
https://github.com/vim/vim/tree/master/runtime/syntax (vim)

@rbong
Copy link

rbong commented Oct 3, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants