nvim-colorizer.lua icon indicating copy to clipboard operation
nvim-colorizer.lua copied to clipboard

Feature request: support for #rgba shortcut

Open antonk52 opened this issue 2 years ago • 0 comments

Hi and thank you for your work. The plugin already supports 6 character hex colours, 3 character hex shortcut, and 8 character hex color with alpha component. It would be great to also add support for 4 character hex color with alpha channel.

Example

body {
  color: #ff0000;
  color: #f00;
  color: #ff000000;
  color: #f000; /* not highlighted */
}

Related MDN documentation about hex color

Thanks!

antonk52 avatar Jun 17 '23 15:06 antonk52