gko / vim-coloresque

css/less/sass/html color preview for vim
352 stars 63 forks source link

Colors for SASS variables #27

Open caneta opened 9 years ago

caneta commented 9 years ago

I've experienced the following issue with a .scss file: vim-coloresque-issue It could be possible to solve this avoiding to display color highlight for SASS variables? Thanks!

anoopd commented 7 years ago

@caneta The plugin just can't identify sass variables and if your names are any one of X11 colors then it is showing them , think the problem is solvable .

shmargum commented 7 years ago

I thought it would be nice if the color highlight was on the sass variables instead of the color definition -- this way when you import and use variables you can see their color. I made a little vim plugin that imports sass vars recursively and highlights them in their color. https://github.com/shmargum/vim-sass-colors

caneta commented 7 years ago

This is nice: it would be great to have both hex colors and variables!

shmargum commented 7 years ago

ditto i've added some enhancements to the plugin to support highlighting colors and variables as well as handling imports (somewhat?) gracefully its still only in hex/rgb support but i'll probably end up adding the hsl sooner rather than later