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

Color decorators are not working for custom colors with css variables

Open dmagunov opened this issue 1 year ago • 0 comments

What version of VS Code are you using?

v1.89.1

What version of Tailwind CSS IntelliSense are you using?

v0.11.66

What version of Tailwind CSS are you using?

v3.4.3

What package manager are you using?

pnpm

What operating system are you using?

macOS

Tailwind config

...

theme: {
  extend: {
      colors: {
        foreground: "rgb(var(--color-foreground) / <alpha-value>)",
      }
   }
}

VS Code settings

"tailwindCSS.classAttributes": [
	"class",
	"className",
	"ngClass",
	"class:list"
],
"tailwindCSS.codeActions": true,
"tailwindCSS.colorDecorators": true,
"tailwindCSS.experimental.classRegex": [],
"tailwindCSS.experimental.configFile": null,
"tailwindCSS.hovers": true,
"tailwindCSS.includeLanguages": {},
"tailwindCSS.inspectPort": null,
"tailwindCSS.rootFontSize": 16,
"tailwindCSS.showPixelEquivalents": true,
"tailwindCSS.suggestions": true,
"tailwindCSS.validate": true

Describe your issue

Color decorators (prevew) don't appear in VSCode when using custom colors with CSS variables (as described in the Tailwindcss docs).

Screenshot 2024-05-14 at 21 58 13

dmagunov avatar May 14 '24 20:05 dmagunov