tailwindcss-intellisense icon indicating copy to clipboard operation
tailwindcss-intellisense copied to clipboard

Show color decorators when utility has an opacity modifier in v4

Open thecrypticace opened this issue 1 year ago • 0 comments

We use color-mix to apply alpha values to colors — because of this we don't show color decorators for any utility with an opacity modifier in a v4 project.

We remove the wrapping color-mix and apply the alpha value to the color so we end up parsing a valid color string into their separate r, g, b, and a channels.

Also made sure that gradient utilities show their color swatches — they were being excluded because we were looking at declarations inside @property and then throwing stuff out.

thecrypticace avatar May 17 '24 23:05 thecrypticace