fxbois / web-mode

web template editing mode for emacs
https://web-mode.org
GNU General Public License v3.0
1.63k stars 262 forks source link

Support for CSS color keywords in `web-mode-enable-css-colorization` #1238

Closed jjnilton closed 2 years ago

jjnilton commented 2 years ago

Currently the web-mode-enable-css-colorization works for hex and rgb() values, my request is to make it work with color keywords as well: https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/color_keywords

fxbois commented 2 years ago

The above commit shows you how you could add all the colors. Could you provide a pull request ?

jjnilton commented 2 years ago

Thanks! I added the colors listed in the MDN documentation.