Skip to content

VS Code inline color preview not displayed for custom colors in specified function context #1359

Closed
@functasti

Description

@functasti

What version of VS Code are you using?

v1.99.3

What version of Tailwind CSS IntelliSense are you using?

v0.14.16

What version of Tailwind CSS are you using?

4.1.3

What package manager are you using?

npm

What operating system are you using?

Ubuntu Linux

Tailwind config

Default

VS Code settings

{
  "files.associations": {
    "*.css": "tailwindcss"
  },

  "tailwindCSS.classFunctions": ["clsx"]
}

Reproduction:

@theme {
  --color-test-intellisense: hsl(240deg 100% 50%);
}

Code:

  const COLORS_BY_STATUS = {
    success: clsx("bg-test-intellisense"),
    error: "",
  };

Image

Image

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions